@charset "UTF-8";
/* ==========================================================================
 * EVPT.PT - DASHBOARD TÁTICO E ANALYTICS (ENTERPRISE EDITION)
 * Desenvolvedor: Gabriel
 * Tema: Dark Cybernetic / High Performance
 * Versão: 1.0.0
 * ==========================================================================
 * ÍNDICE:
 * 01. Variáveis Globais (Root)
 * 02. Reset e Normalização
 * 03. Scrollbars Customizadas
 * 04. Utilitários (Tipografia, Cores, Margens)
 * 05. Layout Principal (Grid/Flex)
 * 06. Sidebar (Menu Lateral)
 * 07. Promo Box (Envios Portugal)
 * 08. Topbar (Cabeçalho)
 * 09. Metric Cards (Visão Geral)
 * 10. Widget Boxes (Containers de Dados)
 * 11. Tabelas de Alta Performance (Cyber Table)
 * 12. Listas de Ranking
 * 13. Progress Bars (Sistemas e Devices)
 * 14. Listas de Referenciadores (Origem)
 * 15. Botões e Badges
 * 16. Formulários e Inputs (Preparação para encurtar.php)
 * 17. Animações e Keyframes
 * 18. Responsividade (Media Queries)
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * 01. VARIÁVEIS GLOBAIS (:root)
 * -------------------------------------------------------------------------- */
:root {
    /* Cores de Marca (Neon & Dark) */
    --brand-neon-green: #00ff66;
    --brand-neon-dim: rgba(0, 255, 102, 0.15);
    --brand-green-hover: #00e65c;
    --brand-dark-green: #004d1f;

    /* Status e Alertas */
    --color-success: #10b981;
    --color-success-dim: rgba(16, 185, 129, 0.15);
    --color-danger: #ef4444;
    --color-danger-dim: rgba(239, 68, 68, 0.15);
    --color-warning: #f59e0b;
    --color-warning-dim: rgba(245, 158, 11, 0.15);
    --color-info: #3b82f6;
    --color-info-dim: rgba(59, 130, 246, 0.15);

    /* Cores de Marcas (Referenciadores) */
    --brand-whatsapp: #25D366;
    --brand-instagram: #E1306C;
    --brand-facebook: #1877F2;
    --brand-email: #f97316;
    --brand-apple: #f5f5f7;
    --brand-windows: #00a4ef;
    --brand-android: #3DDC84;

    /* Backgrounds e Superfícies (Tema Escuro Fundo Infinito) */
    --bg-base: #020617;        /* Slate 950 - Fundo mais profundo */
    --bg-surface: #0f172a;     /* Slate 900 - Cards base */
    --bg-surface-high: #1e293b;/* Slate 800 - Cards elevados/Hovers */
    --bg-surface-border: rgba(255, 255, 255, 0.08);
    
    /* Efeitos de Vidro (Glassmorphism) */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(0, 255, 102, 0.3);
    --glass-blur: blur(20px);

    /* Cores de Texto */
    --text-primary: #f8fafc;   /* Branco Gelo */
    --text-secondary: #cbd5e1; /* Cinza Claro */
    --text-muted: #64748b;     /* Cinza Escuro */
    --text-inverse: #020617;   /* Escuro para botões claros */

    /* Tipografia */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Courier New', Courier, monospace;

    /* Sombras, Elevação e Brilhos */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --glow-primary: 0 0 15px rgba(0, 255, 102, 0.3), 0 0 30px rgba(0, 255, 102, 0.1);
    --glow-danger: 0 0 15px rgba(239, 68, 68, 0.3);

    /* Espaçamentos e Dimensões */
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
    --topbar-height: 80px;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-pill: 9999px;
    
    /* Transições */
    --transition-fast: 0.15s ease-in-out;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --------------------------------------------------------------------------
 * 02. RESET E NORMALIZAÇÃO
 * -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body.dashboard-body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 255, 102, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------------------
 * 03. SCROLLBARS CUSTOMIZADAS (CYBER THEME)
 * -------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-surface-high); border-radius: var(--border-radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-neon-green); }

