/* File: css/frontend.css */

/* =========================
   Scoped Styles for Plugin
   ========================= */
.tx-ticket-management-frontend {
    /* General Container Styling */
    margin: 20px;
}

/* Modal Styling */
.tx-ticket-management-frontend .tx-modal-overlay {
    position: fixed;
    top: 0;
    left: 1030;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.tx-ticket-management-frontend .tx-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 800px;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.tx-ticket-management-frontend .tx-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.tx-ticket-management-frontend .tx-modal-close:hover {
    color: #000;
}

/* =========================
   Scoped Button Styling
   ========================= */

/* General Button Styling */
.tx-ticket-management-frontend button,
.tx-ticket-management-frontend .tx-copy-button-frontend,
.tx-ticket-management-frontend .button { /* Add any other button classes you use */
    padding: 10px 16px;
    background-color: #1E90FF !important; /* DodgerBlue */
    color: #fff !important;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 16px; /* Optional: Adjust as needed */
}

/* Hover Effect */
.tx-ticket-management-frontend button:hover,
.tx-ticket-management-frontend .tx-copy-button-frontend:hover,
.tx-ticket-management-frontend .button:hover { /* Ensure hover effects for all button types */
    background-color: #104E8B !important; /* DodgerBlue Darker */
}

/* Active (Clicked) State */
.tx-ticket-management-frontend button:active,
.tx-ticket-management-frontend .tx-copy-button-frontend:active,
.tx-ticket-management-frontend .button:active {
    background-color: #f0f0f0 !important; /* Light Grey */
    color: #555 !important; /* Dark Grey Text */
}

/* Focus State for Accessibility */
.tx-ticket-management-frontend button:focus,
.tx-ticket-management-frontend .tx-copy-button-frontend:focus,
.tx-ticket-management-frontend .button:focus {
    outline: 2px solid #104E8B !important; /* DodgerBlue Darker Outline */
    outline-offset: 2px;
}

/* Optional: Toggle Active State Persistently with JavaScript */
/* Uncomment and use if you implement JavaScript to toggle the 'active' class */
/*
.tx-ticket-management-frontend .toggle-button.active {
    background-color: #f0f0f0 !important; /* Light Grey */
    color: #555 !important; /* Dark Grey Text */
}
*/

/* =========================
   Additional Plugin Styling
   ========================= */

.tx-ticket-management-frontend .tx-modal-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tx-ticket-management-frontend .tx-navigation-buttons {
    margin-bottom: 20px;
}

.tx-ticket-management-frontend .tx-navigation-buttons .button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.tx-ticket-management-frontend .single-ticket-detail {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .tx-ticket-management-frontend .tx-modal-content {
        width: 95%;
    }
}



.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 5px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 250px;
  background-color: #f9f9f9;
  color: #333;
  text-align: left;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  
  /* Positioning */
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  margin-left: -125px;
  
  /* Animation */
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}