/***************************
 * 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;
}

/* Halo Pemko Kota Langsa - Stylesheet */

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

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

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

@media (max-width: 1024px) {
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

/* 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;
}

@media (max-width: 1024px) {
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.85em;
    }
}

/* 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-spam {
    background-color: #64748b;
    color: white;
}

.badge-duplicate {
    background-color: #7c3aed;
    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;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* 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;
}

.dashboard-header .header-title strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.dashboard-header .header-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.35rem 0 0.5rem 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .dashboard-header .header-subtitle {
        display: none;
    }
}

/* 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(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.875rem;
    }
}

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

@media (max-width: 1024px) {
    .stat-card {
        padding: 1rem;
        gap: 0.75rem;
    }
}

.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: 48px;
    height: 48px;
    border-radius: 10px;
    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: 10px;
}

@media (max-width: 1024px) {
    .stat-card-icon {
        width: 44px;
        height: 44px;
        padding: 8px;
    }
}

.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: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .stat-number {
        font-size: 1.5rem;
    }
}

.stat-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
    line-height: 1.3;
}

.stat-note {
    display: block;
    color: #4a5568;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .stat-desc {
        font-size: 0.7rem;
    }
}

/* 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);
    overflow: visible;
    position: relative;
    margin-top: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    margin-top: 0;
    flex-wrap: wrap;
    gap: 1rem;
    overflow: visible;
    position: relative;
    z-index: 1;
}

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

@media (max-width: 1024px) {
    .section-header h3 {
        font-size: 1.25rem;
    }
}

.filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .filter-btn {
        padding: 0.45rem 0.875rem;
        font-size: 0.8rem;
    }
}
    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;
    overflow: visible;
    box-sizing: border-box;
    flex-wrap: wrap;
}

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

.filter-btn .filter-text {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
    line-height: 1.3 !important;
    display: inline-block !important;
}

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

/* Base hover effects - konsisten untuk semua filter buttons */
.filter-btn:hover:not(.active) {
    transform: translateY(-1px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn.active:hover {
    transform: translateY(-2px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:not(.active) {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn.active {
    border-color: transparent;
    transform: translateY(-1px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   COMPACT ANDROID-LIKE FILTER STYLES
   ============================================ */

/* PIC Filter Buttons - Compact Android Style */
.filters-pic {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    padding: 10px 10px 14px 10px;
    margin-left: -10px;
    margin-right: -10px;
    position: relative;
    z-index: 2;
}

.filters-pic::-webkit-scrollbar {
    height: 4px;
}

.filters-pic::-webkit-scrollbar-track {
    background: transparent;
}

.filters-pic::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.filter-btn-pic {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 10px;
    min-height: 34px;
}

@media (max-width: 1024px) {
    .filter-btn-pic {
        padding: 0.45rem 0.75rem;
        font-size: 0.7rem;
        min-height: 32px;
    }
}
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: visible;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    transform: translateZ(0);
    isolation: isolate;
    contain: layout style paint;
    margin: 0;
}

.filter-btn-pic .filter-icon {
    width: 16px;
    height: 16px;
    margin-right: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 0.5px 1px rgba(0, 0, 0, 0.1));
}

.filter-btn-pic .filter-text {
    white-space: nowrap;
    font-size: 0.8rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    font-weight: 600;
}

/* Purple filter (Semua Pengaduan) */
.filter-btn-purple {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25), 0 1px 2px rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn-purple:not(.active) {
    background: #e0e7ff;
    color: #6366f1;
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.filter-btn-purple.active {
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3), 
                0 1px 3px rgba(99, 102, 241, 0.15),
                0 0 0 1.5px rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-btn-purple:hover:not(.active) {
    background: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2), 0 1px 2px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.25);
}

.filter-btn-purple.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(99, 102, 241, 0.4), 
                0 2px 6px rgba(99, 102, 241, 0.25),
                0 0 0 1.5px rgba(99, 102, 241, 0.2);
}

.filter-btn-purple.active::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.3s ease, height 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.filter-btn-purple.active:hover::before {
    width: 100%;
    height: 100%;
}

/* Green filter (Saya Bertanggung Jawab) */
.filter-btn-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25), 0 1px 2px rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn-green:not(.active) {
    background: #d1fae5;
    color: #059669;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.filter-btn-green.active {
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3), 
                0 1px 3px rgba(16, 185, 129, 0.15),
                0 0 0 1.5px rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-btn-green:hover:not(.active) {
    background: #a7f3d0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2), 0 1px 2px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.25);
}

.filter-btn-green.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(16, 185, 129, 0.4), 
                0 2px 6px rgba(16, 185, 129, 0.25),
                0 0 0 1.5px rgba(16, 185, 129, 0.2);
}

.filter-btn-green.active::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.3s ease, height 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.filter-btn-green.active:hover::before {
    width: 100%;
    height: 100%;
}

/* Blue filter (Pengaduan CC) */
.filter-btn-blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25), 0 1px 2px rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn-blue:not(.active) {
    background: #dbeafe;
    color: #3b82f6;
    box-shadow: 0 1px 2px rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.filter-btn-blue.active {
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.3), 
                0 1px 3px rgba(14, 165, 233, 0.15),
                0 0 0 1.5px rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-btn-blue:hover:not(.active) {
    background: #bfdbfe;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.2), 0 1px 2px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.25);
}

.filter-btn-blue.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(14, 165, 233, 0.4), 
                0 2px 6px rgba(14, 165, 233, 0.25),
                0 0 0 1.5px rgba(14, 165, 233, 0.2);
}

.filter-btn-blue.active::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.3s ease, height 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.filter-btn-blue.active:hover::before {
    width: 100%;
    height: 100%;
}

/* Status Filter Buttons - Compact Android Style */
.filters-status {
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    padding: 10px 10px 14px 10px;
    margin-left: -10px;
    margin-right: -10px;
    position: relative;
    z-index: 2;
}

.filters-status::-webkit-scrollbar {
    height: 4px;
}

.filters-status::-webkit-scrollbar-track {
    background: transparent;
}

.filters-status::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.filter-btn-status {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
    min-height: 34px;
}

@media (max-width: 1024px) {
    .filter-btn-status {
        padding: 0.45rem 0.75rem;
        font-size: 0.75rem;
        min-height: 32px;
    }
}
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
    background: #f1f5f9;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    transform: translateZ(0);
    overflow: visible;
    isolation: isolate;
    contain: layout style paint;
    margin: 0;
}

