/* 
 * Shear Perfection Tanning Salon - Core Design System
 * Focus: Mobile-First, Dark Mode, Vibrant Accents, Glassmorphism
 */

:root {
    --bg-base: #0a0e17;
    --bg-surface: #141b2d;
    --bg-surface-raised: rgba(30, 41, 59, 0.7);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;

    /* Vibrant Accent Gradients */
    --accent-green-start: #10b981;
    --accent-green-end: #047857;
    --accent-blue-start: #3b82f6;
    --accent-blue-end: #1d4ed8;

    /* UI Dimensions */
    --bottom-nav-height: 70px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Remove blue flash on mobile taps */
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    /* Prevent bouncy scrolling on iOS to feel more like an app */
    overscroll-behavior-y: none;
}

/* App Shell Container */
#app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for Safari */
    width: 100vw;
}

#main-content {
    flex: 1;
    overflow-y: auto;
    padding: calc(20px + var(--safe-area-top)) 20px calc(var(--bottom-nav-height) + 20px);
    scroll-behavior: smooth;
}

/* Base Bottom Nav styles */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    background: var(--bg-surface-raised);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: var(--safe-area-bottom);
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 60px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--accent-green-start);
}

.nav-item.active svg {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Typography components */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-green-start), var(--accent-green-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1.screen-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Button Base */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-green-start), var(--accent-green-end));
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
    font-family: 'Outfit', sans-serif;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Input Fields */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-green-start);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Cards / Glass containers */
.glass-card {
    background: var(--bg-surface-raised);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Full Screen Modal Ovelay (For Login/Auth initially) */
#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-base);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}