/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    /* Paleta Militar */
    --military-red: #D10000;
    --military-blue: #0b8db1;
    --military-green: #577c58;
    --military-black: #050505;
    /* Cores de Interface */
    --card-bg: #111111;
    --input-bg: #1a1a1a;
    --border-color: rgba(255, 255, 255, 0.1);
    --text-muted: #9ca3af;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--military-black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--military-black);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--military-red);
    }

/* Utilitários de Texto */
.text-military-red {
    color: var(--military-red);
}

.gradient-text {
    background: linear-gradient(90deg, #ffffff, var(--military-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-section-dark {
    background-color: #0a0a0a;
}

/* ==========================================================================
   2. NAVBAR & NAVIGATION
   ========================================================================== */
.navbar {
    background-color: rgba(5, 5, 5, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    min-height: 80px; /* Base height com min-height para expandir no mobile */
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(5, 5, 5, 0.98);
        padding: 1.5rem 1rem;
        border-radius: 8px;
        margin-top: 15px;
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
}

.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s;
}

    .nav-link:hover {
        color: var(--white) !important;
    }

/* ==========================================================================
   3. COMPONENTS: BUTTONS
   ========================================================================== */
/* Botão Base Militar (Vermelho) e suas variações de uso (Login, Reset, Register, Enroll) */
.btn-military,
.btn-login,
.btn-reset,
.btn-register,
.btn-enroll {
    background-color: var(--military-red);
    color: white;
    font-weight: 700;
    border: none;
    padding: 14px 24px; /* Unificado para padding mais confortável */
    border-radius: 10px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    width: 100%; /* Default width, pode ser sobrescrito */
}

/* Botões em contextos de layout (geralmente width auto) */
.btn-military {
    width: auto;
    padding: 10px 24px;
}

    /* Hover Effects Unificados */
    .btn-military:hover,
    .btn-login:hover:not(:disabled),
    .btn-reset:hover:not(:disabled),
    .btn-register:hover,
    .btn-enroll:hover {
        background-color: #b00000;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px -5px rgba(209, 0, 0, 0.3);
        color: white;
    }

.btn-login:disabled, .btn-reset:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

/* Outras Variações de Botão */
.btn-military-2 {
    background-color: var(--military-blue);
    color: white;
    font-weight: 700;
    border: none;
    padding: 10px 24px;
    transition: all 0.3s;
}

    .btn-military-2:hover {
        background-color: #3152f2;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px -10px rgba(209, 0, 0, 0.4);
    }

.btn-military-3 {
    background-color: var(--military-green);
    color: white;
    font-weight: 700;
    border: none;
    padding: 10px 24px;
    transition: all 0.3s;
}

    .btn-military-3:hover {
        background-color: #024d1c;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px -10px rgba(209, 0, 0, 0.4);
    }

.btn-outline-white {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
    padding: 12px 32px;
    background: transparent;
    transition: all 0.3s;
}

    .btn-outline-white:hover {
        border-color: rgba(255, 255, 255, 0.4);
        color: white;
    }

.btn-back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.2s;
    margin-top: 25px;
}

    .btn-back:hover {
        color: var(--white);
    }

/* ==========================================================================
   4. COMPONENTS: FORMS & AUTH (Login, Register, Forgot PW)
   ========================================================================== */
.auth-wrapper {
    background-color: var(--military-black);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px; /* Padrão Login/Forgot */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

    /* Modificador para o card de Matrícula (Enroll) que é mais largo */
    .auth-card.wide {
        max-width: 850px;
    }

.auth-header h1 {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
}

    .form-control:focus {
        background-color: #222 !important;
        border-color: var(--military-red) !important;
        box-shadow: 0 0 0 4px rgba(209, 0, 0, 0.15) !important;
        color: var(--white) !important;
        outline: none;
    }

.form-check-input {
    background-color: var(--input-bg);
    border-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: var(--military-red) !important;
        border-color: var(--military-red) !important;
    }

/* Erros e Validações Premium */
.field-validation-error {
    display: inline-block;
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    border-left: 3px solid #dc3545;
    margin-top: 0.4rem;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    animation: fadeInError 0.2s ease-in-out;
}
.field-validation-error::before {
    content: "⚠️ ";
    margin-right: 4px;
}
.validation-summary-errors {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #dc3545;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* Campos com Botão Ocultar/Exibir Senha */
.input-group-password {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}
.input-group-password .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.btn-toggle-password {
    border: 1px solid var(--border-color);
    border-left: none;
    background: transparent;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #6c757d;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-toggle-password:hover {
    color: #dc3545;
    background-color: rgba(255, 255, 255, 0.02);
}
@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-link, .terms-link {
    color: var(--military-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

    .auth-link:hover, .terms-link:hover {
        opacity: 0.8;
        text-decoration: underline;
    }

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 25px 0;
}

.validation-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 5px;
}

    .validation-hint.valid {
        color: #25d366;
    }

/* Campo Honeypot (Segurança) */
.hp-field {
    display: none !important;
    visibility: hidden !important;
}

/* Info Icon Tooltip */
.info-tooltip-icon {
    color: #25d366;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   5. LANDING PAGE LAYOUT (Hero, Cards, Features)
   ========================================================================== */
/* Hero Section */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
}

.vaga-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--military-red);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(209, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(209, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(209, 0, 0, 0);
    }
}

/* Hero Art / Slideshow */
.hero-art-container {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.military-slideshow {
    position: relative;
    z-index: -10;
    width: 100%;
    max-width: 450px;
    height: 600px;
    overflow: hidden;
}

.military-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s linear;
    animation: crossfade 10s infinite;
}

.img-2 {
    animation-delay: 5s;
    opacity: 0;
}

@keyframes crossfade {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
    }

    45% {
        opacity: 1;
    }

    55% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
    }
}

