:root {
    --primary: #006456;
    /* Verde SBOT */
    --primary-rgb: 0, 100, 86;
    --primary-dark: #004d42;
    --bg: #0a0e14;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-muted: #a0aec0;
    --glass: rgba(255, 255, 255, 0.05);
    /* Levemente mais opaco */
    --glass-blur: blur(20px);
    /* Blur mais intenso */
    --border: rgba(255, 255, 255, 0.15);
    /* Borda mais definida */
    --accent-glow: radial-gradient(circle at top right, rgba(0, 100, 86, 0.2), transparent);

    /* 8-Point Grid System Tokens */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;
    --space-8: 64px;
}

/* Utilidades Globais */
.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


/* Light Mode Variables override */
body.light-mode {
    --bg: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.4);
    --glass: rgba(255, 255, 255, 0.5);
    background-image: radial-gradient(circle at center, rgba(0, 100, 86, 0.08) 0%, transparent 70%);
    position: relative;
}

/* Camada extra de Soft Green Glow do Nícolas */
body.light-mode::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: radial-gradient(circle at center, rgba(0, 203, 169, 0.12) 0%, transparent 75%);
    opacity: 0.6;
    mix-blend-mode: multiply;
    pointer-events: none;
}

body.light-mode .glass {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .glass-glow {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body.light-mode .logo img {
    filter: none;
    /* Cor original no modo claro */
}

/* Theme Toggle Component Styles */
.theme-toggle {
    display: flex;
    width: 52px;
    height: 26px;
    padding: 3px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    align-items: center;
}

.toggle-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.toggle-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle .icon-sun {
    color: #f59e0b;
}

.theme-toggle .icon-moon {
    color: #94a3b8;
}

.toggle-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.light-mode .toggle-thumb {
    transform: translateX(25px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

body.light-mode .theme-toggle .icon-sun {
    color: #f59e0b;
}

body.light-mode .theme-toggle .icon-moon {
    color: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}


.admin-body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-image: var(--accent-glow);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

/* Glassmorphism */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.glass-glow {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Header */
header {
    padding: 10px 0;
    /* Bem compacto */
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px;
    /* Tamanho final conforme solicitado */
    filter: brightness(0) invert(1);
    /* Logo em Branco */
    /* Branco no modo escuro */
    transition: 0.3s ease;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

.btn-login-nav {
    display: inline-flex;
    position: relative;
    width: 140px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    border-radius: 50px;
    border: 1px solid rgba(0, 203, 169, 0.4);
    /* Borda Neon Sutil */
    background: rgba(255, 255, 255, 0.03);
    /* Vidro Claro Extra Leve */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: #fff !important;
    /* Texto em Branco p/ destaque */
    z-index: 1;
    box-shadow: 0 0 15px rgba(0, 203, 169, 0.1);
}

.btn-text-orig {
    display: inline-block;
    transition: all 0.3s ease;
    z-index: 3;
}

.btn-content-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(40px);
    opacity: 0;
    transition: all 0.3s ease;
    color: #fff;
    z-index: 3;
}

.btn-bg-glow {
    position: absolute;
    left: 20%;
    top: 40%;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: var(--primary);
    transition: all 0.3s ease;
    z-index: 2;
    transform: scale(1);
}

.btn-login-nav:hover .btn-text-orig {
    transform: translateX(50px);
    opacity: 0;
}

.btn-login-nav:hover .btn-content-hover {
    transform: translateX(0);
    opacity: 1;
}

.btn-login-nav:hover .btn-bg-glow {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scale(2);
    border-radius: 0;
}

.btn-login-nav:hover {
    box-shadow: 0 0 25px rgba(0, 100, 86, 0.4);
    transform: translateY(-1px);
}

/* Search Card */
.search-card {
    width: 100%;
    max-width: 600px;
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-card h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.search-card p {
    color: var(--text-muted);
    margin-bottom: 35px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    width: 100%;
    padding: 18px 25px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1);
}


.btn-primary {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #004d42 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 100, 86, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 100, 86, 0.5);
    filter: brightness(1.15);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
}

.btn-primary.small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.btn-link:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.btn-icon {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    color: #fff;
}

.btn-icon i {
    color: #fff !important;
    width: 18px;
    height: 18px;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: scale(1.1);
}

.btn-icon.red:hover {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--glass) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 80px;
    width: 100%;
    margin-bottom: var(--space-2);
}

/* Admin Specific */
.admin-container {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    flex: 1;
    overflow: hidden;
    /* Container pai não rola, o conteúdo sim */
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.sidebar {
    width: 260px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: var(--space-3);
    /* 24px */
    height: fit-content;
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    /* 8px */
}

.sidebar a {
    display: block;
    padding: 12px var(--space-2);
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    overflow-y: auto;
    /* Habilita o scroll aqui */
    padding-right: 10px;
    /* Espaço para a barra de scroll */
}

/* Custom Scrollbar Premium Global - Nícolas Style */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    /* Para scroll horizontal se necessário */
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cb8e;
    /* Brilho verde no hover */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-container {
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--card-bg);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 18px 25px;
    border-bottom: 1px solid var(--border);
}

th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

.btn-primary.small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.import-card {
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card-bg);
}

.preview-table {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
}

@media (max-width: 900px) {
    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

/* Fundo Animado Pro Max - Blobs Verdes */
.bg-animated-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    /* Quase triplicando a opacidade para ficar bem visÃ­vel */
    mix-blend-mode: screen;
}

.blob-1 {
    top: -10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00CBA9 0%, transparent 80%);
    /* Verde mais saturado */
    animation: blob-pulse 10s infinite ease-in-out;
}

.blob-2 {
    bottom: -10%;
    right: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #02faab 0%, transparent 80%);
    /* Verde neon suave */
    animation: blob-pulse 12s infinite ease-in-out reverse;
    animation-delay: -3s;
}

.blob-3 {
    top: 30%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #008f76 0%, transparent 80%);
    /* Verde profundo */
    animation: blob-pulse 15s infinite ease-in-out;
    animation-delay: -7s;
}

@keyframes blob-pulse {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.15;
    }

    33% {
        transform: scale(1.3) translate(60px, -40px);
        opacity: 0.22;
    }

    66% {
        transform: scale(0.8) translate(-40px, 50px);
        opacity: 0.18;
    }
}

body.light-mode .blob {
    opacity: 0.12;
    mix-blend-mode: multiply;
}

/* RetroGrid Implementation */
.hero-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    /* Ocupa o espaÃ§o entre header e footer */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    /* Garante que sombras e glows nÃ£o sejam cortados */
    padding: 20px 0 60px;
    /* Mais espaÃ§o na base para respirar */
}

