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

:root {
    /* Core palette */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #8b5cf6;
    --warning: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Aliases used in templates */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;

    /* Surfaces */
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --surface: rgba(255, 255, 255, 0.06);
    --surface-hover: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(15, 23, 42, 0.8);
    --border: rgba(255, 255, 255, 0.12);
    --border-color: rgba(255, 255, 255, 0.12);

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Header ─── */
header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background-color: rgba(15, 23, 42, 0.92);
}

header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
}

.nav-links a i {
    color: #6366f1;
    font-size: 0.85rem;
}

.nav-links a[href*="logout"] {
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    margin-left: 0.5rem;
}
.nav-links a[href*="logout"]:hover {
    background: rgba(239, 68, 68, 0.1);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: 0.2s;
}
a:hover { color: var(--primary-hover); }

/* ─── Main layout ─── */
main.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
    width: 100%;
}

/* ─── Page header ─── */
main h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* ─── Cards ─── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─── Forms ─── */
.form-group {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label,
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Style all inputs/selects/textareas inside .form-group automatically */
.form-group input,
.form-group select,
.form-group textarea,
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    appearance: auto;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group select option {
    background: #1e1b4b;
    color: var(--text-primary);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.25);
}

.btn-success {
    background: var(--success);
    color: #fff;
    border: none;
}
.btn-success:hover {
    background: #059669;
    color: #fff;
    transform: translateY(-1px);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* ─── Tables ─── */
.table-container {
    overflow-x: auto;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead tr {
    border-bottom: 1px solid var(--border);
}

table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
    color: var(--text-primary);
    vertical-align: middle;
}

table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

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

/* ─── Status badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.25);
}

.badge-progress {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99,102,241,0.25);
}

.badge-completed {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,0.25);
}

.badge-graded {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.25);
}

/* ─── Alerts ─── */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.2);
}

/* ─── Utility ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-gap {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1.5rem; }

.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.page-header-text h1 { margin-bottom: 0.25rem; }
.page-header-text p { color: var(--text-muted); font-size: 0.9rem; }

/* Form max-width wrappers */
.form-card {
    max-width: 680px;
}

/* Stat number inside card */
.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0.5rem 0 1rem;
    line-height: 1;
}

/* Review sections */
.answer-box {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.answer-box.correct {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.2);
    color: #6ee7b7;
}

/* Radio/checkbox custom look */
.option-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.option-item:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
}

.option-item input[type="radio"] {
    width: auto;
    accent-color: var(--primary);
}

/* Footer */
footer {
    background: rgba(15,23,42,0.8);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-top: auto;
}

footer .container {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ─── Auth layout ─── */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-msg {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    main.container { padding: 1.5rem 1rem 3rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; }
    .flex-between { flex-direction: column; align-items: flex-start; gap: 1rem; }
}


/* =========================================
   NEW LANDING PAGE STYLES (Stacked Layout)
   ========================================= */

/* General Container Fixes */
.landing-container {
    display: block;
    background: white;
}

/* Override flex */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 1. HERO SECTION (Blue) */
.hero-section {
    background-color: #007bff;
    /* Bright Blue */
    background: linear-gradient(135deg, #007bff 0%, #0062cc 100%);
    padding: 6rem 0;
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background: white;
    color: #007bff;
}

/* Login Card inside Hero */
.hero-login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: #1e293b;
    text-align: center;
}

.hero-login-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.login-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-group-minimal {
    position: relative;
    margin-bottom: 1rem;
}

.input-icon-minimal {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    font-size: 0.9rem;
}

.form-control-minimal {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #334155;
    transition: 0.3s;
}

.form-control-minimal:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-primary-full {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-full:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.login-footer-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
}

/* 2. FEATURES SECTION (White) */
.features-section {
    background: white;
    padding: 6rem 0;
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    color: #64748b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-item {
    padding: 2rem;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem auto;
}

.icon-blue {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.feature-item p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* 3. LGPD SECTION (Light Gray) */
.lgpd-section {
    background: #f1f5f9;
    padding: 5rem 0;
}

.lgpd-box {
    background: #e2e8f0;
    /* Slightly darker gray box */
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.lgpd-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.lgpd-box h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.lgpd-box p {
    color: #475569;
    margin-bottom: 2rem;
}

.lgpd-checks {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.check-item {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

/* 4. FOOTER/ACCESS SECTION (Dark) */
.footer-section {
    background: #1e293b;
    /* Dark Slate */
    padding: 5rem 0;
    color: white;
    text-align: center;
}

.footer-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-subtitle {
    color: #94a3b8;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    color: #1e293b;
    padding: 3rem;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-header a {
    color: #007bff;
    font-weight: 700;
    font-size: 1.2rem;
}

.info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: left;
    display: inline-block;
}

.info-list {
    list-style: none;
    margin-top: 0.5rem;
    color: #475569;
}

.warning-text {
    font-size: 0.85rem;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    display: inline-block;
}


/* Responsive Adjustments */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .lgpd-checks {
        flex-direction: column;
        gap: 1rem;
    }
}