/* --------------------------------------------------------------------------
 * 04. UTILITÁRIOS
 * -------------------------------------------------------------------------- */
.text-green { color: var(--brand-neon-green) !important; }
.text-red { color: var(--color-danger) !important; }
.text-orange { color: var(--color-warning) !important; }
.text-blue { color: var(--color-info) !important; }
.text-purple { color: #a855f7 !important; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--text-primary) !important; }

.font-bold { font-weight: 700 !important; }
.font-mono { font-family: var(--font-mono) !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

/* --------------------------------------------------------------------------
 * 05. LAYOUT PRINCIPAL (GRID)
 * -------------------------------------------------------------------------- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 0 30px 40px 30px;
    transition: margin var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: calc(100vw - var(--sidebar-width));
}

/* --------------------------------------------------------------------------
 * 06. SIDEBAR (MENU LATERAL)
 * -------------------------------------------------------------------------- */
.cyber-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-surface);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition-smooth);
    box-shadow: 5px 0 25px rgba(0,0,0,0.5);
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    border-bottom: 1px solid var(--glass-border);
}

.brand-logo {
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}

.mobile-close-btn {
    display: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}
.mobile-close-btn:hover { color: var(--color-danger); }

.sidebar-nav {
    flex: 1;
    padding: 25px 15px;
    overflow-y: auto;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    color: var(--text-secondary);
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: color var(--transition-fast);
}

/* Hover Effects do Menu */
.nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.nav-link:hover .nav-icon {
    color: var(--brand-neon-green);
}

/* Estado Ativo (Página Atual) */
.nav-link.active {
    background: var(--brand-neon-dim);
    color: var(--brand-neon-green);
    border: 1px solid rgba(0, 255, 102, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 255, 102, 0.05);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 4px;
    background: var(--brand-neon-green);
    border-radius: 0 4px 4px 0;
    box-shadow: var(--glow-primary);
}

.nav-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 15px 0;
}

/* --------------------------------------------------------------------------
 * 07. PROMO BOX (ENVIOS PORTUGAL)
 * -------------------------------------------------------------------------- */
.sidebar-ad-box {
    margin: 0 15px 20px 15px;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.8), rgba(36, 59, 85, 0.8));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 20px 15px;
    position: relative;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Animação sutil de fundo na promo */
.sidebar-ad-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 60%);
    animation: rotateOrbit 10s linear infinite;
    z-index: 0;
}

.ad-close-btn {
    position: absolute;
    top: 10px; right: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 2;
    background: rgba(0,0,0,0.5);
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.ad-close-btn:hover { color: var(--text-primary); background: var(--color-danger); }

.ad-content { position: relative; z-index: 1; text-align: center; }

.ad-icon-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--color-info);
    margin-bottom: 10px;
}

.ad-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.ad-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 15px;
}

.btn-ad-action {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background: var(--color-info);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-ad-action:hover { background: #2563eb; transform: translateY(-2px); }

/* Footer da Sidebar (Perfil) */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.2);
}

.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px; height: 40px;
    background: var(--bg-surface-high);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-neon-green);
    font-size: 1.2rem;
}

.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.user-role { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }

.btn-logout {
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 8px;
    border-radius: var(--border-radius-sm);
}
.btn-logout:hover {
    color: var(--color-danger);
    background: var(--color-danger-dim);
}

/* --------------------------------------------------------------------------
 * 08. TOPBAR (CABEÇALHO)
 * -------------------------------------------------------------------------- */
.topbar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 10px;
}

.topbar-left { display: flex; align-items: center; gap: 20px; }

.mobile-toggle {
    display: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
}

.greeting h1 {
    font-size: 1.8rem;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.greeting p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 8px 15px;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.pulse-dot.green {
    background: var(--brand-neon-green);
    box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7);
    animation: pulseGreen 2s infinite;
}

/* --------------------------------------------------------------------------
 * 09. METRIC CARDS (VISÃO GERAL)
 * -------------------------------------------------------------------------- */
