/* 
   IPTV Panel - Premium Black SaaS Theme 2026
   Design: Enterprise IPTV Premium Dark
   Inspiração: QPanel, OPainel, KOffice, Vercel, Linear, Stripe
   Typography: Inter (UI) + JetBrains Mono (data)
   
   WARNING: THIS FILE ONLY CONTAINS CSS STYLES. NO BACKEND LOGIC.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* === Core Palette - Deep Black Premium === */
    --bg-primary: #07090d;
    --bg-secondary: #0b0f15;
    --bg-surface: #10141c;
    --bg-surface-hover: #151b25;
    --bg-elevated: #1a2030;
    --bg-overlay: rgba(7, 9, 13, 0.92);
    
    /* === Accent - Electric Blue (Premium) === */
    --accent: #4f8cff;
    --accent-hover: #6ba0ff;
    --accent-light: #7db3ff;
    --accent-dim: #2d5aa0;
    --accent-glow: rgba(79, 140, 255, 0.15);
    --accent-subtle: rgba(79, 140, 255, 0.06);
    --accent-gradient: linear-gradient(135deg, #4f8cff, #7c5cff);
    
    /* === Secondary - Teal/Cyan === */
    --teal: #2dd4bf;
    --teal-light: #5eead4;
    --teal-dim: #0f766e;
    --teal-glow: rgba(45, 212, 191, 0.12);
    
    /* === Status === */
    --success: #2dd4bf;
    --success-bg: rgba(45, 212, 191, 0.08);
    --success-border: rgba(45, 212, 191, 0.2);
    --danger: #ff5c7c;
    --danger-bg: rgba(255, 92, 124, 0.08);
    --danger-border: rgba(255, 92, 124, 0.2);
    --warning: #ffb84d;
    --warning-bg: rgba(255, 184, 77, 0.08);
    --warning-border: rgba(255, 184, 77, 0.2);
    --info: #4f8cff;
    --info-bg: rgba(79, 140, 255, 0.08);
    --info-border: rgba(79, 140, 255, 0.2);
    
    /* === Text Hierarchy === */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #334155;
    
    /* === Borders === */
    --border: #1f2733;
    --border-hover: rgba(79, 140, 255, 0.25);
    --border-active: rgba(79, 140, 255, 0.5);
    --border-subtle: rgba(255, 255, 255, 0.04);
    
    /* === Shadows === */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-accent: 0 4px 24px rgba(79, 140, 255, 0.2);
    --shadow-teal: 0 4px 24px rgba(45, 212, 191, 0.15);
    --shadow-glow: 0 0 40px rgba(79, 140, 255, 0.1);
    
    /* === Layout === */
    --sidebar-w: 260px;
    --sidebar-collapsed-w: 70px;
    --header-h: 64px;
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* === Spacing === */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* === Motion === */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 600ms;
}

/* ============================================
   GLOBAL RESETS & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body.dark-mode,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary) !important;
    background: var(--bg-primary) !important;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

/* ============================================
   TYPOGRAPHY HIERARCHY
   ============================================ */
h1, h2, h3, h4, h5, h6,
.card-title,
.content-header h1,
.modal-title,
.info-box-text {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary) !important;
}

h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.85rem; }

.info-box-number,
.badge,
table td:first-child,
.nav-link .badge,
.nordic-stat-value {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-weight: 700;
}

/* ============================================
   SCROLLBAR - Ultra Thin Premium
   ============================================ */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    transition: background var(--duration-normal);
}

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

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.2) transparent;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: rgba(79, 140, 255, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(79, 140, 255, 0.3);
    color: #fff;
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-in-out);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */
.dark-mode .text-dark,
.text-dark {
    color: var(--text-primary) !important;
}

.dark-mode .text-muted,
.text-muted {
    color: var(--text-muted) !important;
}

.dark-mode .text-primary,
.text-primary {
    color: var(--accent) !important;
}

.dark-mode .text-success,
.text-success {
    color: var(--success) !important;
}

.dark-mode .text-danger,
.text-danger {
    color: var(--danger) !important;
}

.dark-mode .text-warning,
.text-warning {
    color: var(--warning) !important;
}

.dark-mode .text-info,
.text-info {
    color: var(--info) !important;
}

.text-white {
    color: var(--text-primary) !important;
}

/* ============================================
   BADGE SYSTEM
   ============================================ */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    border: none;
}

.badge-primary,
.badge-info {
    background: var(--accent-glow) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(79, 140, 255, 0.2);
}

.badge-success {
    background: var(--success-bg) !important;
    color: var(--success) !important;
    border: 1px solid var(--success-border);
}

.badge-danger {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
    border: 1px solid var(--danger-border);
}

.badge-warning {
    background: var(--warning-bg) !important;
    color: var(--warning) !important;
    border: 1px solid var(--warning-border);
}

.badge-secondary {
    background: rgba(100, 116, 139, 0.1) !important;
    color: var(--text-secondary) !important;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* ============================================
   ALERT OVERRIDES
   ============================================ */
.alert {
    background: var(--bg-surface) !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    padding: 16px 20px !important;
    font-size: 13px;
}

.alert-warning {
    border-left: 4px solid var(--warning) !important;
    background: var(--warning-bg) !important;
}

.alert-info {
    border-left: 4px solid var(--info) !important;
    background: var(--info-bg) !important;
}

.alert-danger {
    border-left: 4px solid var(--danger) !important;
    background: var(--danger-bg) !important;
}

.alert-success {
    border-left: 4px solid var(--success) !important;
    background: var(--success-bg) !important;
}

.alert .close {
    color: var(--text-muted) !important;
    opacity: 0.6;
    text-shadow: none !important;
}

.alert h5 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
}

/* ============================================
   BACKGROUND OVERRIDES
   ============================================ */
.bg-info,
.bg-primary {
    background: var(--accent-glow) !important;
    color: var(--accent) !important;
}

.bg-success {
    background: var(--success-bg) !important;
    color: var(--success) !important;
}

.bg-warning {
    background: var(--warning-bg) !important;
    color: var(--warning) !important;
}

.bg-danger {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
}

.bg-secondary {
    background: rgba(100, 116, 139, 0.1) !important;
    color: var(--text-secondary) !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.glass {
    background: rgba(16, 20, 28, 0.8) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.glow-accent {
    box-shadow: var(--shadow-accent);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-glow {
    border: 1px solid rgba(79, 140, 255, 0.3) !important;
    box-shadow: 0 0 20px rgba(79, 140, 255, 0.05);
}
