/***************************
 * Mobile Overlay Base
 ***************************/
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1250;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.mobile-overlay.overlay-active {
    opacity: 1;
    pointer-events: auto;
}

    .dashboard-header .header-title strong {
        display: block;
        font-size: 0.75rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.85);
    }
/* Halo Pemko Kota Langsa - Stylesheet */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2em;
    margin-bottom: 5px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Header with logo layout */
.header-content-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo-container {
    flex-shrink: 0;
}

.header-logo {
    height: auto;
    display: block;
}

.header-text {
    flex: 1;
}

.header-text h1 {
    margin-bottom: 5px;
}

.header-text p {
    margin: 0;
}

/* Navigation */
nav {
    background-color: #333;
    padding: 15px 0;
}

nav .container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #555;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #667eea;
}

.hero p {
    font-size: 1.2em;
    color: #666;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.feature-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Forms */
.form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.btn:hover {
    background-color: #5568d3;
}

.btn-primary {
    background-color: #667eea;
}

.btn-primary:hover {
    background-color: #5568d3;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9em;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.table thead {
    background-color: #667eea;
    color: white;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.ticket-detail-page .detail-meta .badge,
.ticket-detail-page .detail-table .badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.2;
    padding: 6px 10px;
}

@media (max-width: 576px) {
    .ticket-detail-page .detail-header-card {
        display: none;
    }

    .ticket-detail-page .detail-meta .badge,
    .ticket-detail-page .detail-table .badge {
        font-size: 0.76em;
        padding: 4px 8px;
        letter-spacing: 0.015em;
    }

    .ticket-detail-page .detail-header-info {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }

    .ticket-detail-page .detail-header-info h2 {
        margin: 0.3rem 0 0.1rem;
    }

    .ticket-detail-page .detail-header-info .ticket-subject {
        margin-bottom: 0;
        margin-top: 0;
    }

    .ticket-detail-page .detail-header-metas {
        margin-top: 0;
        gap: 0.6rem;
    }

    .ticket-detail-page .detail-header-metas {
        display: none;
    }
}

.badge-pending {
    background-color: #ffc107;
    color: #000;
}

.badge-assigned {
    background-color: #17a2b8;
    color: white;
}

.badge-forwarded {
    background-color: #6f42c1;
    color: white;
}

.badge-in_progress {
    background-color: #007bff;
    color: white;
}

.badge-resolved {
    background-color: #28a745;
    color: white;
}

.badge-closed {
    background-color: #6c757d;
    color: white;
}

.badge-rejected {
    background-color: #dc3545;
    color: white;
}

.badge-low {
    background-color: #6c757d;
    color: white;
}

.badge-medium {
    background-color: #ffc107;
    color: #000;
}

.badge-high {
    background-color: #fd7e14;
    color: white;
}

.badge-urgent {
    background-color: #dc3545;
    color: white;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
}

/* Filters */
.filter-section {
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Ticket Detail */
.ticket-detail {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ticket-detail h3 {
    margin-bottom: 20px;
    color: #667eea;
}

.ticket-detail h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

/* Comments */
.comments {
    margin-top: 20px;
}

.comment {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.comment strong {
    color: #667eea;
}

.comment-date {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

.comment p {
    margin-top: 10px;
    color: #333;
}

/* Action Section */
.action-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.action-section h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.action-section form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.action-section select {
    flex: 1;
    min-width: 200px;
}

/* Modern Ticket Detail Page */
.ticket-detail-page {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
}

.ticket-detail-main .container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #475569;
}

.detail-breadcrumb .breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.detail-breadcrumb .breadcrumb-link:hover {
    color: #4338ca;
}

.detail-breadcrumb svg {
    width: 18px;
    height: 18px;
}

.breadcrumb-separator {
    color: #94a3b8;
}

.breadcrumb-current {
    font-weight: 600;
    color: #1e293b;
}

.detail-header-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 18px 45px -15px rgba(79, 70, 229, 0.3);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    justify-content: space-between;
}

.detail-header-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(129, 140, 248, 0.05) 60%, rgba(59, 130, 246, 0.08) 100%);
    z-index: 0;
}

.detail-header-card > * {
    position: relative;
    z-index: 1;
}

.detail-header-info {
    flex: 1 1 320px;
}

.ticket-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(79, 70, 229, 0.08);
    color: #3730a3;
    font-size: 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-header-info h2 {
    margin: 1rem 0 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.detail-header-info .ticket-subject {
    font-size: 1.05rem;
    color: #475569;
    max-width: 540px;
}

.detail-header-metas {
    flex: 1 1 260px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    align-content: flex-start;
}

.detail-meta {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.meta-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.ticket-detail-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    gap: 1.75rem;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-card {
    background: white;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 20px 45px -24px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.detail-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.section-heading h3 {
    margin: 0;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #64748b;
}

.detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(248, 250, 252, 0.5);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.7);
}

.detail-table th,
.detail-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
}

.detail-table th {
    width: 220px;
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    background: rgba(248, 250, 252, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.detail-table td {
    color: #0f172a;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.65);
}

.detail-table tr:last-child th,
.detail-table tr:last-child td {
    border-bottom: none;
}

.detail-value {
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.6;
    word-break: break-word;
}

.detail-value a {
    color: #4f46e5;
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.detail-value-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    background: rgba(79, 70, 229, 0.1);
    color: #3730a3;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.chip-hint {
    flex-basis: 100%;
    font-size: 0.78rem;
    color: #94a3b8;
}

.chip-day {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.chip-night {
    background: rgba(124, 58, 237, 0.16);
    color: #5b21b6;
}

.detail-assignment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comments-card {
    position: relative;
    overflow: hidden;
}

.comment-timeline {
    position: relative;
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0 0 0 2.5rem;
}

.comment-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.35) 0%, rgba(118, 75, 162, 0.4) 100%);
}

.comment-timeline-item {
    position: relative;
}

.comment-timeline-item::before {
    content: "";
    position: absolute;
    left: -1.2rem;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 3px solid #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.35);
}

.comment-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.comment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.12);
}

