/* 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;
    overflow-x: hidden;
}

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

@media (min-width: 481px) {
    .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) {
    .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;
}

.admin-tab {
    flex-grow: 1;
    text-align: center;
    padding: 10px;
    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;
}
