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

:root {
    /* Paleta Neutra Ultra-Refinada (Estilo Apple/Linear) */
    --p-h: 242; --p-s: 78%; --p-l: 60%; /* Indigo Principal */
    --primary: hsl(var(--p-h), var(--p-s), var(--p-l));
    --primary-light: hsl(var(--p-h), var(--p-s), 75%);
    --primary-dark: hsl(var(--p-h), var(--p-s), 45%);
    --primary-50: hsl(var(--p-h), var(--p-s), 97%);
    
    /* Neutros (Cura Japonesa / Apple-like) */
    --white: #FFFFFF;
    --gray-10: #FDFDFE;
    --gray-50: #F9FAFB;
    --gray-100: #F2F4F7;
    --gray-200: #EAECF0;
    --gray-300: #D0D5DD;
    --gray-400: #98A2B3;
    --gray-500: #667085;
    --gray-600: #475467;
    --gray-700: #344054;
    --gray-800: #1D2939;
    --gray-900: #101828;

    /* Status (Harmonizados e Vibrantes) */
    --success: #10B981;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --danger: #EF4444;
    --danger-light: #FEF2F2;

    /* Tipografia de Alta Precisão */
    --font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2.25rem;

    /* Sombras Elevadas (Apple Style Layers) */
    --shadow-xs: 0px 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-sm: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
    --shadow-xl: 0px 20px 24px -4px rgba(16, 24, 40, 0.08), 0px 8px 8px -4px rgba(16, 24, 40, 0.03);
    
    /* Efeito de Vidro e Profundidade */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(16px);
    --border-soft: 1px solid rgba(0, 0, 0, 0.04);

    /* Layout & Geometria */
    --sidebar-width: 280px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 28px;
    --radius-full: 100px;
    
    --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Tokens de Espaçamento (The missing ones) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

#app {
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Cloud Status Indicator */
.cloud-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.cloud-status.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.cloud-status.offline {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.cloud-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.cloud-status.online .dot {
    box-shadow: 0 0 8px #10b981;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in {
    animation: fadeIn var(--transition-slow) ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease forwards;
}

.animate-slide-in {
    animation: slideInRight var(--transition-slow) ease forwards;
}

.animate-scale-in {
    animation: scaleIn var(--transition-base) ease forwards;
}

/* CSAT Buttons Premium Style */
.csat-btn {
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.csat-btn:hover {
    transform: translateY(-4px) scale(1.1) !important;
    box-shadow: var(--shadow-lg) !important;
    z-index: 10;
    border-color: var(--primary) !important;
}