.comment-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.comment-card-head .comment-author {
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
}

.comment-card-head .comment-date {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}

.comment-card-body {
    padding: 18px 20px 16px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.85) 0%, rgba(255, 255, 255, 0.96) 100%);
    color: #475569;
}

.comment-card-body p {
    margin: 0;
    line-height: 1.6;
    white-space: pre-line;
}

.comment-card-footer {
    padding: 0 20px 20px;
}

.comment-proof-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-proof-link::after {
    content: "\203A";
    font-size: 1rem;
    transform: translateY(-1px);
}

.comment-proof-link:hover {
    color: #1d4ed8;
}

.empty-state {
    margin: 0;
    padding: 1.25rem;
    border-radius: 12px;
    background: rgba(226, 232, 240, 0.4);
    color: #64748b;
}

.assignment-card .detail-grid {
    gap: 1.1rem;
}

.action-card {
    border-left: 4px solid rgba(79, 70, 229, 0.65);
}

.info-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(129, 140, 248, 0.12));
    color: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
}

.info-card p {
    margin: 0;
    color: #0f172a;
}

.action-description {
    margin: -0.5rem 0 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.form-modern .form-group select,
.form-modern .form-group textarea,
.form-modern .form-group input[type="file"] {
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-modern .form-group select:focus,
.form-modern .form-group textarea:focus,
.form-modern .form-group input[type="file"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-modern .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-soft {
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
    border: 1px solid transparent;
}

.btn-soft:hover {
    background: rgba(79, 70, 229, 0.18);
    color: #312e81;
}

.btn-full {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.btn-success {
    background: #22c55e;
}

.btn-success:hover {
    background: #16a34a;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #0f172a;
}

.checkbox-inline input {
    width: auto;
    margin: 0;
}

.checkbox-inline span {
    font-weight: 500;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1100;
    backdrop-filter: blur(2px);
}

.modal-backdrop.modal-open {
    display: flex;
}

.modal-card {
    width: min(520px, 100%);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}

.modal-card .form-group {
    margin-bottom: 1rem;
}

.shift-management-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .modal-backdrop {
        padding: 1rem;
    }
}

.cc-pics-container {
    max-height: 180px;
    overflow-y: auto;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: rgba(248, 250, 252, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cc-pic-item label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1f2937;
}

.cc-pic-item input[type="checkbox"] {
    accent-color: #4f46e5;
    width: 18px;
    height: 18px;
}

.cc-pic-item.hidden {
    display: none;
}

.cc-pic-item.disabled label {
    cursor: not-allowed;
    color: #9ca3af;
}

.cc-pics-container.is-disabled {
    background: rgba(248, 250, 252, 0.5);
    border-style: dashed;
}

.cc-pics-container.is-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.detail-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.5rem;
    padding-bottom: 1rem;
}

.ticket-detail-main .btn-soft.btn-secondary {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.ticket-detail-main .btn-soft.btn-secondary:hover {
    background: rgba(100, 116, 139, 0.18);
    color: #1f2937;
}

@media (max-width: 1024px) {
    .ticket-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .detail-footer {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .detail-header-card {
        padding: 1.5rem;
        flex-direction: column;
    }

    .detail-header-info h2 {
        font-size: 1.6rem;
    }

    .detail-header-metas {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .detail-card {
        border-radius: 16px;
        padding: 1.4rem;
    }

    .detail-table th {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .detail-header-info h2 {
        font-size: 1.4rem;
    }

    .detail-meta {
        padding: 0.85rem;
    }

    .detail-breadcrumb {
        flex-wrap: wrap;
    }

    .detail-table th,
    .detail-table td {
        padding: 0.75rem 0.8rem;
    }
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-logo-container {
        margin: 0 auto;
    }

    header h1 {
        font-size: 1.5em;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .table {
        font-size: 0.9em;
    }

    .table th,
    .table td {
        padding: 8px;
    }
}

/* ============================================
   MODERN DASHBOARD STYLES
   ============================================ */

/* Dashboard Page Base */
.dashboard-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.dashboard-header .header-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.dashboard-header .header-title {
    display: block;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1001;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.dashboard-header .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.dashboard-header .user-icon {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.dashboard-header .role-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Dashboard Navigation */
.dashboard-nav {
    background: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-nav .container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 20px;
}

.dashboard-nav .nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
}

/* Desktop: Hide nav header */
.nav-header {
    display: none;
}

.dashboard-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dashboard-nav .nav-link:hover {
    background: #f1f5f9;
    color: #667eea;
    transform: translateY(-1px);
}

.dashboard-nav .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dashboard-nav .nav-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Navigation Submenu */
.nav-menu-group {
    position: relative;
    z-index: 1;
}

.nav-menu-toggle {
    width: 100%;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    flex-shrink: 0;
}

.nav-menu-toggle .nav-submenu-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.nav-menu-toggle[aria-expanded="true"] .nav-submenu-icon {
    transform: rotate(90deg);
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1100;
    min-width: 220px;
    width: max-content;
    margin-top: 0.25rem;
    overflow: hidden;
}

.nav-submenu.submenu-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-submenu-item:last-child {
    border-bottom: none;
}

.nav-submenu-item:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.nav-submenu-item.active {
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.12);
}

.nav-submenu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Navigation Logo */
.nav-logo {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Nav Header (Mobile Sidebar) */
.nav-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-close:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.nav-header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
}

/* Mobile Overlay */


.mobile-overlay.overlay-active {
    opacity: 1;
    pointer-events: auto;
}

/* Dashboard Main */
.dashboard-main {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 300px);
}

.dashboard-main .container {
    animation: fadeIn 0.5s ease-in;
}

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

/* Alerts with Animation */
.alert-animate {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b1dfbb;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

/* Dashboard Header Section */
.dashboard-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.summary-collapsible {
    margin-bottom: 2rem;
}

.summary-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

.summary-toggle:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 4px;
}

.summary-toggle[disabled] {
    cursor: default;
}

.summary-toggle[disabled]:focus-visible {
    outline: none;
}

.summary-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.summary-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transition: background 0.3s ease, color 0.3s ease;
}

.summary-toggle-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.summary-toggle:hover .summary-toggle-icon {
    background: rgba(102, 126, 234, 0.18);
    color: #5563d6;
}

.summary-collapsible.expanded .summary-toggle-icon svg {
    transform: rotate(180deg);
}

.summary-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
    will-change: max-height, opacity, transform;
}

.summary-collapsible.expanded .summary-content {
    opacity: 1;
    transform: translateY(0);
}

.summary-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-content-header .section-subtitle {
    margin: 0;
}

.summary-action-btn {
    flex-shrink: 0;
}

.section-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 1;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.btn-icon:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* Modern Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color, #667eea), var(--card-color-light, #764ba2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--icon-bg-start, #667eea), var(--icon-bg-end, #764ba2));
    color: white;
    padding: 12px;
}

.stat-card-icon svg {
    width: 28px;
    height: 28px;
}

.stat-card-content {
    flex: 1;
}

.stat-card-content h3 {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

/* Stat Card Variants */
.stat-card-total {
    --card-color: #667eea;
    --card-color-light: #764ba2;
    --icon-bg-start: #667eea;
    --icon-bg-end: #764ba2;
}

.stat-card-pending {
    --card-color: #f59e0b;
    --card-color-light: #f97316;
    --icon-bg-start: #f59e0b;
    --icon-bg-end: #f97316;
}

.stat-card-forwarded {
    --card-color: #8b5cf6;
    --card-color-light: #a78bfa;
    --icon-bg-start: #8b5cf6;
    --icon-bg-end: #a78bfa;
}

.stat-card-progress {
    --card-color: #3b82f6;
    --card-color-light: #60a5fa;
    --icon-bg-start: #3b82f6;
    --icon-bg-end: #60a5fa;
}

.stat-card-resolved {
    --card-color: #10b981;
    --card-color-light: #34d399;
    --icon-bg-start: #10b981;
    --icon-bg-end: #34d399;
}

/* Tickets Section */
.tickets-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 1;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.filter-btn .filter-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.filter-btn .filter-text {
    white-space: nowrap;
}

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

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

/* Modern Table */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
}

.table-modern thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table-modern thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.table-modern thead th:first-child {
    border-top-left-radius: 12px;
}

.table-modern thead th:last-child {
    border-top-right-radius: 12px;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
}

.table-modern tbody tr:last-child {
    border-bottom: none;
}

.table-modern tbody tr.table-row-hover:hover {
    background: #f8fafc;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-modern tbody td {
    padding: 1.25rem 1.25rem;
    color: #475569;
    font-size: 0.9rem;
    vertical-align: middle;
}

.table-modern tbody td.actions-cell {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
}

.table-action-form {
    margin: 0;
    display: inline-flex;
}

.table-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.35);
    border: none;
    cursor: pointer;
}

.table-action-btn svg {
    width: 18px;
    height: 18px;
}

.table-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(15, 23, 42, 0.45);
}

.table-action-btn:focus {
    outline: 2px solid rgba(99, 102, 241, 0.25);
    outline-offset: 2px;
}

.table-action-btn:active {
    transform: scale(0.96);
}

.table-action-btn--edit {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
}

.table-action-btn--toggle {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.table-action-btn--delete {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.operator-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px -8px rgba(15, 23, 42, 0.35);
    color: white;
    white-space: nowrap;
}

.operator-action svg {
    width: 16px;
    height: 16px;
}

.operator-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(15, 23, 42, 0.45);
}

.operator-action--edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.operator-action--shift {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}

.operator-action--disable {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    white-space: nowrap;
}

.operator-action--disable:hover {
    box-shadow: 0 12px 24px -12px rgba(239, 68, 68, 0.6);
}

.ticket-no {
    font-weight: 600;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

.ticket-subject {
    font-weight: 500;
    color: #1e293b;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-date {
    color: #64748b;
    font-size: 0.85rem;
}

.assigned-to {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.assigned-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.assigned-icon {
    width: 16px;
    height: 16px;
    color: #64748b;
}

.pic-item {
    color: #667eea;
}

.pic-item .assigned-icon {
    color: #667eea;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Modern Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.badge-assigned {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    color: #0e7490;
}

.badge-forwarded {
    background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
    color: #6b21a8;
}

.badge-in_progress {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.badge-resolved {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.badge-rejected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.badge-low {
    background: #f1f5f9;
    color: #475569;
}

.badge-medium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.badge-high {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #9a3412;
}

.badge-urgent {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

/* Modern Buttons */
.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 1;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}

.btn-view svg {
    width: 16px;
    height: 16px;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* Dashboard Footer */
.dashboard-footer {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.dashboard-footer p {
    margin: 0;
    font-size: 0.875rem;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1001 !important;
        pointer-events: auto !important;
    }

    .dashboard-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        padding: 0.7rem 0;
        box-shadow: 0 6px 18px rgba(102, 126, 234, 0.25);
        overflow: visible;
        pointer-events: none;
    }

    .dashboard-header .header-content,
    .dashboard-header .mobile-menu-toggle {
        pointer-events: auto;
    }

    .dashboard-header .header-content {
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
    }

    .dashboard-header .header-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        max-width: calc(100% - 60px);
    }

    .dashboard-header h1 {
        font-size: 0.95rem;
        font-weight: 600;
        margin: 0;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-header .user-info {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.9);
        opacity: 1;
    }

    .dashboard-header .role-badge {
        display: inline-flex;
        padding: 0.15rem 0.5rem;
        font-size: 0.65rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.25);
    }

    .dashboard-header .user-icon {
        width: 16px;
        height: 16px;
        opacity: 0.85;
    }

    .dashboard-page {
        padding-top: 4.5rem;
    }

    .dashboard-main {
        position: relative;
        z-index: 1;
        width: 100%;
        overflow-x: hidden;
        padding-top: 3rem;
    }

    .mobile-overlay {
        display: block;
        pointer-events: none !important;
    }

    .mobile-overlay:not(.overlay-active) {
        pointer-events: none !important;
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .mobile-overlay.overlay-active {
        pointer-events: auto !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .dashboard-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        z-index: 1300;
        overflow-y: auto;
        padding: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .dashboard-nav.sidebar-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    }

    .dashboard-nav:not(.sidebar-open) {
        visibility: hidden;
        pointer-events: none;
        z-index: -1;
    }

    .nav-header {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 1rem;
    }

    .nav-logo {
        padding: 0.75rem 1.25rem;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    .nav-logo-img {
        height: 35px;
    }

    .dashboard-nav .nav-link {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
        border-radius: 10px;
        justify-content: flex-start;
    }

    .dashboard-nav .nav-link span {
        display: block;
    }

    .dashboard-nav .nav-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .nav-menu-toggle {
        width: 100%;
    }

    .nav-submenu {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 0.25rem;
        min-width: 100%;
        width: 100%;
        z-index: 1400;
    }

    .nav-submenu-item {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .nav-submenu-item::before {
        display: none;
    }

    .dashboard-header-section {
        flex-direction: column;
        align-items: stretch;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .stats-grid::-webkit-scrollbar {
        display: none;
    }

    .stat-card {
        padding: 1rem;
        min-width: 0;
        flex-shrink: 0;
    }

    .tickets-section {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .filters {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
        min-width: 0;
        font-size: 0;
        padding: 0.75rem;
        gap: 0;
    }

    .filter-btn .filter-icon {
        margin-right: 0;
        width: 22px;
        height: 22px;
    }

    .filter-btn .filter-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        border: 0;
        white-space: nowrap;
    }

    .table-container {
        overflow-x: scroll;
    }

    .table-modern {
        min-width: 800px;
    }

    .table-modern thead th,
    .table-modern tbody td {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .ticket-subject {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 1.5rem 0 3rem;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.625rem;
    }

    .stat-card {
        padding: 0.875rem;
        flex-direction: column;
        text-align: center;
        min-width: 0;
    }

    .stat-card-icon {
        margin: 0 auto 0.5rem;
        width: 48px;
        height: 48px;
    }

    .stat-card-icon svg {
        width: 24px;
        height: 24px;
    }

    .stat-card-content h3 {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* ============================================
   MODERN LOGIN PAGE STYLES
   ============================================ */

/* Scope all login styles to .login-page to prevent conflicts */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.login-page .login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.login-page .login-background-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.login-page .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.login-page .shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.login-page .shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.login-page .shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.login-page .login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 15px;
    animation: fadeInUp 0.6s ease-out;
    margin: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-page .login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.login-page .login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.3);
}

.login-page .login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 1.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.login-page .login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.login-page .login-logo-container {
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.login-page .login-logo {
    max-width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.login-page .login-title-section {
    position: relative;
    z-index: 1;
}

.login-page .login-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.login-page .login-subtitle {
    font-size: 0.85rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.3;
}

.login-page .login-body {
    padding: 1.5rem 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.login-page .login-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    animation: slideDown 0.4s ease-out;
    font-size: 0.85rem;
}

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

.login-page .login-alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.login-page .login-alert .alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.login-page .login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-page .login-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.login-page .login-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0;
}

.login-page .input-icon {
    width: 18px;
    height: 18px;
    color: #667eea;
}

.login-page .login-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1f2937;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.login-page .login-input::placeholder {
    color: #9ca3af;
}

.login-page .login-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.login-page .login-input:hover:not(:focus) {
    border-color: #d1d5db;
}

.login-page .login-form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 0.25rem;
}

.login-page .login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.login-page .login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-page .login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-page .login-btn span {
    position: relative;
    z-index: 1;
}

.login-page .login-btn svg.btn-icon,
.login-page .login-btn .btn-icon {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
}

.login-page .login-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-page .login-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.login-page .login-btn-primary:active {
    transform: translateY(0);
}

.login-page .login-btn-secondary {
    background: #ffffff;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.login-page .login-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    transform: translateY(-1px);
}

.login-page .login-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.login-page .login-footer p {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Responsive Login */
@media (max-width: 640px) {
    .login-page {
        padding: 15px 0;
    }

    .login-page .login-container {
        padding: 10px;
        max-width: 100%;
    }

    .login-page .login-card {
        border-radius: 16px;
        max-height: calc(100vh - 30px);
    }

    .login-page .login-header {
        padding: 1.25rem 1.25rem;
    }

    .login-page .login-title {
        font-size: 1.25rem;
    }

    .login-page .login-subtitle {
        font-size: 0.8rem;
    }

    .login-page .login-body {
        padding: 1.25rem 1.25rem;
    }

    .login-page .login-logo {
        max-width: 70px;
    }

    .login-page .login-form-actions {
        gap: 0.5rem;
    }

    .login-page .login-btn {
        padding: 0.7rem 1.15rem;
        font-size: 0.9rem;
        min-height: 42px;
    }

    .login-page .login-footer {
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 10px 0;
    }

    .login-page .login-container {
        padding: 8px;
    }

    .login-page .login-card {
        max-height: calc(100vh - 20px);
        border-radius: 14px;
    }

    .login-page .login-header {
        padding: 1rem 1rem;
    }

    .login-page .login-body {
        padding: 1rem 1rem;
    }

    .login-page .login-title {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
    }

    .login-page .login-subtitle {
        font-size: 0.75rem;
    }

    .login-page .login-logo {
        max-width: 60px;
    }

    .login-page .login-logo-container {
        margin-bottom: 0.5rem;
    }

    .login-page .login-form {
        gap: 0.875rem;
    }

    .login-page .login-input {
        padding: 0.65rem 0.875rem;
        font-size: 0.9rem;
    }

    .login-page .login-btn {
        padding: 0.65rem 1rem;
        font-size: 0.875rem;
        min-height: 40px;
    }

    .login-page .login-footer {
        padding: 0.75rem 1rem;
    }

    .login-page .login-footer p {
        font-size: 0.7rem;
    }

    .login-page .shape {
        filter: blur(60px);
    }

    .login-page .shape-1 {
        width: 300px;
        height: 300px;
    }

    .login-page .shape-2 {
        width: 250px;
        height: 250px;
    }

    .login-page .shape-3 {
        width: 200px;
        height: 200px;
    }
}

/***************************
 * Pagination Styles
 ***************************/
.pagination-container {
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    display: none;
}

.pagination-info {
    text-align: center;
    margin-bottom: 16px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    white-space: nowrap;
}

.pagination-btn:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cbd5e0;
}

.pagination-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pagination-numbers {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-number:hover:not(.active) {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
}

.pagination-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #718096;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    height: 40px;
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pagination-container {
        margin-top: 20px;
        padding: 12px 0;
    }

    .pagination-info {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .pagination-controls {
        gap: 6px;
        width: 100%;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
        flex: 0 0 auto;
    }

    .pagination-btn-nav {
        flex: 1;
        justify-content: center;
        max-width: calc(50% - 3px);
    }

    .pagination-btn-text {
        display: none;
    }

    .pagination-icon {
        width: 20px;
        height: 20px;
    }

    .pagination-numbers {
        gap: 3px;
        order: -1;
        width: 100%;
        margin-bottom: 8px;
    }

    .pagination-number {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .pagination-ellipsis {
        padding: 0 4px;
        font-size: 13px;
        height: 36px;
    }

    /* Hide page numbers on very small screens, show only prev/next */
    @media (max-width: 480px) {
        .pagination-numbers {
            display: none;
        }

        .pagination-controls {
            justify-content: space-between;
        }

        .pagination-btn-nav {
            max-width: 48%;
            flex: 0 0 48%;
        }

        .pagination-btn-text {
            display: inline;
            font-size: 12px;
        }

        .pagination-icon {
            display: none;
        }
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .pagination-btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    .pagination-number {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