.filter-btn-status .filter-icon {
    width: 1.15em;
    height: 1.15em;
    margin-right: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 0.5px 1px rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn-status .filter-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.filter-btn-status .filter-text {
    white-space: nowrap;
    font-size: 0.85rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    font-weight: 600;
}

.filter-btn-status:not(.active) {
    background: #f1f5f9;
    color: #64748b;
    border-color: rgba(100, 116, 139, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-btn-status:hover:not(.active) {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
    border-color: rgba(100, 116, 139, 0.2);
}

.filter-btn-status.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3), 
                0 1px 3px rgba(102, 126, 234, 0.15),
                0 0 0 1.5px rgba(102, 126, 234, 0.12);
}

.filter-btn-status.active:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6b3d8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(102, 126, 234, 0.4), 
                0 2px 6px rgba(102, 126, 234, 0.25),
                0 0 0 1.5px rgba(102, 126, 234, 0.2);
}

.filter-btn-status.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.filter-btn-status.active:hover::before {
    width: 100%;
    height: 100%;
}

/* Ensure text and icons stay above the ripple effect */
.filter-btn-pic .filter-icon,
.filter-btn-pic .filter-text,
.filter-btn-status .filter-icon,
.filter-btn-status .filter-text {
    position: relative;
    z-index: 1;
}