.overview-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: transparent;
    transition: var(--transition-smooth);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255,255,255,0.15);
    background: var(--bg-surface-high);
}

.metric-card:hover::before {
    background: linear-gradient(90deg, var(--brand-neon-green), transparent);
}

.metric-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.metric-icon.blue { background: var(--color-info-dim); color: var(--color-info); }
.metric-icon.green { background: var(--color-success-dim); color: var(--color-success); }
.metric-icon.orange { background: var(--color-warning-dim); color: var(--color-warning); }
.metric-icon.red { background: var(--color-danger-dim); color: var(--color-danger); }

.metric-data h3 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.metric-data .big-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.trend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}
.trend.up { color: var(--color-success); }
.trend.down { color: var(--color-danger); }
.trend.neutral { color: var(--text-muted); }
.trend.bad { color: var(--color-danger); } /* Botão bloqueado é vermelho mas é bom */

/* --------------------------------------------------------------------------
 * 10. WIDGET BOXES (CONTAINERS)
 * -------------------------------------------------------------------------- */
.detailed-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

.widget-box {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--glass-border);
}

.widget-header h2 {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-actions { display: flex; gap: 10px; }

/* --------------------------------------------------------------------------
 * 11. TABELAS DE ALTA PERFORMANCE (CYBER TABLE)
 * -------------------------------------------------------------------------- */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.cyber-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.cyber-table th {
    text-align: left;
    padding: 12px 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--bg-surface-high);
}

.cyber-table td {
    padding: 16px 15px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: background var(--transition-fast);
}

.cyber-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.short-link {
    color: var(--brand-neon-green);
    font-weight: 600;
    font-family: var(--font-mono);
}
.short-link:hover { text-decoration: underline; }

.copy-icon {
    color: var(--text-muted);
    cursor: pointer;
    margin-left: 8px;
    transition: 0.3s;
}
.copy-icon:hover { color: var(--text-primary); }

/* --------------------------------------------------------------------------
 * 12. LISTAS DE RANKING
 * -------------------------------------------------------------------------- */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    transition: 0.3s;
}
.ranking-list li:hover {
    background: var(--bg-surface-high);
    border-color: var(--glass-border);
    transform: translateX(5px);
}

.rank-info { display: flex; align-items: center; gap: 15px; }

.rank-num {
    width: 28px; height: 28px;
    background: var(--bg-surface-high);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

/* Os top 3 ganham cores especiais */
.ranking-list li:nth-child(1) .rank-num { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border-color: #f59e0b; }
.ranking-list li:nth-child(2) .rank-num { background: rgba(156, 163, 175, 0.2); color: #9ca3af; border-color: #9ca3af; }
.ranking-list li:nth-child(3) .rank-num { background: rgba(180, 83, 9, 0.2); color: #b45309; border-color: #b45309; }

.rank-name { font-weight: 500; font-size: 0.95rem; }
.rank-value { font-family: var(--font-mono); font-weight: 700; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
 * 13. PROGRESS BARS (SISTEMAS E DEVICES)
 * -------------------------------------------------------------------------- */
.progress-bars-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.progress-item { width: 100%; }

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.progress-labels i { margin-right: 5px; width: 16px; text-align: center; }

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-pill);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--border-radius-pill);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    /* Animação simulada de carregamento */
    animation: loadProgress 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: left;
}

/* --------------------------------------------------------------------------
 * 14. LISTAS DE REFERENCIADORES (ORIGEM)
 * -------------------------------------------------------------------------- */
.source-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 5px;
}

.source-list li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 10px 15px;
    background: var(--bg-surface-high);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
}

.source-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}
.source-icon.whatsapp { color: var(--brand-whatsapp); }
.source-icon.instagram { color: var(--brand-instagram); }
.source-icon.facebook { color: var(--brand-facebook); }
.source-icon.email { color: var(--brand-email); }
.source-icon.dark { color: var(--text-muted); }

