@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-body: #06070a; /* Obsidian Dark Absoluto */
    --bg-white: #0e1017; /* Sleek Slate Escuro */
    --text-primary: #f4f6f8; /* Blanco Suave */
    --text-secondary: #8591a2; /* Cinza Muted */
    --accent-color: #ff6a00; /* Laranja Neon Gold */
    --accent-hover: #ff8c00;
    --success-color: #00e676; /* Verde Neon */
    --warning-color: #ffd600; /* Amarelo/Dourado Neon */
    --danger-color: #ff1744; /* Vermelho Neon */
    --neon-glow: 0 0 15px rgba(255, 106, 0, 0.25);
    --neon-glow-sutil: 0 0 10px rgba(255, 106, 0, 0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--bg-white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    overflow-y: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.menu-item {
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.menu-item:hover,
.menu-item.active {
    background: linear-gradient(90deg, rgba(255, 106, 0, 0.12) 0%, rgba(255, 106, 0, 0.02) 100%);
    color: #fff;
    border-left: 3px solid var(--accent-color);
    box-shadow: inset 4px 0 8px rgba(255, 106, 0, 0.05);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

/* Submenu Styles */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0 0 10px 10px;
}

.submenu-item {
    padding: 10px 15px 10px 50px;
    /* Indentação maior */
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.submenu-item:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.04);
}

.menu-item-group.active .submenu {
    max-height: 200px;
    /* Altura suficiente */
}

.arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.menu-item-group.active .arrow {
    transform: rotate(180deg);
}


.menu-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    /* Width da sidebar */
    flex-grow: 1;
    padding: 30px;
    width: calc(100% - 250px);
}

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

header h2 {
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Cards Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 106, 0, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), var(--neon-glow-sutil);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-accent {
    background: rgba(198, 156, 109, 0.1);
    color: var(--accent-color);
    /* Agora Dourado */
}

.icon-green {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.icon-orange {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.icon-red {
    background: rgba(255, 82, 82, 0.1);
    color: var(--danger-color);
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Chart Section */
.chart-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.chart-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chart-card:hover {
    border-color: rgba(255, 106, 0, 0.2);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3), var(--neon-glow-sutil);
}

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

/* ==========================================
   RESPONSIVIDADE MOBILE - PAINEL ADMIN
   Afeta TODAS as páginas admin sem alterar desktop
   ========================================== */

/* Botão hamburguer (só aparece no mobile) */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255,92,0,0.4);
}

/* Overlay escurecido quando sidebar aberta no mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 950;
}
.sidebar-overlay.active { display: block; }

/* ---- TABLET (769px - 1024px) ---- */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
        padding: 15px;
    }
    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
        padding: 20px;
    }
}

/* ---- MOBILE (≤ 768px) ---- */
@media (max-width: 768px) {
    /* Sidebar: oculta por padrão, desliza pelo hamburger */
    .sidebar {
        width: 240px;
        padding: 20px 15px;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        z-index: 1000;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    /* Restaura texto oculto desktop → mobile mostra texto */
    .menu-item span { display: inline; }
    .logo span { display: inline; }

    .sidebar-toggle { display: flex; }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 60px 14px 20px; /* top: espaço para botão hamburger */
    }

    /* Header empilha no mobile */
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 18px;
    }
    header h2 { font-size: 1.15rem; }
    .user-profile { align-self: flex-end; }

    /* Stats grid 1 coluna */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .stat-card { padding: 16px; gap: 12px; }
    .stat-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .stat-info h3 { font-size: 1.3rem; }

    /* Chart section 1 coluna */
    .chart-section {
        grid-template-columns: 1fr;
    }
    .chart-card { padding: 16px; }

    /* Tabelas: scroll horizontal */
    .table-container {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table {
        min-width: 600px;
        white-space: nowrap;
    }

    /* Forms adaptáveis */
    .form-group { margin-bottom: 14px; }
    input, select, textarea {
        font-size: 16px !important; /* evita zoom no iOS ao focar */
    }
}

/* ---- SMARTPHONE PEQUENO (≤ 480px) ---- */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 13px; }
    .main-content { padding: 55px 10px 16px; }
    header h2 { font-size: 1rem; }

    /* Botões em linha inteira */
    .btn-action {
        width: 100%;
        justify-content: center;
    }

    /* Admin footer empilhado */
    .admin-footer {
        flex-direction: column;
        gap: 16px;
        padding-top: 16px;
    }
}


