:root {
    --primary: #0b4d9c;
    --primary-dark: #07356d;
    --primary-light: #e8f1fc;
    --accent: #cb1b50;
    --accent-hover: #b01543;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'WixMadeforDisplayRegular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.aluno-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.aluno-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aluno-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.aluno-brand img {
    height: 48px;
    width: auto;
}

.aluno-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.aluno-user-menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.aluno-user-info {
    text-align: right;
}

.aluno-user-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
}

.aluno-user-course {
    font-size: 12px;
    color: var(--gray);
}

.btn-logout {
    background: #fee2e2;
    color: var(--danger);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-logout:hover {
    background: #fecaca;
}

/* Container */
.aluno-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

/* Top Progress Card */
.overview-card {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.overview-card::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
}

.overview-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.overview-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.progress-container {
    margin-top: 15px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
}

.progress-bar-bg {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-bar-fill {
    background: #34d399;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.overview-stats {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .overview-stats {
        justify-content: flex-start;
    }
}

.stat-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 12px;
    opacity: 0.85;
    text-transform: uppercase;
}

/* Navigation Tabs / Actions */
.aluno-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    overflow-x: auto;
}

.aluno-tab-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    background: var(--white);
    border: 1px solid var(--border);
}

.aluno-tab-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.aluno-tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Disciplines Grid */
.disciplinas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.disciplina-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.disciplina-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.disciplina-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 15px;
}

.disciplina-card.concluida .disciplina-icon {
    background: #d1fae5;
    color: var(--success);
}

.disciplina-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.disciplina-desc {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 20px;
}

.disciplina-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
    width: fit-content;
}

.status-pendente {
    background: #f1f5f9;
    color: #475569;
}

.status-andamento {
    background: #fef3c7;
    color: #b45309;
}

.status-concluida {
    background: #d1fae5;
    color: #065f46;
}

.disciplina-actions {
    display: flex;
    gap: 10px;
}

.btn-estudar {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-estudar:hover {
    background: var(--primary-dark);
}

.btn-prova {
    flex: 1;
    background: var(--accent);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-prova:hover {
    background: var(--accent-hover);
}

/* Classroom / Aula Page */
.classroom-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .classroom-layout {
        grid-template-columns: 1fr;
    }
}

.video-frame-box {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
    box-shadow: var(--shadow);
}

.video-frame-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.classroom-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.classroom-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.study-notes ul {
    margin-left: 20px;
    margin-top: 10px;
    line-height: 1.8;
    color: #334155;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

/* Exam / Prova */
.exam-header {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 25px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.exam-timer {
    background: #fee2e2;
    color: var(--danger);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.question-box {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.question-number {
    font-weight: 800;
    font-size: 14px;
    color: var(--primary);
    text-transform: uppercase;
}

.question-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--dark);
    margin-bottom: 20px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.option-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.option-item.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    font-weight: 600;
}

.exam-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 20px 0;
}

/* Certificate Style */
.cert-container {
    max-width: 850px;
    margin: 40px auto;
    background: #fff;
    border: 10px solid var(--primary);
    border-image: linear-gradient(to right, #0b4d9c, #cb1b50) 10;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.cert-header {
    text-align: center;
    margin-bottom: 30px;
}

.cert-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 15px;
}

.cert-body {
    font-size: 17px;
    line-height: 2;
    text-align: justify;
    color: #1e293b;
    margin: 35px 0;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 50px;
}

.cert-sign {
    text-align: center;
    border-top: 1px solid #94a3b8;
    padding-top: 8px;
    font-size: 13px;
    width: 250px;
}

.cert-seal {
    text-align: center;
}

.cert-qr {
    width: 90px;
    height: 90px;
    background: #eee;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
