/**
 * EduSmart E-Learning System - Main CSS Style
 * Modern, Responsive, and Clean Dashboard & Classroom Interface
 */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #475569;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --sidebar-bg: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-active: #3b82f6;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout Wrapper */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.app-sidebar {
    width: 270px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-brand {
    padding: 24px 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-menu {
    padding: 20px 12px;
    list-style: none;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 12px 16px 6px;
}

.sidebar-item {
    margin-bottom: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link i {
    font-size: 1.15rem;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-link.active {
    color: #ffffff;
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Main Content Area */
.app-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bg-light);
}

.app-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-content {
    padding: 30px 28px;
    flex-grow: 1;
}

/* Custom Cards */
.card-stat {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Classroom / Ruang Belajar Player */
.classroom-container {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.classroom-player {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.classroom-player iframe, .classroom-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.classroom-syllabus {
    max-height: 650px;
    overflow-y: auto;
}

.syllabus-item {
    border-left: 3px solid transparent;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.syllabus-item:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.syllabus-item.active {
    background-color: #eff6ff;
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* CBT Quiz Exam Room */
.timer-badge {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border-radius: 30px;
}

.question-box {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.option-label:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.option-label input[type="radio"]:checked + .option-text {
    font-weight: 600;
    color: var(--primary-color);
}

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

/* Piagam Sertifikat Cetak */
@media print {
    body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .no-print {
        display: none !important;
    }
    .certificate-card {
        box-shadow: none !important;
        border: 4px solid #1e293b !important;
        page-break-inside: avoid;
    }
}
