/* ==========================================================================
   CS SERVIÇOS PWA — App Styles
   Tema: Dark Navy + Glassmorphism + Accent Amarelo/Azul
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    /* Azuis institucionais */
    --cs-blue-dark: #1a3a5c;
    --cs-blue-mid: #2d5a87;
    --cs-blue-light: #4a90c2;

    /* Amarelos accent */
    --cs-yellow: #f7e000;
    --cs-yellow-dark: #d4bf00;
    --sun-gold: #f7e000;
    --sun-orange: #d4bf00;
    /* Accents Adicionais */
    --cs-orange: #f97316;
    /* Laranja Queimado */
    --cs-cyan: #06b6d4;
    /* Ciano/Turquesa */
    --cs-gold: #d4af37;
    /* Dourado Suave */

    /* Backgrounds navy */
    --deep-navy-dark: #0a1929;
    /* Navy mais profundo */
    --deep-navy: #0d1f33;
    /* Navy Base */
    --navy-mid: #152d45;
    --navy-light: #1e3d5a;

    /* Textos */
    --text-primary: #f0f4f8;
    /* Gelo/Off-white */
    --text-secondary: #a0b1c5;
    /* Slate Blue */

    /* Status */
    --success-green: #10b981;
    /* Verde Esmeralda */
    --error-red: #ef4444;
    /* Vermelho Coral */
    --error-red-dark: #dc2626;
    --warning-amber: #f59e0b;
    --vip-indigo: #6366f1;
    /* Roxo Indigo */

    /* Glassmorphism */
    --glass-bg: rgba(30, 61, 90, 0.4);
    --glass-border: rgba(247, 224, 0, 0.2);

    /* Spacing (8px grid) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Typography */
    --font: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Safe areas (PWA) */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* Bottom nav */
    --nav-height: 64px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--deep-navy-dark);
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

body.has-nav {
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
}

a {
    color: var(--cs-blue-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--cs-yellow);
}

img {
    max-width: 100%;
    height: auto;
}

/* Prevent iOS zoom on inputs */
input,
select,
textarea {
    font-size: 1rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--deep-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cs-blue-mid);
}

/* Selection */
::selection {
    background: rgba(247, 224, 0, 0.3);
    color: var(--text-primary);
}

/* ---------- Background Grid ---------- */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(74, 144, 194, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 144, 194, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ---------- Container ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
    color: yellow;
}