/* Custom Premium Stylesheet for SALUT Serang Portal */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0F172A;
    --primary-gradient: linear-gradient(135deg, #0A2540 0%, #1e3a8a 100%);
    --secondary-color: #F59E0B;
    --ut-blue: #003366;
    --ut-yellow: #FFCC00;
    --accent-color: #4F46E5;
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --border-color: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0F172A;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* App Mockup Container for Desktop, Native Mobile on Screens < 480px */
.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height to prevent toolbar overflow on mobile */
    background-color: var(--bg-color);
    position: relative;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 481px) and (max-width: 767px) {
    .app-container {
        height: 92vh;
        max-height: 900px;
        min-height: 650px;
        border-radius: var(--radius-lg);
        border: 8px solid #334155;
        margin: 20px 0;
    }
}

/* Header Component */
.app-header {
    background: var(--primary-gradient);
    padding: 24px 20px 30px 20px;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.app-header::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.brand-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-text h1 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    line-height: 1.2;
}

.brand-text p {
    font-size: 10px;
    font-weight: 600;
    color: var(--ut-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notification-bell {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.2);
}

.notification-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
}

.welcome-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.welcome-section p {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

/* Page Body Wrapper */
.content-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Scrollbar styles for the content body */
.content-body::-webkit-scrollbar {
    width: 6px;
}
.content-body::-webkit-scrollbar-track {
    background: transparent;
}
.content-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Banner Announcement Card */
.promo-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: var(--radius-md);
    padding: 20px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.promo-card::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.promo-tag {
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.promo-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.promo-desc {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.4;
}

.promo-btn {
    background-color: var(--ut-yellow);
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Quick Actions Grid */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-link {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.action-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 6px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: white;
    margin-bottom: 8px;
}

.icon-blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.icon-gold { background: linear-gradient(135deg, #d97706, #f59e0b); }
.icon-purple { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.icon-emerald { background: linear-gradient(135deg, #059669, #10b981); }

.action-card h3 {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
    color: var(--text-primary);
}

.action-card p {
    display: none;
}

/* Facilities Carousel/Cards */
.facility-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
    scrollbar-width: none;
}

.facility-scroll::-webkit-scrollbar {
    display: none;
}

.facility-card {
    flex: 0 0 240px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.facility-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 24px;
}

.facility-info {
    padding: 12px;
}

.facility-info h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.facility-info p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* FAQ Accordion Component */
.faq-list {
    margin-bottom: 24px;
}

.faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-question {
    padding: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--text-secondary);
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active {
    border-color: var(--accent-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.faq-item.active .faq-answer {
    padding: 0 16px 16px 16px;
    max-height: 1000px;
    transition: all 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Location Card */
.location-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.map-placeholder {
    height: 150px;
    border-radius: var(--radius-sm);
    background: #e2e8f0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-info p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
}

/* Bottom Navigation Menu */
.bottom-nav {
    height: 70px;
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 100;
    flex-shrink: 0;
}

@media (min-width: 481px) and (max-width: 767px) {
    .bottom-nav {
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    gap: 4px;
    flex-grow: 1;
    height: 100%;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 18px;
    transition: transform 0.3s;
}

.nav-item.active {
    color: var(--ut-blue);
}

.nav-item.active i {
    transform: translateY(-2px);
    color: var(--ut-blue);
}

/* General Form Styles */
.form-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background-color: #F8FAFC;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--accent-color);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

.btn-submit {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Success Card */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 72px;
    height: 72px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin: 0 auto 24px auto;
}

.success-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.ticket-badge {
    background-color: #E2E8F0;
    border: 1px dashed #cbd5e1;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: inline-block;
    letter-spacing: 1px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--border-color);
}

/* Status Tracker Layout */
.tracker-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.tracker-id {
    font-size: 14px;
    font-weight: 700;
}

.status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.status-baru, .status-pending { background-color: #FEF3C7; color: #D97706; }
.status-dihubungi, .status-proses { background-color: #DBEAFE; color: #2563EB; }
.status-berkas, .status-selesai { background-color: #D1FAE5; color: #059669; }
.status-batal { background-color: #FEE2E2; color: #DC2626; }

/* Timeline Component */
.timeline {
    position: relative;
    padding-left: 28px;
    margin-bottom: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 3px solid var(--card-bg);
    box-shadow: 0 0 0 1px var(--border-color);
}

.timeline-item.active .timeline-dot {
    background-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.timeline-item.completed .timeline-dot {
    background-color: var(--success);
    box-shadow: 0 0 0 1px var(--success);
}

.timeline-content h5 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.reply-box {
    background-color: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.4;
}

.reply-box h6 {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

/* Admin Styles */
.admin-summary {
    display: grid;
    grid-template-cols: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 2px;
}

.admin-tabs {
    display: flex;
    background-color: #E2E8F0;
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tab {
    flex-grow: 1;
    flex-shrink: 0;
    text-align: center;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.admin-tab.active {
    background-color: #FFFFFF;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.list-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: border-color 0.3s;
}

.list-item:hover {
    border-color: var(--accent-color);
}

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

.list-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.list-meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #25D366;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.3s;
}

.wa-btn:hover {
    background-color: #128C7E;
}

/* Modal details */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.detail-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-color);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px 20px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
}

.detail-row {
    margin-bottom: 14px;
}

.detail-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.detail-value {
    font-size: 13px;
    color: var(--text-primary);
    margin-top: 2px;
    font-weight: 500;
}

.logout-link {
    display: block;
    text-align: center;
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 20px;
}

.logout-link:hover {
    text-decoration: underline;
}

/* ==========================================
   DESKTOP RESPONSIVE LAYOUT (Screens >= 768px)
   ========================================== */
@media (min-width: 768px) {
    body {
        background-color: var(--bg-color);
        align-items: flex-start;
        display: block;
        min-height: auto;
    }
    
    .app-container {
        max-width: 100%;
        margin: 0;
        height: auto;
        min-height: 100vh;
        box-shadow: none;
        overflow: visible;
        border: none;
        border-radius: 0;
        width: 100%;
    }
    
    .app-header {
        padding: 60px 8% 80px 8%;
        border-bottom-left-radius: var(--radius-lg);
        border-bottom-right-radius: var(--radius-lg);
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: visible;
    }
    
    .brand-section {
        margin-bottom: 30px;
    }
    
    .brand-text h1 {
        font-size: 26px;
    }
    
    .brand-text p {
        font-size: 12px;
    }
    
    .welcome-section {
        text-align: left;
        max-width: 900px;
    }
    
    .welcome-section h2 {
        font-size: 38px;
        line-height: 1.2;
        margin-bottom: 16px;
        font-weight: 800;
    }
    
    .welcome-section p {
        font-size: 16px;
        opacity: 0.95;
        line-height: 1.6;
    }
    
    .content-body {
        overflow-y: visible;
        padding: 40px 8% 140px 8%; /* Balanced 8% margins, space at bottom for nav */
    }
    
    /* Layout for Cards Grid */
    .action-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        margin-bottom: 50px;
    }
    
    .action-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 24px;
        gap: 20px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        background: #FFFFFF;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
    }
    
    .action-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 10px 10px -5px rgba(99, 102, 241, 0.04);
        border-color: var(--accent-color);
    }
    
    .action-icon {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 56px;
        height: 56px;
        font-size: 24px;
        border-radius: 14px;
    }
    
    .action-card h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }
    
    .action-card p {
        display: block !important;
        font-size: 12px;
        color: var(--text-secondary);
        line-height: 1.4;
    }
    
    /* Facility Grid layout */
    .facility-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .facility-card {
        width: 100% !important;
        flex-shrink: 0;
        margin-bottom: 0;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .facility-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    }
    
    .facility-img {
        height: 180px;
        font-size: 32px;
    }
    
    .facility-info {
        padding: 20px;
    }
    
    .facility-info h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .facility-info p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    /* Location Card 2-Column layout */
    .location-card {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 40px;
        align-items: start;
        padding: 40px;
        margin-bottom: 50px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        background: #FFFFFF;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }
    
    .map-placeholder {
        height: 350px;
        margin-bottom: 0;
    }
    
    .location-info {
        padding-top: 15px;
    }
    
    .location-info h4 {
        font-size: 15px;
    }
    
    .location-info p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    /* FAQ Section */
    .faq-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 50px;
    }
    
    .faq-item {
        margin-bottom: 0;
        border: 1px solid rgba(226, 232, 240, 0.8);
        transition: transform 0.3s;
    }
    
    .faq-item:hover {
        transform: translateY(-2px);
        border-color: var(--accent-color);
    }
    
    /* Form & Cards Constrained Width */
    .form-card, .success-container {
        max-width: 700px;
        margin: 40px auto 80px auto;
        padding: 45px;
        border-radius: var(--radius-lg);
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    }
    
    /* Simulation Page Grid */
    .simulation-layout {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 40px;
        align-items: start;
    }
    
    .simulation-container {
        margin-bottom: 0;
        padding: 30px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        background: #FFFFFF;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }
    
    .result-card {
        position: sticky;
        top: 40px;
        margin-bottom: 0;
        padding: 35px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    }
    
    /* Floating Navigation Pill Dock (Dark Premium Theme) */
    .bottom-nav {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 700px;
        max-width: 90%;
        height: 72px;
        border-radius: 36px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
        background-color: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0 20px;
    }
    
    .nav-item {
        color: #94a3b8;
        font-size: 11px;
        gap: 6px;
        position: relative;
    }
    
    .nav-item i {
        font-size: 20px;
    }
    
    .nav-item:hover {
        color: #FFFFFF;
    }
    
    .nav-item.active {
        color: #6366f1; /* Glowing indigo active state */
    }
    
    .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: -8px;
        width: 6px;
        height: 6px;
        background-color: #6366f1;
        border-radius: 50%;
        box-shadow: 0 0 8px #6366f1;
    }
    
    .nav-item.active i {
        transform: translateY(-2px);
    }
}

/* ==========================================================================
   ADMIN SIDEBAR LAYOUT
   ========================================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f1f5f9;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1e293b;
    position: relative;
    width: 100%;
}

.admin-sidebar {
    width: 260px;
    background-color: #0f172a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sidebar-brand-text h2 {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    color: #ffffff;
}

.sidebar-brand-text p {
    font-size: 10px;
    margin: 0;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.sidebar-nav-item.active {
    background-color: var(--accent-color);
    color: #ffffff;
}

.nav-badge {
    margin-left: auto;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 700;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #0b0f19;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
}

.user-info h4 {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.user-info p {
    font-size: 10px;
    margin: 2px 0 0 0;
    color: #64748b;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.sidebar-logout-btn:hover {
    background-color: #ef4444;
    color: #ffffff;
}

.admin-main {
    flex-grow: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - 260px);
    transition: all 0.3s ease;
}

.admin-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 90;
}

.admin-page-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.sidebar-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: #0f172a;
    font-size: 20px;
    cursor: pointer;
}

.header-stats {
    display: flex;
    gap: 16px;
}

.header-stat-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-lbl {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.stat-val {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

.admin-content {
    padding: 24px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Responsive sidebar */
@media (max-width: 992px) {
    .admin-sidebar {
        left: -260px;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    .admin-main {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-toggle-btn {
        display: block;
    }
    
    .sidebar-close-btn {
        display: block;
    }
}

/* Print Styles for Reports */
@media print {
    .admin-sidebar, 
    .admin-header, 
    .sidebar-toggle-btn, 
    .admin-tabs, 
    .crud-form, 
    .btn-mini, 
    .btn-submit, 
    .btn-outline,
    .logout-link,
    .bottom-nav {
        display: none !important;
    }
    
    body, .admin-layout, .admin-main, .admin-content, .app-container {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
    }
    
    .crud-table-container {
        border: 1px solid #000000 !important;
        box-shadow: none !important;
    }
    
    .crud-table th, .crud-table td {
        border: 1px solid #cbd5e1 !important;
        padding: 8px !important;
        color: #000000 !important;
    }
    
    .stat-card {
        border: 1px solid #cbd5e1 !important;
    }
}

/* Mahasiswa Detail Modal & Styling */
.mhs-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.mhs-modal-backdrop.active {
    display: flex;
}

.mhs-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: mhsModalFade 0.25s ease-out;
}

@keyframes mhsModalFade {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.mhs-modal-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.mhs-modal-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.mhs-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.mhs-modal-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.mhs-modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    gap: 24px;
}

@media (max-width: 768px) {
    .mhs-modal-body {
        flex-direction: column-reverse;
    }
}

.mhs-detail-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 140px 1fr;
    row-gap: 8px;
    column-gap: 12px;
    font-size: 12px;
    align-items: center;
}

.mhs-detail-label {
    color: #475569;
    font-weight: 600;
}

.mhs-detail-value {
    color: #0f172a;
    font-weight: 500;
    word-break: break-word;
}

.mhs-photo-side {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mhs-photo-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #ef4444;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mhs-photo-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
    background-color: #e2e8f0;
}

.mhs-photo-name {
    font-size: 11px;
    font-weight: 800;
    color: #3b82f6;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
}

.mhs-modal-footer {
    padding: 12px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    background: #f8fafc;
}

.btn-mhs-close {
    background: #cbd5e1;
    color: #334155;
    border: none;
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.btn-mhs-close:hover {
    background: #94a3b8;
    color: #ffffff;
}

/* Badges */
.mhs-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.mhs-badge-green {
    background: #d1fae5;
    color: #059669;
}
.mhs-badge-blue {
    background: #e0f2fe;
    color: #0284c7;
}
.mhs-badge-red {
    background: #fee2e2;
    color: #dc2626;
}