.retro-grid {
    pointer-events: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    perspective: 200px;
    opacity: 0.4;
    z-index: 0;
}

.retro-grid-inner {
    position: absolute;
    inset: 0;
    transform: rotateX(65deg);
}

.grid-lines {
    position: absolute;
    inset: 0% 0px;
    width: 600vw;
    height: 300vh;
    margin-left: -200%;
    transform-origin: 100% 0 0;
    background-image:
        linear-gradient(to right, rgba(0, 203, 169, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 203, 169, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(60px);
    }
}

.grid-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark), transparent 80%);
}

body.light-mode .grid-fade {
    background: linear-gradient(to top, #fff, transparent 80%);
}

/* Hero Typography */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--space-2);
}


.hero-title {
    font-size: clamp(2rem, 6vw, 3.8rem);
    /* Reduzido levemente */
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-2);
}

body.light-mode .hero-title {
    background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

body.light-mode .hero-title {
    background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle-gradient {
    background: linear-gradient(to right, var(--primary), #00ffcc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1rem;
    /* Mais compacto */
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto var(--space-3);
}

/* Shimmer/Spinning Border for Search Form */
/* Premium Search Card - GLASSMORPHISM 2.0 (REVERTED & REFINED) */
.form-container-premium {
    position: relative;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    /* Base da borda */
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    /* overflow: hidden; */
    /* Removido para evitar o corte da sombra */
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.8);
}

.glow-content {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: var(--active, 0);
    z-index: 0;
    background: radial-gradient(circle 200px at var(--x, 0) var(--y, 0),
            rgba(0, 203, 169, 0.5),
            /* Brilho Verde vibrante mas suave */
            transparent 70%);
    border-radius: 20px;
    transition: opacity 0.5s ease;
}

.form-inner {
    position: relative;
    z-index: 1;
    background: rgba(10, 12, 14, 0.35);
    /* Mais transparente para ver o rastro */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 19px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.glow-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

.spinning-border {
    display: none;
}

/* Removido efeito antigo spinning */
.spinning-border {
    display: none;
}

body.light-mode .form-inner {
    background: rgba(255, 255, 255, 0.5);
    /* Vidro Branco Mais Elegante */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.form-inner input {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 14px 18px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-inner input:focus {
    outline: none;
    border-color: rgba(0, 203, 169, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

body.light-mode .form-inner input {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.light-mode .form-inner input::placeholder {
    color: #94a3b8;
}

/* Slide Button Premium Implementation */
.slide-btn-row {
    margin-top: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-button {
    position: relative;
    width: 250px;
    height: 54px;
    background: rgba(255, 255, 255, 0.05);
    /* Vidro TranslÃºcido */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    overflow: hidden;
    user-select: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-button:active {
    cursor: grabbing;
}

.slide-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 203, 169, 0.15));
    border-radius: 100px;
}

.slide-handle {
    position: absolute;
    left: 5px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    /* Ãcone em Branco */
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: background 0.3s;
}

.slide-handle i {
    width: 18px;
    height: 18px;
}

.slide-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Status States */
.slide-button.loading .slide-handle {
    background: #4ade80;
    /* Verde Fluorescente mais vibrante */
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
    /* Efeito neon */
}

.slide-button.completed {
    width: 250px;
    /* Expande novamente */
    border-color: var(--primary);
    background: rgba(0, 203, 169, 0.05);
}

.slide-button.completed .slide-text {
    display: block;
    opacity: 1;
    margin-left: 45px;
    color: #4ade80;
    /* Verde Neon Fluorescente */
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
    /* Brilho sutil no texto */
    font-weight: 600;
}

.slide-button.completed .slide-handle {
    left: 5px;
    transform: none !important;
    background: var(--primary);
    color: white;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

body.light-mode .slide-button {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 100, 86, 0.15);
}

body.light-mode .slide-text {
    color: #475569;
}

body.light-mode .btn-login-nav {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 100, 86, 0.2);
    color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .hero-description {
    color: #475569;
    font-weight: 500;
}

/* Ajustes Finais Sugeridos pelo UsuÃ¡rio Nícolas */
body.light-mode .hero-title {
    background: #000000 !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

body.light-mode .form-container-premium {
    box-shadow: 0 40px 100px -20px rgba(0, 100, 86, 0.2) !important;
}

body.light-mode .hero-subtitle-gradient {
    background: var(--primary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}


/* Dinamização do Background Nícolas */
body.light-mode .blob {
    opacity: 0.25;
    filter: blur(80px);
    mix-blend-mode: multiply;
}

body.light-mode .blob-1 {
    animation: blob-pulse 7s infinite ease-in-out;
    transform: scale(1.2);
}

body.light-mode .blob-2 {
    animation: blob-pulse 9s infinite ease-in-out reverse;
    transform: scale(1.3);
}

body.light-mode .blob-3 {
    animation: blob-pulse 11s infinite ease-in-out;
    transform: scale(1.1);
}


/* Intensificação Final de Glow Nícolas */
body.light-mode::before {
    background-image: radial-gradient(circle at center, rgba(0, 203, 169, 0.25) 0%, transparent 80%) !important;
    opacity: 0.9 !important;
}


/* Botões Administrativos Premium Nícolas */
.btn-primary.small#btn-novo-evento {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 100, 86, 0.3);
}

.btn-primary.small#btn-novo-evento:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 100, 86, 0.5);
    background: #008f76;
}

.btn-primary.small#btn-novo-evento:active {
    transform: scale(0.98);
}


/* Admin Config Styles Nícolas */
.input-wrapper-admin {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.input-wrapper-admin label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.table-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn-icon.red:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}


/* Status Badge Nícolas */
.status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    margin-right: 15px;
    font-weight: 500;
}

.status-badge.connected {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.1);
}

.status-badge.error {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.1);
}


/* Admin Expansion Styles Nícolas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 100, 86, 0.2);
}

.stat-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.layout-config-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.config-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.config-col label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.search-box-admin {
    padding: 10px 20px;
    border-radius: 12px;
    width: 300px;
}

.search-box-admin input {
    background: transparent;
    border: none;
    color: var(--text);
    width: 100%;
    outline: none;
}


/* --- Sistema de Modais Nícolas Premium --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 203, 142, 0.1);
    padding: 20px 30px;
    /* Mais compacto para telas menores */
    border-radius: 24px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.modal-body,
.multi-step-container {
    overflow-y: auto;
    flex: 1;
    margin-bottom: 10px;
    padding-right: 8px;
}

.multi-step-container {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.modal-footer {
    flex-shrink: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal:not(.hidden) .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content h3 {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 25px;
    color: #fff;
}

.modal.hidden {
    display: none;
}

/* --- Layout de Formulario Admin Nícolas --- */
.form-group-admin {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-admin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* --- Botões Administrativos Premium SBOT 2026 --- */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    /* Mais compacto */
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 100, 86, 0.3);
    font-family: 'Inter', sans-serif;
}

/* Ocultar Spinners Nativos em Inputs Numéricos */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Scrollbar Premium "Fio de Luz" */
.modal-body::-webkit-scrollbar,
.multi-step-container::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-track,
.multi-step-container::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb,
.multi-step-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary);
}

.layout-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 5px;
}

.config-col label {
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted) !important;
    margin-bottom: 5px !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 100, 86, 0.5);
    filter: brightness(1.15);
}

