/* ===================================================================
   SAP & Specialized Pages Theme - Ultracon Alignment
   Cores Oficiais: #003063 (Navy), #2596be (Cyan), #0090FF (Accent ULF)
   =================================================================== */

:root {
    --sap-primary: #071527;
    --sap-secondary: #003063;
    --sap-accent: #0090FF;
    --sap-cyan: #2596be;
    --sap-accent-light: #38bdf8;
    --sap-text: #F8FAFC;
    --sap-text-muted: #94A3B8;
    --sap-card-bg: rgba(10, 25, 47, 0.75);
}

body.sap-page {
    background-color: #071527;
    color: var(--sap-text);
    font-family: 'Inter', sans-serif;
}

/* Navbar Overrides */
.sap-page .navbar {
    background: rgba(7, 21, 39, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(37, 150, 190, 0.25);
}

.sap-page .logo-title .text-ultra {
    color: var(--sap-accent);
}

.sap-page .logo-tagline {
    color: #CBD5E1;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1.5px;
}

.sap-page .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.sap-page .nav-link:hover,
.sap-page .nav-link.active,
.sap-page .nav-item.dropdown:hover > .nav-link,
.sap-page .nav-item.dropdown.is-open > .nav-link {
    color: var(--sap-accent);
}

.sap-page .cta-button {
    background: transparent;
    border: 1.5px solid var(--sap-accent);
    color: var(--sap-accent);
}

.sap-page .cta-button:hover {
    background: var(--sap-accent);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(0, 144, 255, 0.45);
    transform: translateY(-1px);
}

/* Hero Section Overrides */
.sap-page .hero {
    background: radial-gradient(circle at 75% 20%, #003063 0%, #071527 75%);
    padding-top: 140px;
    padding-bottom: 110px;
}

.sap-page .hero-background {
    background-image:
        linear-gradient(rgba(7, 21, 39, 0.88), rgba(7, 21, 39, 0.96)),
        url('https://images.unsplash.com/photo-1555099962-4199c345e5dd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    opacity: 0.55;
}

.sap-page .hero-badge {
    background: rgba(0, 48, 99, 0.7);
    color: var(--sap-accent-light);
    border: 1px solid rgba(37, 150, 190, 0.35);
    border-left: 3px solid var(--sap-accent);
    letter-spacing: 1.5px;
}

.sap-page .hero-title {
    color: #FFFFFF;
}

.sap-page .hero-title span {
    background: linear-gradient(135deg, #0090FF 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.sap-page .hero-title span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--sap-accent);
    opacity: 0.25;
    z-index: -1;
}

.sap-page .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    border-left: 3px solid var(--sap-cyan);
    padding-left: 20px;
}

.sap-page .btn-primary {
    background: linear-gradient(135deg, #003063 0%, #004b99 100%);
    color: #FFFFFF;
    border: 1px solid var(--sap-cyan);
    font-weight: 600;
}

.sap-page .btn-primary:hover {
    background: linear-gradient(135deg, #004b99 0%, #0090FF 100%);
    box-shadow: 0 4px 20px rgba(0, 144, 255, 0.45);
    transform: translateY(-2px);
}

.sap-page .btn-secondary {
    border-color: rgba(255, 255, 255, 0.85);
    color: #FFFFFF;
}

.sap-page .btn-secondary:hover {
    border-color: var(--sap-accent);
    color: var(--sap-accent);
    background: rgba(0, 144, 255, 0.12);
}

/* Stats Override */
.sap-page .hero-stats {
    background: rgba(7, 21, 39, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(37, 150, 190, 0.25);
    border-bottom: 1px solid rgba(37, 150, 190, 0.25);
}

.sap-page .stat-number {
    color: var(--sap-accent);
    font-weight: 800;
}

.sap-page .stat-label {
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Services Section - Dark Cards */
.sap-page .services {
    background-color: #071527;
}

.sap-page .section-header .section-tag {
    color: var(--sap-cyan);
    background: rgba(37, 150, 190, 0.1);
    border: 1px solid rgba(37, 150, 190, 0.25);
    padding: 5px 14px;
    border-radius: 4px;
    display: inline-block;
}

.sap-page .section-header .section-title {
    color: #FFFFFF;
}

.sap-page .section-header .gradient-text {
    background: linear-gradient(135deg, #0090FF 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sap-page .section-header .section-description {
    color: var(--sap-text-muted);
}

.sap-page .service-card {
    background: var(--sap-card-bg);
    border: 1px solid rgba(37, 150, 190, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.sap-page .service-card:hover {
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.95), rgba(0, 48, 99, 0.5));
    border-color: var(--sap-cyan);
    box-shadow: 0 15px 35px rgba(0, 144, 255, 0.15);
    transform: translateY(-5px);
}

.sap-page .service-icon {
    background: rgba(0, 48, 99, 0.5);
    border: 1px solid rgba(37, 150, 190, 0.3);
    color: var(--sap-accent);
    border-radius: 10px;
}

.sap-page .service-title {
    color: #FFFFFF;
    font-weight: 700;
}

.sap-page .service-description {
    color: var(--sap-text-muted);
}

.sap-page .service-features li {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.sap-page .service-features li:hover {
    border-color: rgba(37, 150, 190, 0.5);
    color: var(--sap-accent-light);
    background: rgba(0, 48, 99, 0.3);
}

/* Differentials - Dark Mode */
.sap-page .differentials {
    background-color: #0A192F;
}

.sap-page .differential-item {
    background: transparent;
    border-left: 2px solid var(--sap-cyan);
}

.sap-page .differential-number {
    color: rgba(37, 150, 190, 0.18);
}

.sap-page .differential-item:hover .differential-number {
    color: var(--sap-accent);
}

.sap-page .differential-item h3 {
    color: var(--sap-accent-light);
}

.sap-page .differential-item p {
    color: var(--sap-text-muted);
}

/* Footer Padrão Oficial Ultracon */
.sap-page .footer {
    background-color: var(--sap-secondary);
    border-top: 3px solid var(--sap-cyan);
    color: #CBD5E1;
}

.sap-page .footer h4 {
    color: #FFFFFF;
    border-bottom: 2px solid var(--sap-cyan);
    width: max-content;
    padding-bottom: 4px;
}

.sap-page .footer ul li a {
    color: #CBD5E1;
}

.sap-page .footer ul li a:hover {
    color: var(--sap-accent-light);
}

/* SVGs color override */
.sap-page svg path[stroke="#0099FF"],
.sap-page svg path[stroke="#ff4d00"],
.sap-page svg circle[stroke="#ff4d00"],
.sap-page svg path[stroke="#00f2ea"] {
    stroke: var(--sap-accent);
}

/* Responsive Mobile for Subpages */
@media (max-width: 768px) {
    .sap-page .hero {
        padding-top: 105px;
        padding-bottom: 50px;
    }

    .sap-page .hero-title {
        font-size: clamp(1.85rem, 6.5vw, 2.3rem);
        line-height: 1.25;
    }

    .sap-page .hero-subtitle {
        font-size: 0.98rem;
        line-height: 1.6;
        margin-bottom: 28px;
        padding-left: 14px;
        border-left-width: 2px;
    }

    .sap-page .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .sap-page .hero-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .sap-page .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sap-page .service-card {
        padding: 24px 20px;
    }

    .sap-page .differentials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===================================================================
   LMS Auth Gatekeeper & Admin Management Styles
   =================================================================== */

/* Gatekeeper Overlay */
.auth-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 13, 24, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: fadeInGate 0.3s ease;
}

@keyframes fadeInGate {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.auth-modal-card {
    background: #0A192F;
    border: 1px solid rgba(0, 144, 255, 0.35);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 144, 255, 0.15);
    width: 100%;
    max-width: 560px;
    padding: 34px 30px;
    position: relative;
    color: #F8FAFC;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 48, 99, 0.6);
    border: 1px solid rgba(37, 150, 190, 0.4);
    color: #38bdf8;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.auth-modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 8px;
    font-family: 'Space Grotesk', sans-serif;
}

.auth-modal-subtitle {
    font-size: 0.9rem;
    color: #94A3B8;
    line-height: 1.5;
}

/* Tabs de Autenticação */
.auth-nav-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(7, 21, 39, 0.8);
    padding: 6px;
    border-radius: 10px;
    margin-bottom: 22px;
    border: 1px solid rgba(37, 150, 190, 0.2);
}

.auth-tab-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, #003063 0%, #0090FF 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 144, 255, 0.35);
}

/* Formulário */
.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-form-group.full-width {
    grid-column: 1 / -1;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.auth-form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #CBD5E1;
}

.auth-input, .auth-select {
    width: 100%;
    background: #071527;
    border: 1px solid rgba(37, 150, 190, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.92rem;
    color: #FFFFFF;
    font-family: inherit;
    transition: all 0.2s ease;
}

.auth-input:focus, .auth-select:focus {
    outline: none;
    border-color: #0090FF;
    box-shadow: 0 0 12px rgba(0, 144, 255, 0.35);
}

.auth-notice-box {
    background: rgba(0, 48, 99, 0.35);
    border-left: 3px solid #F59E0B;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: #E2E8F0;
    line-height: 1.5;
}

.auth-notice-box strong {
    color: #FBBF24;
}

.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #003063 0%, #0090FF 100%);
    border: 1px solid #38bdf8;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 144, 255, 0.45);
    transform: translateY(-1px);
}

/* Card de Estado Pendente / Bloqueado */
.status-card-inner {
    text-align: center;
    padding: 10px 0;
}

.status-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
}

.status-icon-wrapper.pending {
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid #F59E0B;
    color: #F59E0B;
    animation: pulseWarn 2s infinite ease-in-out;
}

@keyframes pulseWarn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}

.status-icon-wrapper.blocked {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #EF4444;
    color: #EF4444;
}

.status-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.status-card-desc {
    font-size: 0.92rem;
    color: #CBD5E1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.status-details-box {
    background: rgba(7, 21, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 22px;
    text-align: left;
}

.status-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.86rem;
}

.status-detail-row:last-child {
    margin-bottom: 0;
}

.status-detail-row .label {
    color: #94A3B8;
}

.status-detail-row .value {
    color: #F8FAFC;
    font-weight: 600;
}

.status-actions-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-whatsapp-action {
    background: #25D366;
    color: #052e16;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-whatsapp-action:hover {
    background: #22c55e;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transform: translateY(-1px);
}

.btn-refresh-status {
    background: transparent;
    border: 1px solid rgba(37, 150, 190, 0.4);
    color: #38bdf8;
    padding: 11px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh-status:hover {
    background: rgba(0, 144, 255, 0.1);
    border-color: #0090FF;
}

/* Badges de Status */
.badge-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-status-pendente {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-status-aprovado {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-status-bloqueado {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

/* ===================================================================
   Admin Academy Dashboard Specific Styles
   =================================================================== */
.admin-body {
    background-color: #071527;
    color: #F8FAFC;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.admin-header {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(37, 150, 190, 0.25);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: #0A192F;
    border: 1px solid rgba(37, 150, 190, 0.25);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.admin-stat-card:hover {
    border-color: #0090FF;
    transform: translateY(-2px);
}

.admin-stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 6px;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.admin-filters-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-filter-btn {
    background: #0A192F;
    border: 1px solid rgba(37, 150, 190, 0.3);
    color: #94A3B8;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-filter-btn.active, .admin-filter-btn:hover {
    background: #003063;
    color: #38bdf8;
    border-color: #0090FF;
}

.admin-search-input {
    background: #0A192F;
    border: 1px solid rgba(37, 150, 190, 0.3);
    border-radius: 8px;
    padding: 8px 14px;
    color: #FFFFFF;
    font-size: 0.88rem;
    min-width: 260px;
}

.admin-table-wrapper {
    background: #0A192F;
    border: 1px solid rgba(37, 150, 190, 0.25);
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.admin-table th {
    background: rgba(7, 21, 39, 0.8);
    color: #CBD5E1;
    padding: 14px 16px;
    font-weight: 700;
    border-bottom: 1px solid rgba(37, 150, 190, 0.25);
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #E2E8F0;
}

.admin-table tr:hover td {
    background: rgba(0, 48, 99, 0.2);
}

.admin-action-btn {
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-approve {
    background: #10B981;
    color: #064E3B;
}

.btn-approve:hover {
    background: #059669;
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.btn-block {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-block:hover {
    background: #EF4444;
    color: #FFFFFF;
}

.btn-wa-small {
    background: #25D366;
    color: #052E16;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-wa-small:hover {
    background: #16a34a;
    color: #FFFFFF;
}