/* ============================================
   IFC CARREIRAS POLICIAIS - GLOBAL STYLES
   Tema Operacional Dark
   ============================================ */

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: rgba(76, 85, 102, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #182d2d;
    color: #e5e7eb;
    font-family: 'Inter', system-ui, sans-serif;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Black Ops One', system-ui, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

a {
    transition: color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

button {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(76, 85, 102, 0.4);
    background-color: rgba(24, 45, 45, 0.95);
    backdrop-filter: blur(10px);
}

header .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.logo-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #EAB308;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .brand {
    font-family: 'Black Ops One', system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #e5e7eb;
}

.logo-text .tagline {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
}

header nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

header nav a {
    color: #EAB308;
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #fcd34d;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn-primary {
    background-color: #EAB308;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(234, 179, 8, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: rgba(234, 179, 8, 0.9);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 700;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(234, 179, 8, 0.1);
}

.btn-logout {
    background-color: #EAB308;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(234, 179, 8, 0.3);
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: rgba(234, 179, 8, 0.9);
}

.btn-submit {
    width: 100%;
    background-color: #EAB308;
    color: #000;
    font-family: 'Black Ops One', system-ui, sans-serif;
    font-weight: 900;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(234, 179, 8, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: rgba(234, 179, 8, 0.9);
    transform: translateY(-2px);
}

.btn-logout {
    padding: 0.5rem 1rem;
}

.back-btn {
    background-color: rgba(234, 179, 8, 0.1);
    color: #EAB308;
    border: 1px solid rgba(234, 179, 8, 0.3);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: rgba(234, 179, 8, 0.2);
}

.nav-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(234, 179, 8, 0.3);
    background-color: transparent;
    color: #EAB308;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: rgba(234, 179, 8, 0.1);
}

.nav-btn.primary {
    background-color: #EAB308;
    color: #000;
    border-color: #EAB308;
}

.nav-btn.primary:hover {
    background-color: rgba(234, 179, 8, 0.9);
}

.pdf-download {
    width: 100%;
    background-color: #EAB308;
    color: #000;
    font-weight: 700;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pdf-download:hover {
    background-color: rgba(234, 179, 8, 0.9);
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.hero h1 .highlight {
    background: linear-gradient(to right, #EAB308, rgba(234, 179, 8, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 42rem;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats {
    padding: 4rem 0;
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(76, 85, 102, 0.4);
    border-bottom: 1px solid rgba(76, 85, 102, 0.4);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Black Ops One', system-ui, sans-serif;
    font-size: 2.25rem;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #EAB308;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 6rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(234, 179, 8, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(234, 179, 8, 0.4);
    background-color: rgba(30, 41, 59, 0.7);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    padding: 6rem 0;
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(76, 85, 102, 0.4);
    border-bottom: 1px solid rgba(76, 85, 102, 0.4);
    text-align: center;
}

.cta h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

.cta p {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 42rem;
    margin: 0 auto 2rem;
}

/* ============================================
   FORMULÁRIOS
   ============================================ */

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.form-container {
    width: 100%;
    max-width: 32rem;
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 0.5rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
    width: 100%;
    background-color: rgba(107, 114, 128, 0.3);
    border: 1px solid rgba(75, 85, 99, 0.5);
    color: #e5e7eb;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group select::placeholder {
    color: rgba(107, 114, 128, 0.5);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #EAB308;
    background-color: rgba(107, 114, 128, 0.5);
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.form-footer a {
    color: #EAB308;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #fcd34d;
}

.info-box {
    background-color: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.subject-card {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(234, 179, 8, 0.1);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subject-card:hover {
    border-color: rgba(234, 179, 8, 0.4);
    background-color: rgba(30, 41, 59, 0.7);
    transform: translateY(-8px);
}

.subject-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subject-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.subject-card p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(107, 114, 128, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: #EAB308;
    transition: width 0.3s ease;
}

.subject-stats {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   AULAS
   ============================================ */

.lessons-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.lessons-header h1 {
    font-size: 2rem;
}

.lessons-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.lesson-item {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(234, 179, 8, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lesson-item:hover {
    border-color: rgba(234, 179, 8, 0.4);
    background-color: rgba(30, 41, 59, 0.7);
}

.lesson-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(234, 179, 8, 0.1);
    border: 2px solid rgba(234, 179, 8, 0.3);
    border-radius: 50%;
    font-weight: 700;
    color: #EAB308;
    flex-shrink: 0;
}

.lesson-info {
    flex: 1;
}

.lesson-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.lesson-info p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.lesson-duration {
    color: #9ca3af;
    font-size: 0.875rem;
    white-space: nowrap;
}

.lesson-professor {
    color: #9ca3af;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* ============================================
   PLAYER
   ============================================ */

.player-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.player-header h1 {
    font-size: 1.5rem;
}

.player-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-wrapper {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(234, 179, 8, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

.sidebar {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(234, 179, 8, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
    position: sticky;
    top: 5rem;
}

.sidebar h3 {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: #EAB308;
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.playlist-item {
    background-color: rgba(107, 114, 128, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.1);
    border-radius: 0.375rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.playlist-item:hover {
    background-color: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.3);
}

.playlist-item.active {
    background-color: rgba(234, 179, 8, 0.2);
    border-color: #EAB308;
    color: #EAB308;
}

.pdf-panel {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(234, 179, 8, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.pdf-panel h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #EAB308;
}

.pdf-preview {
    flex: 1;
    background-color: rgba(107, 114, 128, 0.2);
    border: 2px dashed rgba(234, 179, 8, 0.2);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    min-height: 200px;
    text-align: center;
    color: #9ca3af;
}

.pdf-preview svg {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.lesson-details {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(234, 179, 8, 0.1);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.lesson-details h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.lesson-description {
    color: #9ca3af;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.lesson-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(234, 179, 8, 0.1);
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.meta-value {
    color: #EAB308;
    font-weight: 600;
}

.navigation-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    border-top: 1px solid rgba(76, 85, 102, 0.4);
    background-color: rgba(24, 45, 45, 0.95);
    padding: 3rem 1rem;
    margin-top: 4rem;
}

footer .container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

footer h4 {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #EAB308;
}

footer p, footer a {
    color: #9ca3af;
    font-size: 0.875rem;
}

footer a:hover {
    color: #e5e7eb;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(76, 85, 102, 0.4);
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .player-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    header nav {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .lessons-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .lessons-header h1 {
        font-size: 1.5rem;
    }

    .lesson-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .lesson-duration,
    .lesson-professor {
        width: 100%;
    }

    .player-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .player-header h1 {
        font-size: 1.25rem;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .lesson-meta {
        grid-template-columns: 1fr 1fr;
    }

    .form-container {
        margin: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-logout {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .form-container {
        margin: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats .container {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   SCROLLBAR CUSTOMIZATION
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(234, 179, 8, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(234, 179, 8, 0.5);
}