/* HD Enhancement - Better rendering */
.filter-btn-pic,
.filter-btn-status {
    will-change: transform, box-shadow;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Better gradient rendering */
.filter-btn-purple,
.filter-btn-green,
.filter-btn-blue,
.filter-btn-status.active {
    background-size: 100% 100%;
    background-attachment: local;
}

/* Sharper shadows for HD look */
.filter-btn-pic.active,
.filter-btn-status.active {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

/* Modern Table */
/* Info bar di atas tabel */
.table-info-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #475569;
}

.table-info-text strong {
    color: #1e293b;
}

.table-info-hint {
    font-size: 0.8rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .table-info-bar {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.8rem;
    }
    .table-info-hint {
        font-size: 0.75rem;
    }
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.table-container * {
    box-sizing: border-box;
}

.table-modern {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    table-layout: fixed;
}
/* Colgroup: kolom tetap px; Judul/Kategori mengisi sisa lebar (full width) */
.table-modern .col-ticket-no { width: 110px; }
.table-modern .col-pelapor { width: 100px; }
.table-modern .col-judul-kategori { min-width: 290px; width: 1%; }
.table-modern .col-ditugaskan { width: 160px; }
.table-modern .col-spacer { width: 12px; }
.table-modern .col-tanggal { min-width: 170px; }
.table-modern .col-status { min-width: 160px; width: 1%; }
.table-modern .col-prioritas { min-width: 120px; width: 1%; }
.table-modern .col-aksi { width: 120px; }

@media (max-width: 1024px) {
    .table-modern {
        font-size: 0.85rem;
    }
}

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

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

@media (max-width: 1024px) {
    .table-modern thead th {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }
}

.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: 0.75rem 0.875rem;
    color: #475569;
    font-size: 0.85rem;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}
/* Tinggi baris konsisten agar tabel rapi */
.table-modern tbody tr {
    min-height: 48px;
}

/* Lebar kolom 1–6 sama dengan thead (px) agar sejajar dengan kolom 7–9 */
.table-modern tbody td:first-child,
.table-modern thead th:first-child {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
}
.table-modern tbody td:nth-child(2),
.table-modern thead th:nth-child(2) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}
.table-modern tbody td:nth-child(3),
.table-modern thead th:nth-child(3) {
    min-width: 290px;
    width: 1%;
}
/* Kolom 4 = Ditugaskan ke (hanya nama, tanpa tanggal) */
.table-modern tbody td:nth-child(4).assigned-to,
.table-modern thead th:nth-child(4) {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}
.table-modern tbody td.assigned-to .assigned-item {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
/* Data tanggal jangan tampil di kolom Ditugaskan ke */
.table-modern tbody td.assigned-to .date-created,
.table-modern tbody td.assigned-to .date-updated,
.table-modern tbody td.assigned-to .date-age {
    display: none !important;
}

/* Kolom 5 = spacer */
.table-modern thead th:nth-child(5),
.table-modern tbody td:nth-child(5).col-spacer-cell {
    width: 12px !important;
    min-width: 12px !important;
    max-width: 12px !important;
    padding: 0 !important;
    border: none !important;
}

/* Kolom 6 = TANGGAL (semua data tampil, tanpa tooltip) */
.table-modern thead th.col-header-tanggal,
.table-modern thead th:nth-child(6),
.table-modern tbody td.ticket-date,
.table-modern tbody td:nth-child(6).ticket-date {
    min-width: 170px !important;
    box-sizing: border-box;
}
.table-modern thead th.col-header-tanggal {
    text-align: left;
}
.table-modern tbody td.ticket-date {
    text-align: left;
    white-space: normal;
    overflow: visible;
}
.table-modern tbody td.ticket-date .btn-view {
    display: none !important;
}

/* Kolom 7 = Status, Kolom 8 = Prioritas (uppercase, lebar cukup agar teks tidak terpotong) */
.table-modern thead th:nth-child(7),
.table-modern tbody td:nth-child(7),
.table-modern thead th:nth-child(8),
.table-modern tbody td:nth-child(8) {
    max-width: none !important;
    overflow: visible;
    box-sizing: border-box;
    text-transform: uppercase;
}
.table-modern thead th:nth-child(7),
.table-modern tbody td:nth-child(7) {
    min-width: 160px !important;
}
.table-modern thead th:nth-child(8),
.table-modern tbody td:nth-child(8) {
    min-width: 120px !important;
}

/* Kolom 9 = AKSI (paling kanan) */
.table-modern thead th.col-header-aksi,
.table-modern thead th:nth-child(9),
.table-modern tbody td.actions-cell,
.table-modern tbody td:nth-child(9) {
    min-width: 120px !important;
    width: 120px !important;
    max-width: 120px !important;
    box-sizing: border-box;
}
.table-modern thead th.col-header-aksi {
    text-align: right;
}
.table-modern tbody td.actions-cell {
    text-align: right;
}
/* Hanya tombol Detail yang tampil di kolom Aksi */
.table-modern tbody td.actions-cell .date-created,
.table-modern tbody td.actions-cell .date-updated,
.table-modern tbody td.actions-cell .date-age {
    display: none !important;
}
.table-modern tbody td.actions-cell > *:not(.btn-view) {
    display: none !important;
}

@media (max-width: 1024px) {
    .table-modern tbody td {
        padding: 0.75rem 0.625rem;
        font-size: 0.8rem;
    }
    
    .table-modern tbody td:first-child,
    .table-modern thead th:first-child {
        min-width: 120px;
        max-width: 140px;
    }
    
    .table-modern tbody td:nth-child(3),
    .table-modern thead th:nth-child(3) {
        min-width: 150px;
        max-width: 200px;
    }
    
    .table-modern tbody td:nth-child(3),
    .table-modern thead th:nth-child(3) {
        min-width: 200px;
        max-width: 290px;
    }
    
    .table-modern tbody td:nth-child(4),
    .table-modern thead th:nth-child(4) {
        min-width: 120px;
        max-width: 150px;
    }
}

/* Isi kolom Aksi: hanya tombol Detail (class actions-cell) */
.table-modern tbody td.actions-cell {
    white-space: nowrap;
    box-sizing: border-box;
    overflow: visible;
    padding-left: 0.5rem;
    padding-right: 0.75rem;
    vertical-align: middle;
}
.table-modern tbody td.actions-cell .btn-view {
    display: inline-flex;
    max-width: 100%;
    box-sizing: border-box;
}

.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: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Di dalam tabel: kolom Judul/Kategori — judul baris atas, kategori baris bawah */
.table-modern .ticket-subject-category {
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: top;
}
.table-modern .ticket-subject-category .ticket-subject {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.table-modern .ticket-subject-category .ticket-category-line {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.table-modern .ticket-subject {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .ticket-subject {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .ticket-subject {
        max-width: 150px;
    }
}

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

.assigned-to {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 180px;
    word-wrap: break-word;
}
/* Di dalam tabel: Ditugaskan ke rapi, teks tidak overflow */
.table-modern .assigned-to {
    max-width: 160px;
    overflow: hidden;
}
.table-modern .assigned-to .assigned-item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.table-modern .assigned-to .assigned-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

.assigned-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .assigned-to {
        max-width: 150px;
        gap: 0.3rem;
    }
    
    .assigned-item {
        font-size: 0.75rem;
        gap: 0.35rem;
    }
}

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

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

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

/* Keterangan informatif kolom Ditugaskan ke (belum diteruskan ke PIC) */
.assigned-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    line-height: 1.35;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.assigned-hint-no-pic {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.assigned-hint-no-pic .assigned-hint-icon {
    flex-shrink: 0;
    font-size: 0.9rem;
    line-height: 1.2;
}
.assigned-hint-shared {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.assigned-hint-text {
    flex: 1;
    min-width: 0;
}
.table-modern .assigned-to {
    overflow: visible;
}

.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;
}

.empty-state-hint {
    font-size: 0.875rem !important;
    color: #64748b !important;
    margin-top: 0.5rem !important;
    max-width: 320px;
    line-height: 1.4;
}

/* Modern Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 18px;
    font-size: 0.7rem;
    white-space: nowrap;
}

/* Kolom Kategori */
.ticket-category {
    font-size: 0.85rem;
    color: #475569;
}
.table-modern .ticket-category {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-muted {
    color: #94a3b8;
    font-style: normal;
}

/* Kolom Tanggal: beberapa baris (dibuat, update, usia) */
.ticket-date {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8rem;
}
.ticket-date .date-created {
    white-space: nowrap;
}
.ticket-date .date-updated {
    font-size: 0.75rem;
    color: #64748b;
}
.ticket-date .date-age {
    font-size: 0.75rem;
    color: #94a3b8;
}
/* Di dalam tabel: Tanggal — tampilkan semua (Dibuat, Update, Usia) tanpa tooltip */
.table-modern .ticket-date {
    overflow: visible;
}
.table-modern .ticket-date .date-created,
.table-modern .ticket-date .date-updated,
.table-modern .ticket-date .date-age {
    display: block;
    white-space: nowrap;
    overflow: visible;
}

.mobile-ticket-age {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* Kolom 7 = Status, Kolom 8 = Prioritas: label menyesuaikan konten (fit-content) */
.table-modern tbody td:nth-child(7),
.table-modern thead th:nth-child(7),
.table-modern tbody td:nth-child(8),
.table-modern thead th:nth-child(8) {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.table-modern tbody td:nth-child(7) .badge,
.table-modern tbody td:nth-child(8) .badge {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: center;
    line-height: 1.3;
    display: inline-block;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    box-sizing: border-box;
    overflow: visible;
}

@media (max-width: 1024px) {
    .badge {
        padding: 0.25rem 0.625rem;
        font-size: 0.65rem;
    }
}

.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-spam {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
}

.badge-duplicate {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #5b21b6;
}

.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.4rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .btn-view {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.35rem;
    }
}
    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: visible;
        overflow-y: visible;
        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;
        overflow: visible;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 0.75rem;
        gap: 0.75rem;
        overflow: visible;
    }

    .filters {
        width: 100%;
        gap: 0.4rem;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filters-pic {
        margin-bottom: 0.75rem;
        gap: 0.5rem;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        flex-wrap: wrap;
        overflow-x: visible;
        width: 100%;
    }

    .filters-status {
        margin-top: 0;
        margin-bottom: 0;
        gap: 0.5rem;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        flex-wrap: wrap;
        overflow-x: visible;
        width: 100%;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    /* Compact Android-style filters on mobile - Full Width */
    .filter-btn-pic {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        min-height: 48px;
        gap: 0.5rem;
        flex: 1 1 calc(33.333% - 0.34rem);
        min-width: calc(33.333% - 0.34rem);
        max-width: calc(33.333% - 0.34rem);
        border-radius: 12px;
        width: auto;
        justify-content: center;
        flex-direction: column;
    }

    .filter-btn-pic .filter-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 0.25rem;
    }

    .filter-btn-pic .filter-text {
        font-size: 0.75rem;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
        display: block;
    }

    .filter-btn-status {
        padding: 0.75rem 0.75rem;
        font-size: 0.8rem;
        min-height: 48px;
        gap: 0.5rem;
        flex: 1 1 calc(25% - 0.38rem);
        min-width: calc(25% - 0.38rem);
        max-width: calc(25% - 0.38rem);
        border-radius: 12px;
        width: auto;
        justify-content: center;
        flex-direction: column;
    }

    .filter-btn-status .filter-icon {
        width: 1.35em;
        height: 1.35em;
        margin-bottom: 0.25rem;
        margin-right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .filter-btn-status .filter-icon svg {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
    }

    .filter-btn-status .filter-text {
        font-size: 0.7rem;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
        display: block;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
        min-width: 0;
        font-size: 0.75rem;
        padding: 0.625rem 0.5rem;
        gap: 0.375rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 60px;
        max-width: calc(33.333% - 0.5rem);
        width: 100%;
        overflow: visible;
        box-sizing: border-box;
        border-radius: 12px;
    }

    .filter-btn svg {
        margin-right: 0 !important;
        margin-bottom: 0.25rem !important;
        width: 18px !important;
        height: 18px !important;
        flex-shrink: 0;
        vertical-align: top !important;
    }

    .filter-btn .filter-icon {
        margin-right: 0;
        margin-bottom: 0.25rem;
        width: 18px;
        height: 18px;
    }

    .filter-btn .filter-text {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        border: 0 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.2 !important;
        font-size: 0.7rem !important;
        text-align: center !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-sizing: border-box !important;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .table-modern {
        width: 100%;
    }

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

    .ticket-subject {
        max-width: 120px;
    }
    
    .assigned-to {
        max-width: 140px;
        font-size: 0.75rem;
    }
    
    .ticket-date {
        font-size: 0.7rem;
    }
    .ticket-date .date-created {
        white-space: nowrap;
    }
    
    .ticket-no {
        font-size: 0.75rem;
    }
}

@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;
    }

    /* Mobile: Full width filters - Smaller screens */
    .filters-pic {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    .filter-btn-pic {
        padding: 0.7rem 0.5rem;
        font-size: 0.75rem;
        min-height: 48px;
        gap: 0.4rem;
        flex: 1 1 calc(33.333% - 0.34rem);
        min-width: calc(33.333% - 0.34rem);
        max-width: calc(33.333% - 0.34rem);
        border-radius: 10px;
        width: auto;
        flex-direction: column;
    }

    .filter-btn-pic .filter-icon {
        width: 18px;
        height: 18px;
        margin-bottom: 0.2rem;
    }

    .filter-btn-pic .filter-text {
        font-size: 0.7rem;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
        display: block;
    }

    /* Mobile: Full width status filters - Smaller screens */
    .filters-status {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.75rem;
    }

    .filter-btn-status {
        padding: 0.7rem 0.5rem;
        font-size: 0.75rem;
        min-height: 48px;
        gap: 0.4rem;
        flex: 1 1 calc(25% - 0.38rem);
        min-width: calc(25% - 0.38rem);
        max-width: calc(25% - 0.38rem);
        border-radius: 10px;
        width: auto;
        flex-direction: column;
    }

    .filter-btn-status .filter-icon {
        width: 1.35em;
        height: 1.35em;
        margin-bottom: 0.2rem;
        margin-right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .filter-btn-status .filter-icon svg {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
    }

    .filter-btn-status .filter-text {
        font-size: 0.65rem;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
        display: block;
    }

    /* Mobile: Vertical layout dengan ikon di atas dan teks di bawah */
    .filter-btn {
        flex: 1;
        padding: 0.5rem 0.375rem;
        font-size: 0.65rem !important;
        min-height: 60px;
        flex-direction: column;
        gap: 0.25rem;
        max-width: calc(33.333% - 0.5rem);
        width: 100%;
        overflow: visible;
        box-sizing: border-box;
        border-radius: 10px;
    }

    .filter-btn svg {
        width: 18px !important;
        height: 18px !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

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

    .filter-btn .filter-text {
        font-size: 0.65rem !important;
        line-height: 1.15 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-indent: 0 !important;
        text-transform: none !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        background: transparent !important;
        color: inherit !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

/* ============================================
   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;
    }
}

/* ============================================
   GLOBAL OVERRIDE - Pastikan Teks Button Selalu Tampil
   ============================================ */

/* Override semua kemungkinan yang menyembunyikan teks pada filter button */
.filter-btn .filter-text,
.filter-btn span.filter-text,
a.filter-btn .filter-text,
a.filter-btn span.filter-text {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: inherit !important;
    line-height: normal !important;
    text-indent: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Pastikan font-size button tidak pernah 0 dan teks bisa wrap */
.filter-btn {
    font-size: 0.9rem !important;
}

.filter-btn .filter-text,
.filter-btn span.filter-text {
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

@media (max-width: 768px) {
    .filter-btn {
        font-size: 0.75rem !important;
    }
    
    .filter-btn .filter-text,
    .filter-btn span.filter-text {
        display: block !important;
        white-space: normal !important;
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        font-size: 0.65rem !important;
    }
    
    .filter-btn .filter-text,
    .filter-btn span.filter-text {
        font-size: 0.65rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* ============================================
   MOBILE COMPACT CARD LAYOUT FOR PIC ROLE
   ============================================ */

/* Hide table on mobile, show cards */
@media (max-width: 768px) {
    .table-container {
        display: none !important;
    }
    .mobile-tickets-container {
        display: block !important;
    }
}

/* Desktop: Hide mobile cards */
@media (min-width: 769px) {
    .mobile-tickets-container {
        display: none !important;
    }
    
    .table-container {
        display: block !important;
    }
}

.mobile-tickets-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.mobile-ticket-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-ticket-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.mobile-ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-ticket-card:hover::before {
    opacity: 1;
}

/* Card Header - Ticket No & Status */
.mobile-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.mobile-ticket-no-wrapper {
    flex: 1;
    min-width: 0;
}

.mobile-ticket-no {
    font-weight: 700;
    font-size: 0.9rem;
    color: #667eea;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.mobile-ticket-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.mobile-ticket-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mobile-ticket-badge-cc {
    background: #17a2b8;
    color: white;
}

.mobile-ticket-badge-info-type {
    background: #0ea5e9 !important;
    color: white;
    max-width: 100%;
    box-sizing: border-box;
}

.mobile-ticket-type-label {
    font-size: 0.7rem;
    color: #0ea5e9;
    font-weight: 500;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.3;
}

.mobile-ticket-status {
    flex-shrink: 0;
}

/* Card Body - Subject & Info */
.mobile-ticket-body {
    margin-bottom: 0.75rem;
}

.mobile-ticket-subject {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mobile-ticket-info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.mobile-ticket-info-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #94a3b8;
}

.mobile-ticket-info-label {
    font-weight: 500;
    color: #475569;
    min-width: 60px;
}

.mobile-ticket-info-value {
    flex: 1;
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
}

.mobile-ticket-priority {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Card Footer - Date & Action */
.mobile-ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    gap: 0.75rem;
}

.mobile-ticket-date {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mobile-ticket-date-icon {
    width: 14px;
    height: 14px;
    color: #cbd5e0;
}

.mobile-ticket-action {
    flex-shrink: 0;
}

.mobile-ticket-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
    min-height: 36px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-ticket-action-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.3);
}

.mobile-ticket-action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Empty State for Mobile */
.mobile-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    opacity: 0.4;
    color: #94a3b8;
}

.mobile-empty-state p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Status Badge Colors for Mobile */
.mobile-ticket-badge-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

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

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

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

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

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

.mobile-ticket-badge-spam {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
}

.mobile-ticket-badge-duplicate {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #5b21b6;
}

/* Priority Badge Colors for Mobile */
.mobile-ticket-priority-low {
    background: #f1f5f9;
    color: #475569;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-ticket-card {
        padding: 0.875rem;
        border-radius: 10px;
    }
    
    .mobile-ticket-no {
        font-size: 0.85rem;
    }
    
    .mobile-ticket-subject {
        font-size: 0.85rem;
    }
    
    .mobile-ticket-info-row {
        font-size: 0.75rem;
    }
    
    .mobile-ticket-action-btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.75rem;
        min-height: 34px;
    }
    
    .mobile-ticket-action-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ============================================
   MOBILE OPTIMIZED STYLES FOR PIC ROLE - TICKET DETAIL PAGE
   ============================================ */

@media (max-width: 768px) {
    /* Compact header untuk mobile PIC */
    .ticket-detail-page .detail-header-card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    }

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

    .ticket-detail-page .ticket-label {
        background: rgba(255, 255, 255, 0.25);
        color: white;
        font-size: 0.7rem;
        padding: 0.3rem 0.65rem;
        margin-bottom: 0.5rem;
    }

    .ticket-detail-page .detail-header-info h2 {
        color: white;
        font-size: 1.5rem;
        margin: 0.5rem 0 0.75rem;
        font-weight: 700;
    }

    .ticket-detail-page .detail-header-info .ticket-subject {
        color: rgba(255, 255, 255, 0.95);
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    /* Compact meta badges */
    .ticket-detail-page .detail-header-metas {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 0.5rem;
    }

    .ticket-detail-page .detail-meta {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0.75rem;
        border-radius: 12px;
    }

    .ticket-detail-page .meta-label {
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }

    .ticket-detail-page .meta-value {
        color: white;
        font-size: 0.95rem;
        font-weight: 600;
    }

    .ticket-detail-page .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        border-radius: 8px;
        font-weight: 600;
    }

    /* Compact detail cards */
    .ticket-detail-page .detail-card {
        padding: 1.25rem 1rem;
        border-radius: 14px;
        margin-bottom: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .ticket-detail-page .detail-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        color: #1e293b;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .ticket-detail-page .section-heading h3 {
        font-size: 1rem;
    }

    .ticket-detail-page .section-subtitle {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }

    /* Compact table untuk mobile */
    .ticket-detail-page .detail-table {
        font-size: 0.85rem;
        border-radius: 12px;
    }

    .ticket-detail-page .detail-table th {
        width: 35%;
        font-size: 0.75rem;
        padding: 0.65rem 0.75rem;
        background: rgba(248, 250, 252, 0.95);
    }

    .ticket-detail-page .detail-table td {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
        word-break: break-word;
    }

    /* Action cards untuk PIC - lebih menonjol */
    .ticket-detail-page .action-card {
        background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
        border-left: 4px solid #667eea;
        padding: 1.25rem 1rem;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    }

    .ticket-detail-page .action-card h3 {
        color: #4338ca;
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .ticket-detail-page .action-description {
        color: #6366f1;
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    /* Info card untuk CC PIC */
    .ticket-detail-page .info-card {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border: 2px solid #f59e0b;
        padding: 1rem;
        border-radius: 14px;
    }

    .ticket-detail-page .info-card h3 {
        color: #92400e;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .ticket-detail-page .info-card p {
        color: #78350f;
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* Compact form elements */
    .ticket-detail-page .form-modern .form-group {
        margin-bottom: 1rem;
    }

    .ticket-detail-page .form-modern .form-group label {
        font-size: 0.85rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.5rem;
        display: block;
    }

    .ticket-detail-page .form-modern .form-group textarea,
    .ticket-detail-page .form-modern .form-group select,
    .ticket-detail-page .form-modern .form-group input[type="file"] {
        font-size: 0.9rem;
        padding: 0.7rem 0.85rem;
        border-radius: 10px;
        border: 1.5px solid #d1d5db;
    }

    .ticket-detail-page .form-modern .form-group small {
        font-size: 0.75rem;
        color: #6b7280;
        margin-top: 0.35rem;
        display: block;
    }

    /* Button styles untuk mobile PIC */
    .ticket-detail-page .btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
        font-weight: 600;
        border-radius: 12px;
        transition: all 0.2s ease;
    }

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

    .ticket-detail-page .btn-primary:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    }

    .ticket-detail-page .btn-success {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

    .ticket-detail-page .btn-success:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    }

    /* Assignment card compact */
    .ticket-detail-page .assignment-card {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border: 1px solid #e2e8f0;
    }

    .ticket-detail-page .detail-assignment-list {
        gap: 0.85rem;
    }

    .ticket-detail-page .detail-assignment-list > div {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.75rem;
        background: white;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
    }

    .ticket-detail-page .detail-label {
        font-size: 0.7rem;
        color: #6b7280;
    }

    .ticket-detail-page .detail-value {
        font-size: 0.9rem;
        color: #111827;
        font-weight: 500;
    }

    /* Chip styles */
    .ticket-detail-page .chip {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
        background: rgba(102, 126, 234, 0.15);
        color: #4338ca;
    }

    .ticket-detail-page .chip-hint {
        font-size: 0.7rem;
        color: #9ca3af;
        margin-top: 0.5rem;
    }

    /* Comments section compact */
    .ticket-detail-page .comments-card {
        margin-top: 1rem;
    }

    .ticket-detail-page .comment-timeline {
        padding-left: 1.75rem;
        gap: 1.25rem;
    }

    .ticket-detail-page .comment-timeline::before {
        left: 0.75rem;
    }

    .ticket-detail-page .comment-timeline-item::before {
        left: -0.95rem;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .ticket-detail-page .comment-card {
        border-radius: 14px;
    }

    .ticket-detail-page .comment-card-head {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .ticket-detail-page .comment-card-body {
        padding: 14px 16px;
        font-size: 0.85rem;
    }

    .ticket-detail-page .comment-date {
        font-size: 0.8rem;
    }

    /* Breadcrumb compact */
    .ticket-detail-page .detail-breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .ticket-detail-page .detail-breadcrumb svg {
        width: 16px;
        height: 16px;
    }

    /* Footer button */
    .ticket-detail-page .detail-footer {
        margin-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .ticket-detail-page .detail-footer .btn {
        width: 100%;
    }

    /* Extra spacing untuk floating button */
    .ticket-detail-page .detail-footer {
        padding-bottom: 6rem;
    }
}

/* Extra small screens - lebih compact lagi */
@media (max-width: 480px) {
    .ticket-detail-page .detail-header-card {
        padding: 1rem 0.85rem;
    }

    .ticket-detail-page .detail-header-info h2 {
        font-size: 1.3rem;
    }

    .ticket-detail-page .detail-header-info .ticket-subject {
        font-size: 0.9rem;
    }

    .ticket-detail-page .detail-header-metas {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .ticket-detail-page .detail-meta {
        padding: 0.65rem;
    }

    .ticket-detail-page .detail-card {
        padding: 1rem 0.85rem;
    }

    .ticket-detail-page .detail-table th {
        width: 40%;
        font-size: 0.7rem;
        padding: 0.55rem 0.65rem;
    }

    .ticket-detail-page .detail-table td {
        font-size: 0.8rem;
        padding: 0.55rem 0.65rem;
    }

    .ticket-detail-page .action-card,
    .ticket-detail-page .info-card {
        padding: 1rem 0.85rem;
    }

    .ticket-detail-page .btn {
        padding: 0.8rem 1.1rem;
        font-size: 0.85rem;
    }

    .ticket-detail-page .comment-timeline {
        padding-left: 1.5rem;
    }

    .ticket-detail-page .comment-timeline-item::before {
        left: -0.8rem;
        width: 10px;
        height: 10px;
    }
}

/* Status badge colors untuk mobile PIC */
@media (max-width: 768px) {
    .ticket-detail-page .badge-pending {
        background: rgba(251, 191, 36, 0.2);
        color: #d97706;
        border: 1px solid rgba(251, 191, 36, 0.4);
    }

    .ticket-detail-page .badge-assigned {
        background: rgba(59, 130, 246, 0.2);
        color: #1d4ed8;
        border: 1px solid rgba(59, 130, 246, 0.4);
    }

    .ticket-detail-page .badge-forwarded {
        background: rgba(139, 92, 246, 0.2);
        color: #7c3aed;
        border: 1px solid rgba(139, 92, 246, 0.4);
    }

    .ticket-detail-page .badge-in_progress {
        background: rgba(102, 126, 234, 0.2);
        color: #4338ca;
        border: 1px solid rgba(102, 126, 234, 0.4);
    }

    .ticket-detail-page .badge-resolved {
        background: rgba(16, 185, 129, 0.2);
        color: #059669;
        border: 1px solid rgba(16, 185, 129, 0.4);
    }

    .ticket-detail-page .badge-rejected {
        background: rgba(239, 68, 68, 0.2);
        color: #dc2626;
        border: 1px solid rgba(239, 68, 68, 0.4);
    }

    .ticket-detail-page .badge-spam {
        background: rgba(100, 116, 139, 0.2);
        color: #475569;
        border: 1px solid rgba(100, 116, 139, 0.4);
    }

    .ticket-detail-page .badge-duplicate {
        background: rgba(124, 58, 237, 0.2);
        color: #6d28d9;
        border: 1px solid rgba(124, 58, 237, 0.4);
    }

    .ticket-detail-page .badge-low {
        background: rgba(156, 163, 175, 0.2);
        color: #4b5563;
        border: 1px solid rgba(156, 163, 175, 0.4);
    }

    .ticket-detail-page .badge-medium {
        background: rgba(59, 130, 246, 0.2);
        color: #1d4ed8;
        border: 1px solid rgba(59, 130, 246, 0.4);
    }

    .ticket-detail-page .badge-high {
        background: rgba(245, 158, 11, 0.2);
        color: #d97706;
        border: 1px solid rgba(245, 158, 11, 0.4);
    }

    .ticket-detail-page .badge-urgent {
        background: rgba(239, 68, 68, 0.2);
        color: #dc2626;
        border: 1px solid rgba(239, 68, 68, 0.4);
    }

    /* Visual improvements untuk action cards */
    .ticket-detail-page .action-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        border-radius: 14px 14px 0 0;
    }

    .ticket-detail-page .action-card {
        position: relative;
    }

    /* Highlight important information */
    .ticket-detail-page .detail-assignment-list > div:first-child {
        border-left: 3px solid #667eea;
    }

    /* Better spacing untuk mobile */
    .ticket-detail-page .ticket-detail-wrapper {
        gap: 1rem;
    }

    /* Attachment container mobile optimization */
    .ticket-detail-page .attachment-container {
        margin: 0.75rem 0;
    }

    .ticket-detail-page .attachment-buttons {
        gap: 0.65rem;
    }

    .ticket-detail-page .attachment-buttons .btn {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }

    /* Form group spacing */
    .ticket-detail-page .form-modern .form-group:last-child {
        margin-bottom: 0;
    }

    /* Mobile: Stack layout untuk better flow */
    .ticket-detail-page .ticket-detail-wrapper {
        grid-template-columns: 1fr;
    }

    /* Visual separator untuk sections */
    .ticket-detail-page .detail-card + .detail-card {
        margin-top: 0;
    }

    /* Improved empty state */
    .ticket-detail-page .empty-state {
        text-align: center;
        padding: 2rem 1rem;
        background: rgba(248, 250, 252, 0.8);
        border: 1px dashed #cbd5e1;
        border-radius: 12px;
        color: #64748b;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .ticket-detail-page .btn,
    .ticket-detail-page .comment-proof-link,
    .ticket-detail-page .breadcrumb-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ticket-detail-page input[type="file"] {
        min-height: 44px;
        padding: 0.7rem;
    }

    .ticket-detail-page select {
        min-height: 44px;
    }

    .ticket-detail-page textarea {
        min-height: 100px;
    }

    /* Floating Start Work Button - Minimalis Design */
    .floating-start-work {
        display: none;
    }

    /* Hide card biasa di mobile */
    .ticket-detail-page .start-work-card {
        display: block;
    }

    /* Hide floating nav jika ada floating start work */
    .floating-start-work ~ .floating-action-nav,
    .ticket-detail-page:has(.floating-start-work) .floating-action-nav {
        display: none !important;
    }
}

    /* Floating Action Button untuk Mobile */
@media (max-width: 768px) {
    /* Hide card biasa di mobile */
    .ticket-detail-page .start-work-card {
        display: none;
    }

    /* Show floating button */
    .floating-start-work {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        border-top: 1px solid rgba(226, 232, 240, 0.8);
    }

    .floating-start-work-form {
        margin: 0;
        width: 100%;
    }

    .floating-start-work-btn {
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 16px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
        position: relative;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .floating-start-work-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .floating-start-work-btn:hover::before {
        left: 100%;
    }

    .floating-start-work-btn:active {
        transform: scale(0.97);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    }

    .floating-start-work-btn:focus {
        outline: none;
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35), 0 0 0 3px rgba(102, 126, 234, 0.2);
    }

    .floating-start-work-btn svg {
        width: 24px;
        height: 24px;
        stroke-width: 2.5;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .floating-start-work-btn:active svg {
        transform: rotate(90deg);
    }

    .floating-btn-text {
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    /* Smooth scroll untuk konten di atas floating button */
    .ticket-detail-main {
        padding-bottom: 90px;
    }

    /* Pastikan konten tidak tertutup */
    .ticket-detail-page .container {
        padding-bottom: 0;
    }

    /* Extra small screens */
    @media (max-width: 480px) {
        .floating-start-work {
            padding: 0.85rem;
        }

        .floating-start-work-btn {
            padding: 0.9rem 1.25rem;
            font-size: 0.95rem;
            border-radius: 14px;
        }

        .floating-start-work-btn svg {
            width: 22px;
            height: 22px;
        }

        .ticket-detail-main {
            padding-bottom: 85px;
        }
    }

    /* Animation untuk muncul */
    @keyframes slideUpFade {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .floating-start-work {
        animation: slideUpFade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Desktop: Hide floating button, show card */
@media (min-width: 769px) {
    .floating-start-work {
        display: none !important;
    }

    .ticket-detail-page .start-work-card {
        display: block !important;
    }

    /* Hide floating nav di desktop */
    .floating-action-nav {
        display: none !important;
    }
}

/* ============================================
   FLOATING ACTION NAVIGATION - LAPORKAN PROGRESS & TUTUP TIKET
   ============================================ */

    /* Floating Navigation untuk Mobile */
@media (max-width: 768px) {
    .floating-action-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0.75rem;
        gap: 0.75rem;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        border-top: 1px solid rgba(226, 232, 240, 0.8);
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }

    /* Pastikan tidak ada konflik dengan floating start work */
    .floating-start-work {
        z-index: 1001;
    }

    .floating-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.85rem 0.75rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 14px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
        position: relative;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        min-height: 64px;
    }

    .floating-nav-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .floating-nav-btn:hover::before {
        left: 100%;
    }

    .floating-nav-btn:active {
        transform: scale(0.96);
        box-shadow: 0 2px 12px rgba(102, 126, 234, 0.4);
    }

    .floating-nav-btn:focus {
        outline: none;
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3), 0 0 0 3px rgba(102, 126, 234, 0.2);
    }

    .floating-nav-btn svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .floating-nav-btn:active svg {
        transform: scale(1.1);
    }

    .floating-nav-btn span {
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        line-height: 1.2;
    }

    /* Success button untuk Tutup Tiket */
    .floating-nav-btn-success {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    }

    .floating-nav-btn-success:active {
        box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4);
    }

    .floating-nav-btn-success:focus {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3), 0 0 0 3px rgba(16, 185, 129, 0.2);
    }

    /* Animation untuk muncul */
    @keyframes slideUpFadeNav {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .floating-action-nav {
        animation: slideUpFadeNav 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Extra spacing untuk konten saat floating nav muncul */
    body:has(.floating-action-nav) .ticket-detail-main {
        padding-bottom: 90px;
    }

    body:has(.floating-action-nav) .detail-footer {
        padding-bottom: 6rem;
    }

    /* Extra small screens */
    @media (max-width: 480px) {
        .floating-action-nav {
            padding: 0.65rem;
            gap: 0.65rem;
            padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
        }

        .floating-nav-btn {
            padding: 0.75rem 0.65rem;
            font-size: 0.8rem;
            border-radius: 12px;
            min-height: 60px;
        }

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

        .floating-nav-btn span {
            font-size: 0.75rem;
        }
    }
}

    /* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Export buttons optimization */
.export-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.export-btn {
    padding: 0.5rem 0.875rem !important;
    font-size: 0.8rem !important;
    gap: 0.4rem !important;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .export-btn {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
    
    .export-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Ensure no horizontal overflow (kecuali sel tabel agar kolom tidak collapse) */
* {
    max-width: 100%;
}
.table-modern th,
.table-modern td {
    max-width: none;
}

.dashboard-main,
.dashboard-main .container {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
.tickets-section {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: visible; /* agar table-container bisa scroll horizontal, tabel tidak dikecilkan */
}

/* Ensure proper spacing untuk semua floating elements */
@media (max-width: 768px) {
    /* Jika ada floating nav atau floating start work, tambahkan padding */
    body:has(.floating-action-nav) .ticket-detail-main,
    body:has(.floating-start-work) .ticket-detail-main {
        padding-bottom: 90px;
    }

    body:has(.floating-action-nav) .detail-footer,
    body:has(.floating-start-work) .detail-footer {
        padding-bottom: 6rem;
    }
}

/* Highlight target section saat di-scroll */
@media (max-width: 768px) {
    .detail-card.action-card {
        scroll-margin-top: 1rem;
        transition: box-shadow 0.3s ease;
    }

    .detail-card.action-card:target {
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
        animation: highlightPulse 0.6s ease;
    }

    @keyframes highlightPulse {
        0%, 100% {
            box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
        }
        50% {
            box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
        }
    }

    /* Scroll highlight effect */
    .detail-card.scroll-highlight {
        animation: scrollHighlight 2s ease;
        border-left-width: 5px;
    }

    @keyframes scrollHighlight {
        0% {
            border-left-color: #667eea;
            box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
        }
        50% {
            border-left-color: #764ba2;
            box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
        }
        100% {
            border-left-color: #667eea;
            box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
        }
    }

    /* Active state untuk button yang diklik */
    .floating-nav-btn.active {
        transform: scale(0.95);
        box-shadow: 0 2px 12px rgba(102, 126, 234, 0.4);
    }

    .floating-nav-btn-success.active {
        box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4);
    }
}
