/* Admin Tickets CSS Styles */

/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    background-color: #f9f9fa;
}

a {
    color: #4361ee;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    margin-bottom: 20px;
}

h1 {
    margin-bottom: 15px;
    color: #333;
}

/* Filter Bar */
.filter-bar {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-group label {
    margin-bottom: 0;
}

select, input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-button {
    background-color: #4361ee;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Message Boxes */
.success-message, .error-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

/* Ticket Grid Layout */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ticket-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.ticket-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ticket-card.status-open {
    border-left: 4px solid #4361ee;
}

.ticket-card.status-inprogress {
    border-left: 4px solid #ffc107;
}

.ticket-card.status-resolved {
    border-left: 4px solid #28a745;
}

.ticket-card.status-closed {
    border-left: 4px solid #6c757d;
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.ticket-site-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    margin: 6px 0;
    box-shadow: 0 2px 6px rgba(67, 97, 238, 0.3);
    letter-spacing: 0.3px;
}

.ticket-site-badge .site-code {
    font-weight: 500;
    opacity: 0.9;
    font-size: 14px;
}

.ticket-card-title h3 {
    margin: 8px 0 0 0;
    font-size: 18px;
    line-height: 1.3;
}

.ticket-card-title h3 a {
    color: #333;
    text-decoration: none;
}

.ticket-card-title h3 a:hover {
    color: #4361ee;
    text-decoration: none;
}

.ticket-card-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-card-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.meta-value.ticket-id {
    font-family: monospace;
    font-size: 13px;
    color: #6c757d;
}

.ticket-card-description {
    color: #495057;
    line-height: 1.4;
    font-size: 14px;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    border-left: 3px solid #e9ecef;
}

.ticket-card-last-message {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
}

.last-message-header {
    margin-bottom: 6px;
    font-size: 13px;
    color: #495057;
}

.last-message-content {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.status-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-open {
    background-color: #edf2ff;
    color: #3a56d4;
}

.status-inprogress {
    background-color: #fff8e6;
    color: #b78e15;
}

.status-resolved {
    background-color: #e7f6ed;
    color: #1e7b34;
}

.status-closed {
    background-color: #f1f3f5;
    color: #495057;
}

.truncated-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.ticket-description .truncated-text {
    max-width: 250px;
}

.ticket-email {
    white-space: nowrap;
}

.action-button {
    display: inline-block;
    background-color: #4361ee;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.action-button:hover {
    background-color: #3a56d4;
    text-decoration: none;
}

.comment-sender {
    font-weight: 600;
    margin-right: 4px;
}

/* Single Ticket View */
.back-link {
    margin-bottom: 20px;
}

.ticket-details {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.ticket-title {
    flex: 1;
}

.ticket-title h2 {
    margin-top: 8px;
    font-size: 22px;
}

.ticket-actions {
    display: flex;
    gap: 10px;
}

.ticket-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

/* Forms */
.ticket-form {
    background-color: #f8f9fa;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.ticket-form h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}

textarea {
    height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

button, .button {
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button.primary-button {
    background-color: #4361ee;
}

button.secondary-button {
    background-color: #6c757d;
}

button.blue-button {
    background-color: #0088cc;
}

button:hover {
    opacity: 0.9;
}

/* Chat-style Messages */
.chat-container {
    margin-top: 20px;
}

.chat-container h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-radius: 8px;
    max-width: 100%;
    position: relative;
}

.chat-message.customer {
    background-color: #f1f3f5;
    align-self: flex-start;
    margin-right: 60px;
    border-top-left-radius: 0;
}

.chat-message.staff {
    background-color: #edf2ff;
    align-self: flex-end;
    margin-left: 60px;
    border-top-right-radius: 0;
}

.chat-message.internal {
    background-color: #fff8e6;
    align-self: flex-start;
    border: 1px dashed #ffc107;
    width: 100%;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.message-header .sender {
    font-weight: 600;
    color: #333;
}

.message-header .timestamp {
    color: #6c757d;
}

.message-content {
    white-space: pre-line;
    word-break: break-word;
}

.internal-icon:before {
    content: "🔒";
    margin-right: 4px;
}

/* Quick Reply */
.quick-reply {
    margin-top: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.quick-reply textarea {
    height: 80px;
    margin-bottom: 10px;
}

.quick-reply-actions {
    display: flex;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .ticket-header, .filter-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ticket-actions, .filter-group {
        margin-top: 10px;
        width: 100%;
    }
    
    .ticket-meta {
        grid-template-columns: 1fr;
    }
    
    /* Card responsive adjustments */
    .tickets-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ticket-card {
        padding: 15px;
    }
    
    .ticket-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ticket-card-title h3 {
        font-size: 16px;
        margin-top: 5px;
    }

    .ticket-site-badge {
        font-size: 14px;
        padding: 5px 10px;
        display: block;
        width: fit-content;
    }

    .ticket-site-badge .site-code {
        font-size: 12px;
    }
    
    .ticket-card-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .meta-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .meta-label {
        min-width: 60px;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .tickets-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ticket-card {
        padding: 12px;
    }
    
    .ticket-card-title h3 {
        font-size: 15px;
    }
}

/* No Tickets Message */
.no-tickets {
    padding: 30px;
    text-align: center;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #6c757d;
    font-size: 16px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background-color: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
    line-height: 1.3;
}

.modal-header h2 .site-name {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.modal-header h2 .ticket-status {
    font-size: 18px;
    font-weight: 500;
    color: #6c757d;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

/* Status-based modal header colors */
.modal-header.status-open {
    background-color: #edf2ff;
    border-bottom-color: #4361ee;
}

.modal-header.status-open h2 {
    color: #3a56d4;
}

.modal-header.status-inprogress {
    background-color: #fff8e6;
    border-bottom-color: #ffc107;
}

.modal-header.status-inprogress h2 {
    color: #b78e15;
}

.modal-header.status-resolved {
    background-color: #e7f6ed;
    border-bottom-color: #28a745;
}

.modal-header.status-resolved h2 {
    color: #1e7b34;
}

.modal-header.status-closed {
    background-color: #f1f3f5;
    border-bottom-color: #6c757d;
}

.modal-header.status-closed h2 {
    color: #495057;
}

.close {
    color: #6c757d;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #dc3545;
    text-decoration: none;
}

.modal-body {
    padding: 25px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Status-based modal body backgrounds */
.modal-header.status-open ~ .modal-body {
    background: linear-gradient(180deg, rgba(237, 242, 255, 0.3) 0%, rgba(255, 255, 255, 1) 20%);
}

.modal-header.status-inprogress ~ .modal-body {
    background: linear-gradient(180deg, rgba(255, 248, 230, 0.3) 0%, rgba(255, 255, 255, 1) 20%);
}

.modal-header.status-resolved ~ .modal-body {
    background: linear-gradient(180deg, rgba(231, 246, 237, 0.3) 0%, rgba(255, 255, 255, 1) 20%);
}

.modal-header.status-closed ~ .modal-body {
    background: linear-gradient(180deg, rgba(241, 243, 245, 0.3) 0%, rgba(255, 255, 255, 1) 20%);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4361ee;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #6c757d;
    margin: 0;
}

/* Modal Ticket Content */
.modal-ticket-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.modal-ticket-title {
    flex: 1;
}

.modal-ticket-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


.modal-ticket-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.modal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-meta-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-meta-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Modal Forms */
.modal-form {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.modal-form h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.modal-form-group {
    margin-bottom: 15px;
}

.modal-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Modal Chat Messages */
.modal-ticket-details h3 {
    margin: 25px 0 15px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

.modal-ticket-details .chat-message {
    max-width: 75%;
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.modal-ticket-details .chat-message.customer {
    align-self: flex-start;
    margin-right: auto;
    margin-left: 0;
    border-bottom-left-radius: 4px;
}

.modal-ticket-details .chat-message.staff {
    align-self: flex-end;
    margin-left: auto;
    margin-right: 0;
    border-bottom-right-radius: 4px;
}

.modal-ticket-details .chat-message.internal {
    align-self: flex-start;
    margin-right: auto;
    margin-left: 0;
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-left: 4px solid #ffc107;
    max-width: 85%;
}

/* Create a flex container for the messages */
.modal-ticket-details {
    display: flex;
    flex-direction: column;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
        line-height: 1.4;
    }
    
    .modal-header h2 .site-name {
        font-size: 14px;
        padding: 1px 4px;
        margin-right: 6px;
        display: block;
        margin-bottom: 4px;
        width: fit-content;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .modal-ticket-actions {
        width: 100%;
    }
    
    .modal-ticket-status-buttons {
        width: 100%;
        margin-top: 10px;
    }
    
    .status-buttons-container-header .status-buttons {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .status-buttons-container-header .status-button {
        flex: 1;
        min-width: auto;
        text-align: center;
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .modal-ticket-meta {
        grid-template-columns: 1fr;
    }
}

/* Status Buttons Container */
.status-buttons-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.status-buttons-container h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.status-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-button {
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.status-button.status-open {
    background-color: #edf2ff;
    color: #3a56d4;
    border-color: #4361ee;
}

.status-button.status-open:hover:not(:disabled) {
    background-color: #4361ee;
    color: white;
}

.status-button.status-inprogress {
    background-color: #fff8e6;
    color: #b78e15;
    border-color: #ffc107;
}

.status-button.status-inprogress:hover:not(:disabled) {
    background-color: #ffc107;
    color: white;
}

.status-button.status-resolved {
    background-color: #e7f6ed;
    color: #1e7b34;
    border-color: #28a745;
}

.status-button.status-resolved:hover:not(:disabled) {
    background-color: #28a745;
    color: white;
}

.status-button.status-closed {
    background-color: #f1f3f5;
    color: #495057;
    border-color: #6c757d;
}

.status-button.status-closed:hover:not(:disabled) {
    background-color: #6c757d;
    color: white;
}

.status-button.current-status {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.status-button.current-status::after {
    content: " (Current)";
    font-size: 11px;
    color: #6c757d;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    opacity: 0.8;
}

/* Sub-Modal Styles */
.sub-modal {
    z-index: 1100;
}

.sub-modal-content {
    max-width: 500px;
    margin: 5% auto;
}

.status-change-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

.status-change-info p {
    margin: 0;
    color: #1565c0;
    font-size: 14px;
}

.status-change-info strong {
    color: #0d47a1;
    text-transform: capitalize;
}

/* Responsive Status Buttons */
@media (max-width: 768px) {
    .status-buttons {
        flex-direction: column;
    }
    
    .status-button {
        width: 100%;
        text-align: center;
    }
    
    .sub-modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

/* Modal Messages */
.modal-message {
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-message.success-message {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.modal-message.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.modal-message.warning-message {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}


/* Reduce gap between status buttons and quick reply */
.status-buttons-container {
    margin-bottom: 10px;
}

/* Messages Container with status-based background */
.messages-container {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.modal-header.status-open ~ .modal-body .messages-container {
    background-color: rgba(237, 242, 255, 0.3);
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.modal-header.status-inprogress ~ .modal-body .messages-container {
    background-color: rgba(255, 248, 230, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.1);
}

.modal-header.status-resolved ~ .modal-body .messages-container {
    background-color: rgba(231, 246, 237, 0.3);
    border: 1px solid rgba(40, 167, 69, 0.1);
}

.modal-header.status-closed ~ .modal-body .messages-container {
    background-color: rgba(241, 243, 245, 0.3);
    border: 1px solid rgba(108, 117, 125, 0.1);
}

/* Override individual message colors to use blue/green instead of status colors */
.modal-header ~ .modal-body .chat-message.customer {
    background-color: #e3f2fd !important;
    border-color: #2196f3 !important;
}

.modal-header ~ .modal-body .chat-message.staff {
    background-color: #e8f5e8 !important;
    border-color: #4caf50 !important;
}

/* Status Filter Buttons */
.status-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-filter-btn {
    padding: 6px 12px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-filter-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.status-filter-btn.active {
    background-color: #4361ee;
    color: white;
    border-color: #4361ee;
}

.status-filter-btn.active:hover {
    background-color: #3a56d4;
    border-color: #3a56d4;
}

/* Hide filtered tickets */
.ticket-card.filtered-hidden {
    display: none !important;
}

/* Confirmation dialog styling */
.confirmation-message {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.confirmation-message p {
    margin: 0 0 8px 0;
    color: #1565c0;
}

.confirmation-message p:last-child {
    margin-bottom: 0;
}