/* Footer */
.admin-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    /* Centralizado */
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    /* Mais afastado */
    font-size: 0.9rem;
    text-align: center;
}

.developer-link {
    color: var(--accent-color);
    /* Dourado */
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.developer-link:hover {
    opacity: 0.8;
}

.support-link {
    background-color: var(--accent-color);
    /* Dourado */
    color: #121420;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.support-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(198, 156, 109, 0.3);
    /* Sombra dourada */
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #4CAF50;
}

input:focus+.slider {
    box-shadow: 0 0 1px #4CAF50;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
/* ======= macOS/Safari Compatibility ======= */
/* Smooth font rendering on macOS Safari */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
/* Safari: fix flex gap fallback */
.stats-grid, .menu, .chart-section {
    /* gap already supported in Safari 14+ */
}
/* Safari: fix position sticky in overflow containers */
.sidebar {
    -webkit-overflow-scrolling: touch;
}

/* ==========================================
   OVERWRITES PARA ENQUADRAMENTO DARK PREMIUM
   ========================================== */
.table-container {
    background: var(--bg-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 16px !important; /* Bordas Arredondadas */
    padding: 24px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow-x: auto;
}

.table-container:hover {
    border-color: rgba(255, 106, 0, 0.2) !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3), var(--neon-glow-sutil);
}
table {
    width: 100%;
    border-collapse: collapse;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
th, td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
    text-align: left;
    vertical-align: middle;
}
th {
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
tbody tr {
    transition: background-color 0.2s;
}
tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}
input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 8px !important;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 1px var(--accent-color), 0 0 10px rgba(255, 106, 0, 0.25) !important;
}
input::placeholder {
    color: #666 !important;
}
.modal-overlay {
    background: rgba(0, 0, 0, 0.85) !important;
}
.driver-popover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(198, 156, 109, 0.25) !important;
    border: 1px solid rgba(198, 156, 109, 0.2) !important;
}
.driver-popover-title {
    color: var(--accent-color) !important;
}
.driver-popover-progress-text {
    background: rgba(198, 156, 109, 0.1) !important;
    border: 1px solid rgba(198, 156, 109, 0.2) !important;
    color: var(--accent-color) !important;
}
.driver-popover-next-btn {
    background: linear-gradient(135deg, #c69c6d, #b58b5c) !important;
    box-shadow: 0 3px 10px rgba(198, 156, 109, 0.35) !important;
}
.driver-popover-next-btn:hover {
    box-shadow: 0 5px 15px rgba(198, 156, 109, 0.5) !important;
}
.driver-popover-close-btn:hover {
    color: var(--accent-color) !important;
}
.driver-active-element {
    outline: 3px solid rgba(198, 156, 109, 0.7) !important;
}
@keyframes spotlight-pulse {
    0%, 100% {
        outline-color: rgba(198, 156, 109, 0.6);
    }
    50% {
        outline-color: rgba(198, 156, 109, 0.9);
        box-shadow: 0 0 0 6px rgba(198, 156, 109, 0.2);
    }
}
#tour-welcome-banner, #students-banner, #enrollments-banner, #smtp-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #13151f 0%, #1e2130 50%, #12141e 100%) !important;
    border: 1px solid rgba(255, 106, 0, 0.2) !important;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 32px !important; /* Separação generosa e clara da tabela */
    position: relative;
    overflow: hidden;
    animation: bannerSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#tour-welcome-banner::before, #students-banner::before, #enrollments-banner::before, #smtp-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6a00, #ff8c00, transparent) !important;
}

/* Animação de entrada dos banners */
@keyframes bannerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes internas dos banners contextuais */
.sb-text, .banner-text {
    flex-grow: 1;
}

.sb-text h3, .banner-text h3 {
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0 !important;
}

.sb-text p, .banner-text p {
    color: var(--text-secondary) !important;
    font-size: 0.83rem !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.sb-actions, .banner-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

#btn-sb-start, #btn-banner-tour {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6a00, #ff8c00) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4) !important;
    transition: all 0.2s;
}

#btn-sb-start:hover, #btn-banner-tour:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.55), var(--neon-glow) !important;
}

#btn-sb-skip, #btn-banner-skip {
    font-size: 0.82rem !important;
    color: var(--text-secondary) !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

