/* ROOT VARIABLES - NUDE & ORANGE COLOR PALETTE */
:root {
    --bg-main: #FDF8F5;
    --nude-light: #F7EBE1;
    --nude-medium: #E2C7B7;
    --orange-primary: #FF6B35;
    --orange-hover: #E85A24;
    --orange-soft: #FFF0EB;
    --text-dark: #2B211B;
    --text-muted: #7A6B63;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(232, 90, 36, 0.12);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

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

body {
    background-color: #ECE5DF;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 480px; /* Mobile First Ergonomic Layout */
    background-color: var(--bg-main);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
    padding-bottom: 90px;
    display: flex;
    flex-direction: column;
}

/* TOP BAR */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(226, 199, 183, 0.3);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 22px;
    color: var(--orange-primary);
    background: var(--orange-soft);
    padding: 8px;
    border-radius: 50%;
}

.brand h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
}

.brand span {
    font-size: 11px;
    color: var(--text-muted);
}

.notif-wrapper {
    position: relative;
}

.notif-btn {
    background: var(--nude-light);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--orange-primary);
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.notif-btn:hover {
    background: var(--orange-soft);
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--orange-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-main);
}

/* NOTIFICATION DROPDOWN */
.notif-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 200;
    overflow: hidden;
}

.notif-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

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

.notif-header {
    padding: 12px 16px;
    background: var(--orange-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--nude-medium);
}

.notif-header h4 {
    font-size: 13px;
    color: var(--orange-primary);
}

.close-notif {
    cursor: pointer;
    font-size: 18px;
    color: var(--text-muted);
}

.notif-body {
    max-height: 250px;
    overflow-y: auto;
}

.notif-item {
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #f1f1f1;
}

.notif-item-icon {
    color: var(--orange-primary);
    margin-top: 3px;
}

.notif-item-text strong {
    font-size: 13px;
    display: block;
    color: var(--text-dark);
}

.notif-item-text p {
    font-size: 11px;
    color: var(--text-muted);
}

.badge-queue {
    display: inline-block;
    background: var(--nude-light);
    color: var(--orange-primary);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

.notif-empty {
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* MAIN CONTENT & PAGES */
.main-content {
    padding: 16px 20px;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* SECTION 1: HERO PROMO BAR */
.hero-bar {
    background: linear-gradient(135deg, #FF6B35 0%, #E85A24 100%);
    border-radius: var(--radius-xl);
    padding: 22px 20px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-bar h1 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.hero-bar p {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.4;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--orange-primary);
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    transition: transform 0.2s;
}

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

/* SECTION TITLES */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title.mt-4 {
    margin-top: 28px;
}

.section-title h3 {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.section-title h3 i {
    color: var(--orange-primary);
}

.section-title span {
    font-size: 11px;
    color: var(--text-muted);
}

/* SECTION 2: SLIDER 4:3 RATIO */
.hero-slider {
    width: 100%;
    border-radius: var(--radius-lg);
    padding-bottom: 30px !important;
}

.hero-slider .swiper-slide {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.card-slide-form {
    background: #fff;
    border: 1px solid var(--nude-medium);
    padding: 16px;
    overflow-y: auto !important;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.form-header i {
    font-size: 20px;
    color: var(--orange-primary);
}

.form-header h3 {
    font-size: 14px;
    font-weight: 700;
}

.form-header p {
    font-size: 10px;
    color: var(--text-muted);
}

.app-form .form-group {
    margin-bottom: 10px;
}

.app-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.app-form input, .app-form select, .app-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--nude-medium);
    border-radius: var(--radius-md);
    background: var(--bg-main);
    font-size: 11px;
    outline: none;
}

.app-form input:focus, .app-form select:focus, .app-form textarea:focus {
    border-color: var(--orange-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-submit {
    width: 100%;
    background: var(--orange-primary);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.doc-alert {
    display: block;
    font-size: 10px;
    color: var(--orange-hover);
    margin-top: 2px;
    font-weight: 600;
}

.card-slide-img {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    color: #fff;
}

.slide-caption .tag {
    background: var(--orange-primary);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.slide-caption h3 {
    font-size: 16px;
    margin: 4px 0 2px 0;
}

.slide-caption p {
    font-size: 11px;
    opacity: 0.85;
}

.swiper-pagination-bullet-active {
    background: var(--orange-primary) !important;
}

/* SECTION 3: CAROUSEL 6 CARDS */
.clinic-carousel {
    padding-bottom: 10px !important;
}

.treatment-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid rgba(226, 199, 183, 0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    text-align: center;
}

.treatment-card .icon-box {
    width: 40px;
    height: 40px;
    background: var(--orange-soft);
    color: var(--orange-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    font-size: 18px;
}

.treatment-card h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.treatment-card .price {
    font-size: 12px;
    color: var(--orange-primary);
    font-weight: 800;
    margin-bottom: 4px;
}

.treatment-card .desc {
    font-size: 9px;
    color: var(--text-muted);
    display: block;
}

/* PAGE HEADER */
.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.page-header h2 i {
    color: var(--orange-primary);
}

.page-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ANTRIAN PAGE */
.doctor-schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.doc-card {
    background: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--nude-medium);
}

.doc-avatar {
    width: 44px;
    height: 44px;
    background: var(--nude-light);
    color: var(--orange-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.doc-info h4 {
    font-size: 13px;
    font-weight: 700;
}

.doc-info p {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.queue-list-container h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

.queue-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.queue-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border-left: 4px solid var(--orange-primary);
}

.queue-num {
    text-align: center;
    background: var(--orange-soft);
    padding: 8px 12px;
    border-radius: 8px;
}

.queue-num span {
    display: block;
    font-size: 9px;
    color: var(--text-muted);

}

.queue-num strong {
    font-size: 14px;
    color: var(--orange-primary);
}

.queue-details {
    flex: 1;
    padding: 0 12px;
}

.queue-details h4 {
    font-size: 13px;
}

.queue-details p {
    font-size: 11px;
    color: var(--text-muted);
}

.queue-details .note {
    font-size: 10px;
    color: var(--orange-hover);
    font-style: italic;
}

.status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.status-diproses {
    background: #FFF3E0;
    color: #E65100;
}

/* HISTORI PAGE */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-card {
    background: #fff;
    padding: 14px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid rgba(0,0,0,0.05);
}

.history-icon {
    color: #4CAF50;
    font-size: 18px;
    margin-top: 2px;
}

.history-content {
    flex: 1;
}

.history-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.history-top h4 {
    font-size: 13px;
}

.queue-tag {
    background: var(--nude-light);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

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

.history-note {
    display: block;
    font-size: 10px;
    background: var(--bg-main);
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 6px;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 36px;
    margin-bottom: 8px;
    color: var(--nude-medium);
}

/* BOTTOM HANGING CAPSULE BAR (GLASSMORPHISM BLUR) */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 440px;
    padding: 0 16px;
    z-index: 999;
}

.capsule-bar {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 32px rgba(232, 90, 36, 0.15);
}

.nav-item {
    color: var(--text-muted);
    font-size: 20px;
    text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.25s ease;
    width: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 50%;
}

.nav-item.active {
    color: var(--orange-primary);
    background: var(--orange-soft);
    transform: translateY(-2px);
}

.nav-item.wa-item {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.nav-item.wa-item:active {
    transform: scale(0.92);
}

.nav-dot {
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--orange-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-item.active .nav-dot {
    opacity: 1;
}

/* RESPONSIVE & DESKTOP ADJUSTMENTS */
@media (min-width: 768px) {
    .clinic-carousel .swiper-wrapper {
        display: flex;
    }
}
