/* ============================================================
   BandaAcehPrint - style.css (Light Theme)
   Putih dominan + Biru primary + CMYK accents
   ============================================================ */

/* 1. RESET */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #FFFFFF;
    color: #0F172A;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. FORM ELEMENTS */
input, select, textarea, button {
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
input, select, textarea { min-width: 0; }

/* 3. HEADER LIGHT */
.header-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* 4. CARD LIGHT */
.card-light {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-light:hover {
    border-color: rgba(30, 64, 175, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(30, 64, 175, 0.15);
}

/* 5. TAB SWITCHER */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar { display: none; }

.tab-btn {
    min-height: 48px;
    line-height: 1.2;
    transition: all 0.2s ease;
}

@media (min-width: 641px) {
    .tab-btn {
        min-height: 42px;
        flex-shrink: 0;
    }
}

/* 6. SCROLLBAR LIGHT */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1E40AF; }

/* 7. ANIMASI */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.tab-content { animation: fade-in-up 0.3s ease-out; }

/* 8. FOCUS */
*:focus-visible {
    outline: 2px solid #1E40AF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 9. UTILITY */
.min-w-0 { min-width: 0; }

/* 10. RESPONSIVE MOBILE */
@media (max-width: 640px) {
    .grid > * { min-width: 0; }
    #total-price-display {
        font-size: 1.5rem;
        word-break: break-word;
    }
    .tab-btn {
        font-size: 0.7rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .tab-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .tab-btn {
        font-size: 0.65rem;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
    .tab-btn span {
        font-size: 0.6rem;
    }
}

/* 11. MOBILE UTILS */
@media (max-width: 768px) {
    body { padding-bottom: env(safe-area-inset-bottom, 0); }
    section[id] { scroll-margin-top: 90px; }
    input, select, textarea { font-size: 16px !important; }
}

/* 12. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