#btn-sb-skip:hover, #btn-banner-skip:hover {
    color: #fff !important;
}
    color: var(--accent-color) !important;
}
.done-modal-box, .stu-done-box {
    border: 1px solid rgba(255, 106, 0, 0.3) !important;
}
#btn-done-close, .stu-btn-p {
    background: linear-gradient(135deg, #ff6a00, #ff8c00) !important;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4) !important;
}
strong[style*="color:#ff5c00"] {
    color: var(--accent-color) !important;
}
strong[style*="color:#ff8c42"] {
    color: var(--accent-hover) !important;
}
.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.3), var(--neon-glow) !important;
}
.btn-action.btn-orange {
    background: linear-gradient(135deg, #ff6a00, #ff8c00) !important;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.45) !important;
}
.btn-orange {
    background: linear-gradient(135deg, #ff6a00, #ff8c00) !important;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.45) !important;
}
.btn-orange:hover {
    background: linear-gradient(135deg, #ff8c00, #ff6a00) !important;
    box-shadow: 0 6px 22px rgba(255, 106, 0, 0.6), var(--neon-glow) !important;
}
.dev-credit {
    color: var(--text-secondary) !important;
}
.main-footer a {
    color: var(--accent-color) !important;
}
.timeline-module-title {
    color: var(--accent-color) !important;
}
.timeline-item.active .timeline-marker {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 10px var(--accent-color) !important;
}
.timeline-item.active .t-title {
    color: var(--accent-color) !important;
}
.mobile-toggle-float {
    background: var(--accent-color) !important;
}
.btn-community-float {
    background: var(--accent-color) !important;
}
@keyframes pulse-neon-glow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(255, 106, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 106, 0, 0);
    }
}

/* ============================================================
   PADRONIZAÇÃO ABSOLUTA E RESGATE DO DARK MODE PREMIUM NEON
   Sobrescreve estilos locais/inline de todas as páginas de admin
   ============================================================ */

/* Fundo Geral */
body {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
}

/* Todos os Cards e Contêineres Administrativos */
.seo-card, .chart-card, .stat-card, .table-container, .card, 
.preview-google, .preview-whatsapp, .preview-whatsapp .pw-body, 
.upload-zone, .toggle-row, .modal-content, .modal-box, 
.done-modal-box, .stu-done-box, .box, .panel, .support-card,
.broadcast-card, .integration-card, .system-card, .update-card,
.post-card, .comment-card, .comment-box, .post-box, .forum-card, 
.ticket-card, .ticket-box, .chat-box, .chat-message, .chat-input-area, 
.lesson-item, .module-item, .builder-card, .builder-item, .lesson-card, 
.doc-card, .doc-box, .docs-section, .bio-card, .bio-box, .step-card, 
.step-item, .guide-card, .form-container, .form-box, .profile-card {
    background: var(--bg-white) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    border-radius: 16px !important;
}

/* Efeito Hover nos Cards do Painel */
.seo-card:hover, .chart-card:hover, .stat-card:hover, .table-container:hover, 
.preview-google:hover, .upload-zone:hover, .toggle-row:hover, .card:hover,
.support-card:hover, .broadcast-card:hover, .integration-card:hover, .system-card:hover,
.post-card:hover, .comment-card:hover, .ticket-card:hover, .forum-card:hover,
.lesson-item:hover, .module-item:hover, .builder-item:hover, .doc-card:hover, .profile-card:hover {
    border-color: rgba(255, 106, 0, 0.3) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), var(--neon-glow-sutil) !important;
}

/* Tabs e Botões de Abas */
.tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
}
.tab-btn {
    color: var(--text-secondary) !important;
    background: transparent !important;
}
.tab-btn:hover {
    color: var(--accent-color) !important;
    background: rgba(255, 106, 0, 0.05) !important;
}
.tab-btn.active {
    color: var(--accent-color) !important;
    border-bottom-color: var(--accent-color) !important;
    background: rgba(255, 106, 0, 0.03) !important;
}

/* Elementos de Formulário */
.form-control, input, select, textarea {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 1px var(--accent-color), 0 0 10px rgba(255, 106, 0, 0.25) !important;
    outline: none !important;
}

/* Modais de Ação e Diálogos de Cadastro (Glow Neon Laranja) */
.modal-content, .modal-box, .done-modal-box, .stu-done-box, .modal-body, .modal-dialog {
    background: var(--bg-white) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 106, 0, 0.3) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), var(--neon-glow) !important;
}

