/* ==========================================================================
   Barbershop Mobile App Styling - Matching User Reference Screenshot
   Theme: Matte Deep Black (#131418), Dark Squircle Cards (#21232a), 
          and Warm Gold Highlights (#dfb15b)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
    --bg-main: #131418;
    --card-surface: #202229;
    --card-border: #2c2f38;
    --color-gold: #dfb15b;
    --color-gold-hover: #ecc06d;
    --text-primary: #f8fafc;
    --text-muted: #8e95a5;
}

* {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    box-sizing: border-box;
}

body {
    /* Atmospheric barbershop lounge background for desktop view */
    background: linear-gradient(rgba(8, 9, 12, 0.82), rgba(8, 9, 12, 0.90)), 
                url('https://images.unsplash.com/photo-1585747860715-2ba37e788b70?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

/* Hide scrollbars */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   iPhone Device Shell Mockup (Desktop View)
   ========================================================================== */
.iphone-device-shell {
    position: relative;
    width: 100%;
    max-width: 412px;
    height: 860px;
    max-height: 94vh;
    margin: 2vh auto;
    background-color: var(--bg-main);
    border-radius: 50px;
    border: 11px solid #2b2e38;
    box-shadow: 
        0 0 0 2px #444957,
        0 25px 60px -10px rgba(0, 0, 0, 0.95),
        0 0 45px rgba(223, 177, 91, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Dynamic Notch / Island */
.iphone-top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 48px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-main);
}

.dynamic-island-cutout {
    width: 100px;
    height: 24px;
    background: #000000;
    border-radius: 9999px;
    position: relative;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-lens-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #0d131f;
    border: 1px solid #1c2638;
}

/* On real mobile screens, take 100% of viewport without phone border */
@media (max-width: 639px) {
    body {
        background: var(--bg-main) !important;
    }
    .iphone-device-shell {
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    #desktopControls {
        display: none !important;
    }
}

/* ==========================================================================
   Hero Card & Underline
   ========================================================================== */
.hero-card {
    background: #1e2027;
    border-radius: 26px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-gold-underline {
    width: 58px;
    height: 4px;
    background-color: var(--color-gold);
    border-radius: 9999px;
    margin-top: 6px;
}

/* ==========================================================================
   6-Grid Squircle Menu Tiles
   ========================================================================== */
.grid-squircle-tile {
    background-color: var(--card-surface);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 18px 8px 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.grid-squircle-tile:hover {
    border-color: rgba(223, 177, 91, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(223, 177, 91, 0.1);
}

.grid-squircle-tile:active {
    transform: scale(0.94);
}

.grid-icon-gold {
    color: var(--color-gold);
    width: 26px;
    height: 26px;
}

/* ==========================================================================
   Jadwal Hari Ini Card & Status Badges
   ========================================================================== */
.schedule-container-card {
    background-color: #1a1c22;
    border: 1px solid #282b35;
    border-radius: 24px;
    overflow: hidden;
}

.schedule-row {
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #262933;
    transition: background-color 0.15s ease;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.badge-status {
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-selesai {
    background: #18864b;
    color: #ffffff;
}

.badge-proses {
    background: #3678df;
    color: #ffffff;
}

.badge-menunggu {
    background: #4a5468;
    color: #cbd5e1;
}

/* ==========================================================================
   Bottom Navigation Bar & Golden Squircle Active State
   ========================================================================== */
.bottom-nav-bar {
    background: #15171d;
    border-top: 1px solid #252833;
    padding: 8px 12px 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-tab-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    border-radius: 18px;
    transition: all 0.2s ease;
    color: #8b92a2;
    cursor: pointer;
    font-size: 10px;
    font-weight: 500;
    gap: 4px;
}

/* Active tab style matching screenshot: Golden squircle rounded pill */
.nav-tab-button.is-active {
    background-color: var(--color-gold);
    color: #121316 !important;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(223, 177, 91, 0.35);
}

.nav-tab-button.is-active svg {
    color: #121316 !important;
}

/* iPhone Home Bar Indicator */
.iphone-home-indicator {
    width: 130px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 9999px;
    margin: 6px auto 4px auto;
}

/* Smooth modal transitions */
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
