:root {
    --bg-dark-ink: #0b0f19;
    --bg-surface: #111827;
    --bg-surface-elevated: #1e293b;
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --accent-subtle: rgba(16, 185, 129, 0.14);
}

body.bg-dark-ink {
    background-color: var(--bg-dark-ink);
    color: #f1f5f9;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
}

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

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

.top-trust-bar {
    background-color: #070a12;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-green);
}

.brand-badge {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #10b981, #047857);
    color: #06130e;
    font-weight: 800;
    font-size: 0.95rem;
}

.text-accent {
    color: #34d399 !important;
}

.bg-accent {
    background-color: #10b981 !important;
}

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

.border-accent {
    border-color: rgba(52, 211, 153, 0.45) !important;
}

.btn-cta {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: #04130d !important;
    border: 1px solid #34d399;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta:hover, .btn-cta:focus {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
    color: #020b08 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.45);
}

.btn-outline-accent {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.5);
}

.btn-outline-accent:hover {
    background-color: #10b981;
    color: #04130d;
    border-color: #10b981;
}

.hero-section {
    background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.10), transparent 45%),
                linear-gradient(180deg, #0f172a 0%, #0b0f19 100%);
}

.table-header-custom th {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.hover-card {
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hover-card:hover {
    border-color: rgba(52, 211, 153, 0.55) !important;
    transform: translateY(-2px);
}

.hover-accent:hover {
    color: #34d399 !important;
}

.conversion-box {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12) 0%, #080c14 100%);
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: #34d399;
    text-decoration: underline;
}

/* =========================================================================
   CORREÇÕES DE LAYOUT, Z-INDEX DA NAVBAR E DROPDOWN (PATCH V2)
   ========================================================================= */
.navbar-elevated {
    z-index: 1055 !important;
    backdrop-filter: blur(10px);
}

.navbar-elevated .dropdown-menu {
    z-index: 1060 !important;
    border-radius: 0.75rem;
    padding: 0.5rem;
    margin-top: 0.4rem !important;
}

.navbar-elevated .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.92rem;
}

.navbar-elevated .dropdown-item:hover,
.navbar-elevated .dropdown-item:focus {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* Remove o retângulo azul padrão de foco do navegador nos itens do menu */
.navbar-nav .nav-link {
    border-radius: 0.5rem;
    padding: 0.45rem 0.75rem !important;
    transition: background-color 0.15s ease, color 0.15s ease;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible,
.navbar-nav .nav-link.show {
    background-color: rgba(255, 255, 255, 0.06);
    color: #34d399 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Garante que a sidebar sticky nunca passe por cima da navbar nem do dropdown */
@media (min-width: 992px) {
    .sidebar-sticky-safe {
        position: sticky;
        top: 84px;
        z-index: 900 !important;
    }
}

/* Estilo para comandos e arquivos técnicos inline (ex: HD-UpdateService.exe) */
code.code-inline {
    background-color: rgba(15, 23, 42, 0.85);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 0.35rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.875em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
