@media (max-width: 768px) {
    .user-navbar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
        text-align: center;
    }
    .user-navbar /* css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.85);
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #4f46e5;
    --primary-hover: #3730a3;
    --primary-light: rgba(79, 70, 229, 0.1);
    
    /* Priorities */
    --priority-low: #0284c7;
    --priority-medium: #d97706;
    --priority-high: #dc2626;
    --priority-critical: #b91c1c;
    
    /* Statuses */
    --status-open: #0284c7;
    --status-progress: #ea580c;
    --status-resolved: #16a34a;
    --status-closed: #64748b;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.1);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}
.btn-secondary {
    background-color: #f1f5f9;
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background-color: #e2e8f0;
    border-color: var(--border-hover);
}
.btn-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}
.btn-danger:hover {
    background-color: #fee2e2;
}

/* Authentication Page */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 40%);
}

.auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: var(--shadow-glow);
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background-color: #ffffff;
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.alert-error {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}
.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

/* Dashboard Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.sidebar-title {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.5px;
}

.sidebar-menu {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.menu-item:hover, .menu-item.active {
    color: var(--text-primary);
    background-color: #f1f5f9;
}

.menu-item.active {
    color: var(--primary);
    background-color: var(--primary-light);
    border-left: 3px solid var(--primary);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
}

/* Header Banner */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-title h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* Status Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
}

.stat-card.open::before { background-color: var(--status-open); }
.stat-card.progress::before { background-color: var(--status-progress); }
.stat-card.resolved::before { background-color: var(--status-resolved); }
.stat-card.closed::before { background-color: var(--status-closed); }

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-top: 8px;
}

/* Ticket List Filter Controls */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Tickets Table / List Layout */
.tickets-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ticket-item {
    display: grid;
    grid-template-columns: 80px 1.5fr 120px 100px 100px;
    padding: 20px 24px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.ticket-item:last-child {
    border-bottom: none;
}

.ticket-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.ticket-id {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

.ticket-main {
    padding-right: 20px;
}

.ticket-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ticket-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    width: fit-content;
}

.badge-status-open {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--status-open);
    border-color: rgba(56, 189, 248, 0.2);
}
.badge-status-in_progress {
    background-color: rgba(251, 191, 36, 0.1);
    color: var(--status-progress);
    border-color: rgba(251, 191, 36, 0.2);
}
.badge-status-resolved {
    background-color: rgba(52, 211, 153, 0.1);
    color: var(--status-resolved);
    border-color: rgba(52, 211, 153, 0.2);
}
.badge-status-closed {
    background-color: rgba(100, 116, 139, 0.15);
    color: var(--status-closed);
    border-color: rgba(100, 116, 139, 0.2);
}

.badge-priority-low {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--priority-low);
}
.badge-priority-medium {
    background-color: rgba(251, 113, 133, 0.1);
    color: var(--priority-medium);
}
.badge-priority-high {
    background-color: rgba(244, 63, 94, 0.15);
    color: var(--priority-high);
}
.badge-priority-critical {
    background-color: rgba(225, 29, 72, 0.2);
    color: #f43f5e;
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.1);
}

.ticket-assignee {
    font-size: 13px;
    color: var(--text-secondary);
}

.ticket-date {
    font-size: 13px;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    padding: 60px 40px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.empty-state h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Create Ticket Form Wrapper */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Ticket Details Screen */
.ticket-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.ticket-body {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.ticket-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-line;
    margin-bottom: 24px;
}

.ticket-attachment-preview {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.ticket-attachment-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.attachment-img-container {
    display: inline-block;
    position: relative;
    max-width: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.attachment-img-container:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.attachment-img-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Conversation Thread */
.thread-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.reply-item {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reply-author {
    font-weight: 600;
    font-size: 14px;
}

.reply-time {
    font-size: 12px;
    color: var(--text-muted);
}

.reply-message {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

/* File Upload Drag-n-Drop Area */
.file-drop-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background-color: #f8fafc;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-drop-area:hover, .file-drop-area.dragover {
    border-color: var(--primary);
    background-color: rgba(79, 70, 229, 0.05);
}

.file-drop-icon {
    font-size: 28px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.file-drop-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.file-drop-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview-thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.preview-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Lightbox Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: var(--transition);
}

.modal-close:hover {
    transform: scale(1.1);
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .ticket-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-menu {
        display: none;
    }
    
    .sidebar-menu.show {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        padding: 24px;
    }
    
    .ticket-item {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
    }
    
    .ticket-id, .ticket-date, .ticket-assignee {
        grid-column: span 1;
    }
    
    .ticket-main {
        grid-column: span 2;
        padding-right: 0;
    }
}

/* User View Portal - osTicket Style */
.user-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}
.user-navbar .navbar-brand {
    font-weight: 700;
    font-size: 18px;
    color: #0284c7;
}
.user-navbar .navbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.user-navbar .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}
.user-navbar .nav-link:hover, .user-navbar .nav-link.active {
    color: #0284c7;
}
.user-navbar .logout-btn {
    background-color: #f1f5f9;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.user-navbar .logout-btn:hover {
    background-color: #e2e8f0;
    color: var(--text-primary);
}

.search-banner {
    background-color: #e9ebf0;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #cbd5e1;
}
.search-banner form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    width: 300px;
}
.search-input-wrapper input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
    width: 100%;
    padding: 4px 0;
}
.search-input-wrapper .search-icon {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}
.search-banner select {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    width: 220px;
}

