:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #1e3a5f 0%, #0d1b2a 100%);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar .nav-link i {
    width: 24px;
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 1.25rem;
}

.training-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.training-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.status-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.status-complete {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-incomplete {
    background-color: #f8d7da;
    color: #842029;
}

.material-item {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

.material-item:hover {
    background: #f8f9fa;
}

.material-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 1.5rem;
}

.material-icon.pdf { background: #fee2e2; color: #dc2626; }
.material-icon.video { background: #dbeafe; color: #2563eb; }
.material-icon.youtube { background: #fef3c7; color: #d97706; }
.material-icon.link { background: #d1fae5; color: #059669; }

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-option {
    display: block;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background: #e7f1ff;
}

.quiz-option input[type="radio"] {
    display: none;
}

.progress-bar {
    transition: width 0.3s ease;
}

.stat-card {
    border-left: 4px solid;
    padding-left: 1rem;
}

.stat-card.primary { border-color: var(--primary-color); }
.stat-card.success { border-color: var(--success-color); }
.stat-card.warning { border-color: var(--warning-color); }
.stat-card.danger { border-color: var(--danger-color); }

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.pdf-viewer {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 0.5rem;
}

.video-player {
    width: 100%;
    max-height: 500px;
    border-radius: 0.5rem;
}

.certificate-preview {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .pdf-viewer {
        height: 400px;
    }
}