.btn-primary.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-secondary.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Branquear ícone do calendário nativo */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Modais & Footer Layout Consolidado */
.modal-actions,
.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    width: 100%;
}

.modal-footer button {
    flex: none;
}

/* --- Multi-Step Form Nícolas Premium --- */
.progress-container {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #00cb8e 100%);
    width: 33%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 100, 86, 0.5);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Sistema de Toasts Premium SBOT --- */
#toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.sbot-toast {
    min-width: 300px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
    animation: toast-slide-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.sbot-toast.success {
    border-left: 4px solid var(--primary);
}

.sbot-toast.error {
    border-left: 4px solid #ef4444;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-msg {
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.toast-fade-out {
    animation: toast-slide-out 0.5s ease-in forwards !important;
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.step-content {
    display: none;
    animation: stepEnter 0.4s ease-out forwards;
}

.step-content.active {
    display: block;
}

@keyframes stepEnter {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* --- Importador Universal Premium Nícolas --- */
.file-drop-area {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto 25px auto;
    max-width: 550px;
    position: relative;
    overflow: hidden;
}

.file-drop-area:hover,
.file-drop-area.drag-over {
    background: rgba(0, 100, 86, 0.08);
    border-color: var(--primary);
    border-style: dashed;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.file-drop-area.has-file {
    border-style: solid;
    border-color: var(--primary);
    background: rgba(0, 100, 86, 0.15);
    box-shadow: 0 0 20px rgba(0, 100, 86, 0.2);
}

.drop-icon {
    font-size: 3.5rem;
    margin-bottom: 5px;
    transition: 0.3s;
}

.file-drop-area.has-file .drop-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px var(--primary));
}

.file-types-badges {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.badge-format {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.import-preview-container {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    animation: fadeIn 0.5s ease;
}

/* Modal Premium */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    padding: var(--space-4);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.modal-header h2 {
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Componentes de Modal Premium SBOT 2026 */
.close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    line-height: 0;
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

.close-modal i {
    width: 20px;
    height: 20px;
}

.input-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 18px;
    border-radius: 12px;
    color: #fff;
    width: 100%;
    cursor: pointer;
    outline: none;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    transition: all 0.3s ease;
}

.input-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.input-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 100, 86, 0.2);
}

.input-select option {
    background: #0f172a;
    color: white;
    padding: 10px;
}

/* Upload Zone Nícolas Premium 🚀 */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(2, 132, 199, 0.05);
    /* Usando cor primária com transparência */
}

.upload-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.file-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
    display: block;
}