.tickets-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}
.tickets-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tickets-title-group h2 {
    font-size: 24px;
    font-weight: 500;
    color: #0284c7;
}
.tickets-title-group .refresh-icon {
    text-decoration: none;
    color: #10b981;
    font-size: 20px;
    font-weight: 700;
    transition: var(--transition);
}
.tickets-title-group .refresh-icon:hover {
    transform: rotate(180deg);
}
.queue-tabs {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #cbd5e1;
}
.queue-tab {
    text-decoration: none;
    color: #0284c7;
    font-weight: 500;
    transition: var(--transition);
}
.queue-tab.active {
    font-weight: 700;
}
.queue-tab:hover {
    text-decoration: underline;
}
.tab-separator {
    margin: 0 10px;
    color: #cbd5e1;
}

.user-tickets-summary-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.user-tickets-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: #ffffff;
}
.user-tickets-table th, .user-tickets-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
}
.user-tickets-table th {
    background-color: #cfd8dc;
    color: #37474f;
    font-weight: 600;
    border-bottom: 1px solid #b0bec5;
    border-top: 1px solid #b0bec5;
}
.user-tickets-table td {
    border-bottom: 1px solid #cbd5e1;
    color: var(--text-primary);
}
.user-tickets-table tr:nth-child(even) {
    background-color: #f8fafc;
}
.user-tickets-table tr:hover {
    background-color: #f1f5f9;
}
.user-tickets-table td a.ticket-link {
    color: #0284c7;
    text-decoration: underline;
    font-weight: 600;
}
.user-tickets-table td a.subject-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: 500;
}
.user-tickets-table td a.subject-link:hover {
    text-decoration: underline;
}
.user-tickets-pagination {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Create Ticket Modal */
.ticket-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}
.ticket-modal.active {
    display: flex;
}
.ticket-modal-content {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.ticket-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.ticket-modal-close:hover {
    color: var(--text-primary);
}

/* Mobile Responsive Rules for User Portal */
.navbar-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .search-banner {
        padding: 12px;
        background-color: #f1f5f9;
        border-radius: var(--radius-sm);
    }
    .search-banner form {
        flex-direction: column;
        gap: 12px;
    }
    .search-input-wrapper {
        width: 100% !important;
    }
    .search-banner select {
        width: 100% !important;
    }
    .tickets-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .queue-tabs {
        width: 100%;
        justify-content: space-between;
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .user-tickets-table, .user-tickets-table tbody, .user-tickets-table tr, .user-tickets-table td {
        display: block !important;
    }
    .user-tickets-table thead {
        display: none !important;
    }
    .user-tickets-table tr {
        margin-bottom: 16px;
        border: 1px solid #cbd5e1;
        border-radius: var(--radius-md);
        padding: 8px 0;
        box-shadow: var(--shadow-sm);
    }
    .user-tickets-table td {
        text-align: right !important;
        padding: 10px 16px;
        border-bottom: 1px solid #f1f5f9;
        position: relative;
        font-size: 13px;
    }
    .user-tickets-table td:last-child {
        border-bottom: none;
    }
    .user-tickets-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        font-weight: 600;
        color: var(--text-secondary);
    }
    .ticket-modal-content {
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
}



