/* ============================================================================
   CLOUD COST ANALYZER - REFINED ENTERPRISE EDITION
   Signature Blue Gradient Theme with Expanded Proportions & Precision Polish
   ============================================================================ */

:root {
    /* Primary Signature Blue Palette */
    --primary: #0066cc;
    --primary-hover: #0052a3;
    --primary-dark: #004080;
    --primary-light: #eff6fc;
    --primary-glow: rgba(0, 102, 204, 0.2);

    /* Success */
    --success: #0ea972;
    --success-light: #e8f7f2;
    --success-dark: #0a7d54;
    --success-border: #a7f3d0;

    /* Danger */
    --danger: #e5484d;
    --danger-light: #feecee;
    --danger-dark: #cd2b31;
    --danger-border: #fecdd3;

    /* Warning */
    --warning: #f59e0b;
    --warning-light: #fef3e2;
    --warning-dark: #d97706;
    --warning-border: #fde68a;

    /* Slate Neutral Palette */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Neutral Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-hover: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    --border-focus: #0066cc;

    /* Elevated Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 18px -3px rgba(15, 23, 42, 0.09), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, #f8f9fb 0%, #edf2f9 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0 0 3rem 0;
}

/* Expanded & Spacious Container */
.container {
    max-width: 1560px;
    width: 95%;
    margin: 0 auto;
}

/* ============================================================================
   SIGNATURE BLUE GRADIENT HEADER
   ============================================================================ */

header {
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: #ffffff;
    padding: 2.25rem 2.5rem 3.5rem 2.5rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-logo-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.header-titles h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.025em;
    color: #ffffff;
    line-height: 1.2;
}

.subtitle {
    font-size: 0.95rem;
    opacity: 0.92;
    font-weight: 400;
    margin-top: 0.25rem;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.9);
}

.header-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.live-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* Selection & Focus */
::selection {
    background: #e6f2ff;
    color: #004c99;
}

*:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}