/* Alerts e Avisos */
.alert-success { background: rgba(0, 230, 118, 0.1) !important; color: #00e676 !important; border: 1px solid rgba(0, 230, 118, 0.25) !important; }
.alert-danger  { background: rgba(255, 23, 68, 0.1) !important;  color: #ff1744 !important; border: 1px solid rgba(255, 23, 68, 0.25) !important; }
.alert-warning { background: rgba(255, 214, 0, 0.1) !important; color: #ffd600 !important; border: 1px solid rgba(255, 214, 0, 0.25) !important; }

/* Botões Gerais */
.btn-primary, .btn-submit, button[type="submit"] {
    background: linear-gradient(135deg, #ff6a00, #ff8c00) !important;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4) !important;
    color: #fff !important;
    border: none !important;
}
.btn-primary:hover, .btn-submit:hover, button[type="submit"]:hover {
    background: linear-gradient(135deg, #ff8c00, #ff6a00) !important;
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.55), var(--neon-glow) !important;
    transform: translateY(-1px) !important;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Scrollbar e estilização de select múltiplo */
select[multiple] {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
select[multiple] option {
    background-color: #0e1017 !important;
    color: var(--text-primary) !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    margin-bottom: 2px !important;
    transition: all 0.2s ease;
}
select[multiple] option:checked, select[multiple] option:hover {
    background: linear-gradient(135deg, #ff6a00, #ff8c00) !important;
    color: #fff !important;
}
select[multiple]::-webkit-scrollbar {
    width: 6px;
}
select[multiple]::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
}
select[multiple]::-webkit-scrollbar-thumb {
    background: rgba(255, 106, 0, 0.3);
    border-radius: 3px;
}
select[multiple]::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Modais de Conclusão de Tour Globais */
#tour-done-modal, #students-done-modal, #enroll-done-modal, #smtp-done-modal, #course-done-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s ease;
}
#tour-done-modal.show, #students-done-modal.show, #enroll-done-modal.show, #smtp-done-modal.show, #course-done-modal.show {
    display: flex !important;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== ESTILOS GERAIS PARA GESTÃO DE ALUNOS (DARK MODE PREMIUM) ===== */
.students-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.students-stat-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.students-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 106, 0, 0.25) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), var(--neon-glow-sutil) !important;
}

.students-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(255, 106, 0, 0.08);
    color: var(--accent-color);
}

.students-stat-info h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.students-stat-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Avatar de Alunos na Tabela */
.student-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 106, 0, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s;
}

tr:hover .student-avatar {
    border-color: var(--accent-color);
}

.student-avatar-placeholder {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
}

/* Badge de Status Premium Verde Translúcido */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 230, 118, 0.06) !important;
    color: #00e676 !important;
    border: 1px solid rgba(0, 230, 118, 0.15) !important;
}

/* Botões de Ação Circulares */
.btn-action-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-action-circle:hover {
    color: #fff;
    transform: translateY(-1px);
}

.btn-action-circle.edit:hover {
    background: rgba(0, 123, 255, 0.15) !important;
    border-color: rgba(0, 123, 255, 0.4) !important;
    color: #007bff !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.15);
}

.btn-action-circle.delete:hover {
    background: rgba(255, 23, 68, 0.12) !important;
    border-color: rgba(255, 23, 68, 0.35) !important;
    color: var(--danger-color) !important;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.15);
}

/* Botões Arredondados Premium (Estilo Pílula e Círculo) */
.btn, .btn-primary, .btn-secondary, .btn-orange, .btn-submit,
button[type="submit"], #btn-students-tour, #btn-sb-start, 
#btn-sb-skip, #btn-banner-tour, #btn-banner-skip, 
.stu-btn-p, .stu-btn-s, #btn-done-close {
    border-radius: 30px !important;
}

/* Paginação com números em Círculos Perfeitos */
.pagination-container .page-num {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.pagination-container .btn-secondary {
    padding: 8px 18px !important;
    font-size: 0.82rem !important;
    border-radius: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

#btn-students-tour, #btn-start-tour {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    background: linear-gradient(135deg, #ff6a00, #ff8c00) !important;
    color: #fff !important;
    border: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#btn-students-tour:hover, #btn-start-tour:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(255, 106, 0, 0.6), var(--neon-glow) !important;
}

/* Truncamento de textos compridos (SaaS Premium) */
.truncate-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
    vertical-align: middle !important;
}