/* Cards (Zreu & Features) */
.zreu-card {
    background: var(--card-bg);
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--white);
}

    .zreu-card:hover {
        border-color: var(--military-red);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px -10px rgba(209, 0, 0, 0.3);
        color: var(--white);
    }

.card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: border-color 0.3s;
}

    .feature-item:hover {
        border-color: var(--military-red);
    }

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, var(--military-red) 0%, #800000 100%);
    border-radius: 24px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   6. COURSE DETAILS SPECIFICS
   ========================================================================== */
.course-hero {
    padding: 120px 0 60px;
    background: linear-gradient(180deg, rgba(209, 0, 0, 0.05) 0%, rgba(5, 5, 5, 1) 100%);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.breadcrumb-item.active {
    color: var(--military-red);
}

.course-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(209, 0, 0, 0.1);
    color: var(--military-red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.course-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.main-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
}

.section-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title i {
        color: var(--military-red);
    }

/* Sticky Sidebar & Enroll Card */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.enroll-card {
    background: var(--card-bg);
    border: 2px solid var(--military-red);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(209, 0, 0, 0.1);
}

.price-tag {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.price-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Lista de Conteúdo e Acordeão */
.content-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

    .content-item i {
        color: var(--military-red);
        flex-shrink: 0;
        margin-top: 4px;
    }

.accordion-item {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-button {
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    font-weight: 600;
    box-shadow: none !important;
}

    .accordion-button:not(.collapsed) {
        background: rgba(209, 0, 0, 0.05);
        color: var(--military-red);
    }

    .accordion-button::after {
        filter: invert(1);
    }

.accordion-body {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Reviews */
.review-card {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

    .review-card:last-child {
        border-bottom: none;
    }

.stars {
    color: #ffc107;
    display: flex;
    gap: 2px;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--military-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.course-tag {
    font-size: 0.65rem;
    background: rgba(209, 0, 0, 0.1);
    color: var(--military-red);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Access Control Specifics */
.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active {
    background-color: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.badge-inactive {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.badge-enrolled {
    background-color: rgba(11, 141, 177, 0.15);
    color: #0b8db1;
    border: 1px solid rgba(11, 141, 177, 0.3);
}

.avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--military-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(209, 0, 0, 0.3);
}

/* ==========================================================================
   7. MODAL & FOOTER
   ========================================================================== */
/* Modais */
.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--white);
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.05);
}

.btn-close, .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    margin-top: 80px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

    .footer-link:hover {
        color: var(--military-red);
        padding-left: 4px;
    }

.footer-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

    .footer-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 30px;
        height: 2px;
        background: var(--military-red);
    }

.social-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .social-btn:hover {
        background: var(--military-red);
        color: var(--white);
        transform: translateY(-3px);
    }

.footer-newsletter input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

    .footer-newsletter input:focus {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--military-red);
        box-shadow: none;
        color: var(--white);
    }

/* ==========================================================================
   8. MEDIA QUERIES
   ========================================================================== */
}

.accordion-button {
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    font-weight: 600;
    box-shadow: none !important;
}

    .accordion-button:not(.collapsed) {
        background: rgba(209, 0, 0, 0.05);
        color: var(--military-red);
    }

    .accordion-button::after {
        filter: invert(1);
    }

.accordion-body {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Reviews */
.review-card {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

    .review-card:last-child {
        border-bottom: none;
    }

.stars {
    color: #ffc107;
    display: flex;
    gap: 2px;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--military-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.course-tag {
    font-size: 0.65rem;
    background: rgba(209, 0, 0, 0.1);
    color: var(--military-red);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Access Control Specifics */
.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active {
    background-color: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.badge-inactive {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.badge-enrolled {
    background-color: rgba(11, 141, 177, 0.15);
    color: #0b8db1;
    border: 1px solid rgba(11, 141, 177, 0.3);
}

.avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--military-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(209, 0, 0, 0.3);
}

/* ==========================================================================
   7. MODAL & FOOTER
   ========================================================================== */
/* Modais */
.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--white);
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.05);
}

.btn-close, .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    margin-top: 80px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

    .footer-link:hover {
        color: var(--military-red);
        padding-left: 4px;
    }

.footer-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

    .footer-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 30px;
        height: 2px;
        background: var(--military-red);
    }

.social-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .social-btn:hover {
        background: var(--military-red);
        color: var(--white);
        transform: translateY(-3px);
    }

.footer-newsletter input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

    .footer-newsletter input:focus {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--military-red);
        box-shadow: none;
        color: var(--white);
    }

/* ==========================================================================
   8. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   9. LEGAL PAGES
   ========================================================================== */
.legal-document-body {
    max-height: 65vh;
    overflow-y: auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==========================================================================
   10. ADMIN & ICONS UTILITIES
   ========================================================================== */
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 16px; height: 16px; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 24px; height: 24px; }
.icon-xxl { width: 48px; height: 48px; }

.icon-circle-lg {
    width: 48px;
    height: 48px;
}

.text-truncate-200 { max-width: 200px; }
.text-truncate-250 { max-width: 250px; }

/* ==========================================================================
   11. TABS & PILLS
   ========================================================================== */
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: var(--military-red) !important;
    color: var(--white) !important;
}