.source-count {
    margin-left: auto;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
 * 15. BOTÕES E BADGES
 * -------------------------------------------------------------------------- */
.btn-primary-action {
    background: var(--brand-neon-green);
    color: var(--text-inverse);
    padding: 10px 24px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 255, 102, 0.2);
}
.btn-primary-action:hover {
    background: var(--brand-green-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.btn-link {
    color: var(--brand-neon-green);
    font-size: 0.9rem;
    font-weight: 600;
}
.btn-link:hover { text-decoration: underline; }

.btn-filter {
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}
.btn-filter:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.btn-filter.active { background: var(--bg-surface-high); color: var(--text-primary); border-color: rgba(255,255,255,0.2); }

.badge {
    padding: 6px 12px;
    border-radius: var(--border-radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.badge.safe { background: var(--color-success-dim); color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge.warning { background: var(--color-warning-dim); color: var(--color-warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge.danger { background: var(--color-danger-dim); color: var(--color-danger); border: 1px solid rgba(239, 68, 68, 0.3); }

/* --------------------------------------------------------------------------
 * 16. FORMULÁRIOS E INPUTS (Preparação para encurtar.php)
 * -------------------------------------------------------------------------- */
.form-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}

.form-group-large {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.cyber-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 18px 20px;
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-mono);
    transition: all var(--transition-smooth);
}

.cyber-input:focus {
    border-color: var(--brand-neon-green);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px var(--brand-neon-dim);
}

.cyber-input::placeholder { color: var(--text-muted); }

/* Switch Toggle (Custom Checkbox para opções avançadas) */
.cyber-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.cyber-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-surface-high);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--glass-border);
}
.slider:before {
    position: absolute; content: "";
    height: 16px; width: 16px;
    left: 4px; bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--brand-neon-dim); border-color: var(--brand-neon-green); }
input:checked + .slider:before { transform: translateX(24px); background-color: var(--brand-neon-green); box-shadow: 0 0 10px var(--brand-neon-green); }

/* --------------------------------------------------------------------------
 * 17. ANIMAÇÕES E KEYFRAMES
 * -------------------------------------------------------------------------- */
@keyframes pulseGreen {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

@keyframes rotateOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loadProgress {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Aplicação de animação nos cards ao carregar */
.metric-card, .widget-box {
    animation: fadeInSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }
.widget-box:nth-child(1) { animation-delay: 0.5s; }
.widget-box:nth-child(2) { animation-delay: 0.6s; }

/* --------------------------------------------------------------------------
 * 18. RESPONSIVIDADE E MEDIA QUERIES
 * -------------------------------------------------------------------------- */

/* Laptops e Telas Menores (max 1200px) */
@media screen and (max-width: 1200px) {
    .detailed-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-span-2 { grid-column: span 2; }
    .col-span-3 { grid-column: span 2; }
}

/* Tablets (max 992px) */
@media screen and (max-width: 992px) {
    /* Recolhe a sidebar e joga no menu hambúrguer */
    :root {
        --sidebar-width: 0px;
    }
    
    .cyber-sidebar {
        transform: translateX(-100%);
        width: 300px; /* Largura fixa no mobile quando aberto */
    }

    .cyber-sidebar.open {
        transform: translateX(0);
    }

    .mobile-toggle { display: block; }
    .mobile-close-btn { display: block; }
    
    .main-content {
        margin-left: 0;
        max-width: 100vw;
        padding: 0 20px 30px 20px;
    }

    .overview-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smartphones (max 768px) */
@media screen and (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        gap: 20px;
        padding: 15px 0;
    }
    
    .topbar-left { width: 100%; justify-content: space-between; flex-direction: row-reverse; }
    .greeting h1 { font-size: 1.4rem; }
    .topbar-right { width: 100%; justify-content: space-between; flex-direction: row-reverse; }
    
    .detailed-metrics-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 { grid-column: span 1; }
    
    .widget-box { padding: 15px; }
    
    .cyber-table th, .cyber-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
}

/* Telas Muito Pequenas (max 480px) */
@media screen and (max-width: 480px) {
    .overview-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .server-status { display: none; /* Oculta status server em telas muito pequenas */ }
    
    .btn-primary-action {
        width: 100%;
        justify-content: center;
    }
}