#upload-preview {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

#preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
    font-weight: 600;
}

.upload-zone:hover .upload-overlay {
    opacity: 1;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

/* Auditoria & Monitorização Premium 📊 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-info .stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-info h3 {
    font-size: 1.8rem;
    margin: 0;
    color: #fff;
}

.stat-trend {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
}

.stat-trend.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.badge-live {
    font-size: 0.7rem;
    background: #ef4444;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.chart-main-container {
    padding: 25px;
    border-radius: 24px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.chart-legend {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.table-card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.table-header {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.status-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

/* --- Flatpickr Premium Customization --- */
.flatpickr-calendar {
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 203, 169, 0.2) !important;
    border-radius: 20px !important;
    font-family: 'Inter', sans-serif !important;
}

.premium-font-select {
    background-color: rgba(0, 203, 169, 0.05) !important;
    border: 1px solid rgba(0, 203, 169, 0.3) !important;
    transition: all 0.3s ease;
}

.premium-font-select:focus {
    box-shadow: 0 0 15px rgba(0, 203, 169, 0.2) !important;
    border-color: var(--primary) !important;
}

.layout-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    margin-top: 5px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.flatpickr-day:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.flatpickr-innerContainer {
    padding: 10px !important;
}

.flatpickr-day {
    color: #fff !important;
    border-radius: 8px !important;
}

/* Estilizar o altInput do Flatpickr para combinar com o design */
.flatpickr-input[type="hidden"]+.flatpickr-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border) !important;
    padding: 12px 18px !important;
    border-radius: 12px !important;
    color: white !important;
    width: 100% !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
}

.status-check i {
    width: 20px;
    height: 20px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.ip-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Modal de Download Aluno 💎 */
#modal-download {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#modal-download .modal-content {
    max-width: 500px;
    width: 100%;
}

.cert-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.certificado-item-aluno {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-role {
    font-size: 0.7rem;
    background: rgba(0, 100, 86, 0.2);
    color: #4ade80;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 8px;
}

.btn-download-aluno {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-download-aluno:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 100, 86, 0.3);
}

@keyframes scale-up {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scale-up {
    animation: scale-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST ADAPTATIONS)
   ========================================================================== */

/* Breakpoint: Tablets and Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .admin-container {
        padding: var(--space-2);
        gap: var(--space-2);
    }

    .sidebar {
        width: 220px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Breakpoint: Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {

    /* Global Layout */
    .container {
        width: 100%;
        padding: 0 20px;
    }

    /* Header & Navigation */
    header {
        padding: 5px 0;
    }

    nav {
        position: relative;
        min-height: 60px;
    }

    header .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    nav ul {
        display: none;
        /* Seria substituído por um menu hambúrguer */
    }

    #admin-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .logo img {
        height: 50px;
    }

    /* Hero Section */
    .hero-content {
        padding: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    /* Search/Form Cards */
    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .form-inner {
        padding: 16px;
    }

    /* Slide Button */
    .slide-button {
        width: 100%;
        max-width: 280px;
    }

    /* Admin Panel Dashboard */
    .admin-container {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
        padding: 15px !important;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 70px;
        bottom: 0;
        width: 280px;
        height: auto;
        background: var(--bg);
        z-index: 1000;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-radius: 0 20px 20px 0;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar ul {
        flex-direction: column;
        gap: 15px;
    }

    .sidebar a {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .admin-content {
        width: 100%;
        padding-right: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Tables */
    .table-container {
        margin: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    table {
        min-width: 650px;
    }

    /* Modals */
    .modal-content {
        width: 95% !important;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px !important;
    }

    .modal-step-content {
        gap: 15px !important;
    }
}

/* Breakpoint: Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .search-card h1 {
        font-size: 1.8rem;
    }

    /* Validation Page Mobile Optimizations */
    .cert-details {
        padding: 15px;
        text-align: left;
    }

    .cert-details h2 {
        font-size: 1.4rem;
        margin: 10px 0;
    }

    .cert-details p {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
    }

    .btn-login-nav {
        width: 120px;
        font-size: 0.8rem;
    }

    /* Estilo de "Cartão" para tabelas se necessário no futuro */
    .admin-header h2 {
        font-size: 1.3rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-primary {
        width: 100%;
    }
}

/* ==========================================================================
   MOBILE MENU COMPONENTS
   ========================================================================== */

.mobile-menu-btn {
    display: none;
    background: var(--glass);
    border: 1px solid var(--border);
    color: white;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}

.mobile-menu-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    transition: opacity 0.3s ease;
}

.mobile-menu-content {
    width: 280px;
    height: 100%;
    background: var(--bg);
    border-left: 1px solid var(--border);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    min-height: 50px;
}

.mobile-menu-header .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    font-size: 1.2rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.mobile-link:hover {
    color: var(--primary);
    padding-left: 10px;
}

.btn-premium-mobile {
    margin-top: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #00ffcc 100%);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    color: #000;
    font-weight: 700;
    border: none;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Override visibility in mobile breakpoint */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }
}

/* ==========================================================================
   PREMIUM TOAST SYSTEM
   ========================================================================== */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.sbot-toast {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-msg {
    text-align: center;
    flex: 1;
}

.sbot-toast.error {
    border-left: 4px solid #ef4444;
}

.sbot-toast.success {
    border-left: 4px solid var(--primary);
}

.toast-fade-out {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal Confirmação Premium */
#modal-confirm .modal-content {
    border-top: 4px solid var(--primary);
}

.confirm-icon i {
    color: var(--primary) !important;
    width: 48px;
    height: 48px;
}

.stat-icon i,
.drop-icon i,
.toast-icon i {
    color: #fff !important;
}