/* ===== E-LEARNING MODULE STYLES ===== */

/* ===== DASHBOARD STATS ===== */
.el-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.el-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}
.el-stat-card:hover { transform: translateY(-3px); }
.el-stat-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}
.el-stat-icon.blue { background: linear-gradient(135deg, #2B6CB0, #3498db); }
.el-stat-icon.green { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.el-stat-icon.orange { background: linear-gradient(135deg, #eda922, #f0b830); }
.el-stat-icon.purple { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.el-stat-icon.gold { background: linear-gradient(135deg, #d4a017, #f1c40f); }
.el-stat-icon.red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.el-stat-icon.cyan { background: linear-gradient(135deg, #00b4d8, #0077b6); }
.el-stat-icon.darkgreen { background: linear-gradient(135deg, #1e8449, #27ae60); }
.el-stat-info h4 { font-size: 1.4rem; margin-bottom: 2px; }
.el-stat-info p { color: #6d7a83; font-size: 0.8rem; margin: 0; }

/* ===== DASHBOARD SECTIONS ===== */
.el-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.el-dashboard-grid.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}
.el-mini-table { width: 100%; }
.el-mini-table td { padding: 10px 12px; border-bottom: 1px solid #f0f2f5; font-size: 0.88rem; }
.el-mini-table tr:last-child td { border-bottom: none; }
.el-progress-bar {
    height: 6px;
    background: #edf0f2;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}
.el-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #2B6CB0, #3498db);
    transition: width 0.3s;
}
.el-progress-fill.green { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.el-progress-fill.orange { background: linear-gradient(90deg, #eda922, #f0b830); }

/* ===== VIEW TOGGLE (List/Grid) ===== */
.el-view-toggle {
    display: flex;
    gap: 4px;
    background: #edf0f2;
    border-radius: 8px;
    padding: 3px;
}
.el-view-toggle button {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #6d7a83;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.el-view-toggle button.active {
    background: #fff;
    color: #2B6CB0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ===== COURSE CARDS GRID ===== */
.el-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.el-course-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.el-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.el-course-card-thumb {
    height: 160px;
    background: linear-gradient(135deg, #2B6CB0, #1E4D7B);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.el-course-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.el-course-card-thumb .el-no-thumb {
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
}
.el-course-card-thumb .el-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}
.el-course-card-body {
    padding: 16px;
}
.el-course-card-body h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.3;
}
.el-course-card-body .el-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: #6d7a83;
    margin-bottom: 10px;
}
.el-course-card-body .el-card-meta i { margin-right: 3px; }
.el-course-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.el-course-card-footer .el-card-actions {
    display: flex;
    gap: 6px;
}

/* ===== COURSE BUILDER ===== */
.el-builder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.el-builder-header h2 { font-size: 1.2rem; }
.el-module-list { margin-bottom: 20px; }
.el-module-item {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.el-module-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f7f9fb;
    border-bottom: 1px solid #edf0f2;
    cursor: grab;
}
.el-module-header:active { cursor: grabbing; }
.el-module-header .el-module-icon {
    color: #2B6CB0;
    font-size: 1.1rem;
}
.el-module-header .el-module-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}
.el-module-header .el-module-actions {
    display: flex;
    gap: 6px;
}
.el-module-header .el-module-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #6d7a83;
    font-size: 0.9rem;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}
.el-module-header .el-module-actions button:hover { color: #2B6CB0; background: rgba(43,108,176,0.1); }
.el-module-header .el-module-actions button.btn-delete:hover { color: #e74c3c; background: rgba(231,76,60,0.1); }
.el-lesson-list {
    padding: 8px 12px;
}
.el-lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #edf0f2;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #fff;
    cursor: grab;
    transition: box-shadow 0.2s;
}
.el-lesson-item:active { cursor: grabbing; }
.el-lesson-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.el-lesson-item .el-lesson-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}
.el-lesson-icon.type-editor { background: #2B6CB0; }
.el-lesson-icon.type-pdf { background: #e74c3c; }
.el-lesson-icon.type-word { background: #2B579A; }
.el-lesson-icon.type-powerpoint { background: #D24726; }
.el-lesson-icon.type-video { background: #8e44ad; }
.el-lesson-icon.type-audio { background: #27ae60; }
.el-lesson-icon.type-quiz { background: #f39c12; }
.el-lesson-item .el-lesson-title {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
}
.el-lesson-item .el-lesson-meta {
    font-size: 0.75rem;
    color: #6d7a83;
}
.el-lesson-item .el-lesson-actions {
    display: flex;
    gap: 6px;
}
.el-lesson-item .el-lesson-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #6d7a83;
    font-size: 0.85rem;
    padding: 3px 5px;
    border-radius: 4px;
    transition: all 0.2s;
}
.el-lesson-item .el-lesson-actions button:hover { color: #2B6CB0; }
.el-lesson-item .el-lesson-actions button.btn-delete:hover { color: #e74c3c; }
.el-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px dashed #c5c7c9;
    border-radius: 8px;
    color: #6d7a83;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
    margin: 6px 4px;
}
.el-add-btn:hover {
    border-color: #2B6CB0;
    color: #2B6CB0;
    background: rgba(43,108,176,0.05);
}

/* ===== QUIZ BUILDER ===== */
.el-quiz-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px;
    background: #f7f9fb;
    border-radius: 8px;
    margin-bottom: 20px;
}
.el-quiz-setting-item label {
    display: block;
    font-size: 0.78rem;
    color: #6d7a83;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.el-quiz-setting-item span {
    font-weight: 600;
    font-size: 0.95rem;
    color: #374146;
}
.el-question-item {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.el-question-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f7f9fb;
    border-bottom: 1px solid #edf0f2;
    cursor: grab;
}
.el-question-header .el-q-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2B6CB0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}
.el-question-header .el-q-info {
    flex: 1;
}
.el-question-header .el-q-info .el-q-type {
    font-size: 0.72rem;
    color: #6d7a83;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.el-question-header .el-q-info .el-q-text {
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 2px;
}
.el-question-header .el-q-points {
    font-size: 0.78rem;
    color: #2B6CB0;
    font-weight: 600;
    background: #eaf2f8;
    padding: 3px 10px;
    border-radius: 20px;
}
.el-question-body {
    padding: 14px 18px;
}
.el-option-list { list-style: none; padding: 0; margin: 0; }
.el-option-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 0.88rem;
}
.el-option-list li.correct {
    background: #e8f8f0;
    color: #27ae60;
}
.el-option-list li .el-opt-marker {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.el-option-list li.correct .el-opt-marker {
    border-color: #27ae60;
    background: #27ae60;
    color: #fff;
}

/* ===== MODAL ===== */
.el-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    animation: fadeIn 0.2s;
}
.el-modal-overlay.active { display: flex; align-items: center; justify-content: center; }
.el-modal {
    background: #fff;
    border-radius: 12px;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}
.el-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #edf0f2;
}
.el-modal-header h3 { font-size: 1.05rem; }
.el-modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #6d7a83;
    cursor: pointer;
    padding: 4px;
}
.el-modal-close:hover { color: #e74c3c; }
.el-modal-body { padding: 24px; }
.el-modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #edf0f2;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== LIVE ROOM ===== */
.el-live-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    height: calc(100vh - 160px);
}
.el-live-main {
    background: #000;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}
.el-live-main iframe { width: 100%; height: 100%; border: none; }
.el-live-main .el-live-placeholder {
    color: rgba(255,255,255,0.3);
    text-align: center;
}
.el-live-main .el-live-placeholder i { font-size: 4rem; margin-bottom: 10px; }
.el-live-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.el-live-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.el-live-panel-header {
    padding: 12px 16px;
    background: #f7f9fb;
    border-bottom: 1px solid #edf0f2;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.el-live-panel-body {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    max-height: 250px;
}
.el-participant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.85rem;
}
.el-participant-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ae60;
    flex-shrink: 0;
}
.el-chat-messages { display: flex; flex-direction: column; gap: 8px; }
.el-chat-msg {
    font-size: 0.83rem;
    padding: 6px 10px;
    background: #f7f9fb;
    border-radius: 8px;
}
.el-chat-msg .el-chat-author {
    font-weight: 600;
    color: #2B6CB0;
    font-size: 0.78rem;
}
.el-chat-msg .el-chat-time {
    font-size: 0.7rem;
    color: #6d7a83;
    float: right;
}
.el-chat-input {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid #edf0f2;
}
.el-chat-input input {
    flex: 1;
    height: 36px;
    font-size: 0.83rem;
}
.el-chat-input button {
    height: 36px;
    padding: 0 14px;
}
.el-live-controls {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.el-live-controls .btn { flex: 1; justify-content: center; font-size: 0.82rem; padding: 10px; }

/* ===== STUDENT PORTAL ===== */
.el-portal-wrapper {
    min-height: 100vh;
    background: #f0f2f5;
}
.el-portal-header {
    background: linear-gradient(135deg, #0d1d31, #1E4D7B);
    color: #fff;
    padding: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.el-portal-header .el-portal-logo {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}
.el-portal-header .el-portal-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.el-portal-header .el-portal-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    transition: color 0.2s;
}
.el-portal-header .el-portal-nav a:hover,
.el-portal-header .el-portal-nav a.active { color: #eda922; }
.el-portal-content { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }

/* Portal Welcome */
.el-welcome-banner {
    background: linear-gradient(135deg, #2B6CB0, #1E4D7B);
    color: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}
.el-welcome-banner h2 { color: #fff; font-size: 1.4rem; margin-bottom: 4px; }
.el-welcome-banner p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* Portal Stats */
.el-portal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}
.el-portal-stat {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.el-portal-stat i { font-size: 1.5rem; color: #2B6CB0; margin-bottom: 6px; }
.el-portal-stat .el-ps-value { font-size: 1.5rem; font-weight: 700; color: #0d1d31; }
.el-portal-stat .el-ps-label { font-size: 0.78rem; color: #6d7a83; }

/* Course Viewer */
.el-viewer-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    min-height: calc(100vh - 140px);
}
.el-viewer-sidebar {
    background: #f7f9fb;
    border-right: 1px solid #edf0f2;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}
.el-viewer-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #edf0f2;
}
.el-viewer-sidebar-header h3 { font-size: 0.95rem; margin-bottom: 4px; }
.el-viewer-progress-bar {
    height: 4px;
    background: #edf0f2;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}
.el-viewer-progress-bar .fill {
    height: 100%;
    background: #27ae60;
    border-radius: 2px;
    transition: width 0.3s;
}
.el-viewer-module { border-bottom: 1px solid #edf0f2; }
.el-viewer-module-title {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #374146;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.el-viewer-module-title i { font-size: 0.75rem; color: #6d7a83; transition: transform 0.2s; }
.el-viewer-module-title.open i { transform: rotate(90deg); }
.el-viewer-lesson-list { padding: 0 8px 8px; }
.el-viewer-lesson-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s;
    color: #374146;
}
.el-viewer-lesson-item:hover { background: #edf0f2; }
.el-viewer-lesson-item.active { background: #eaf2f8; color: #2B6CB0; font-weight: 600; }
.el-viewer-lesson-item.completed .el-viewer-check { color: #27ae60; }
.el-viewer-check { width: 18px; font-size: 0.8rem; color: #d1d5db; flex-shrink: 0; }
.el-viewer-main {
    padding: 30px 40px;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}
.el-viewer-main h1 { font-size: 1.4rem; margin-bottom: 20px; }
.el-viewer-content { line-height: 1.8; font-size: 0.95rem; }
.el-viewer-content img { max-width: 100%; border-radius: 8px; margin: 15px 0; }
.el-viewer-content h2 { margin-top: 25px; font-size: 1.2rem; }
.el-viewer-content h3 { margin-top: 20px; font-size: 1.05rem; }
.el-viewer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #edf0f2;
}
.el-viewer-resources {
    margin-top: 25px;
    padding: 16px;
    background: #f7f9fb;
    border-radius: 8px;
}
.el-viewer-resources h4 { font-size: 0.9rem; margin-bottom: 10px; }
.el-resource-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.el-resource-item:hover { background: #eaf2f8; }
.el-resource-item i { color: #2B6CB0; }

/* ===== QUIZ INTERFACE (Student) ===== */
.el-quiz-container {
    max-width: 800px;
    margin: 0 auto;
}
.el-quiz-header {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.el-quiz-timer {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
    display: flex;
    align-items: center;
    gap: 8px;
}
.el-quiz-question-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.el-quiz-question-card .el-qq-number {
    font-size: 0.78rem;
    color: #6d7a83;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.el-quiz-question-card .el-qq-text {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.5;
}
.el-quiz-options { list-style: none; padding: 0; margin: 0; }
.el-quiz-options li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #edf0f2;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.el-quiz-options li:hover { border-color: #2B6CB0; background: #eaf2f8; }
.el-quiz-options li.selected { border-color: #2B6CB0; background: #eaf2f8; }
.el-quiz-options li.correct { border-color: #27ae60; background: #e8f8f0; }
.el-quiz-options li.incorrect { border-color: #e74c3c; background: #fdecec; }
.el-quiz-options li .el-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.el-quiz-options li.selected .el-radio {
    border-color: #2B6CB0;
    background: #2B6CB0;
}
.el-quiz-options li.selected .el-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

/* ===== CERTIFICATE ===== */
.el-certificate-preview {
    background: #fff;
    border: 3px solid #d4a017;
    border-radius: 4px;
    padding: 50px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.el-certificate-preview .el-cert-border {
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 1px solid #d4a017;
}
.el-certificate-preview h1 { font-size: 2rem; color: #0d1d31; margin-bottom: 5px; }
.el-certificate-preview .el-cert-subtitle { color: #6d7a83; font-size: 0.9rem; margin-bottom: 30px; }
.el-certificate-preview .el-cert-name { font-size: 1.8rem; color: #2B6CB0; font-family: 'Raleway', serif; margin: 20px 0; }
.el-certificate-preview .el-cert-course { font-size: 1.1rem; margin-bottom: 30px; }
.el-certificate-preview .el-cert-footer { display: flex; justify-content: space-around; margin-top: 40px; }

/* ===== CATEGORY CARDS ===== */
.el-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.el-category-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s;
}
.el-category-card:hover { transform: translateY(-2px); }
.el-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}
.el-category-info { flex: 1; }
.el-category-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.el-category-info small { color: #6d7a83; font-size: 0.8rem; }

/* ===== LEARNER VIEW ===== */
.el-learner-profile {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}
.el-learner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2B6CB0, #3498db);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    flex-shrink: 0;
}
.el-learner-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.el-learner-info p { color: #6d7a83; font-size: 0.88rem; margin: 0; }

/* ===== DISCUSSION / FORUM ===== */
.el-discussion-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid #f0f2f5;
}
.el-discussion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #edf0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6d7a83;
    font-size: 1rem;
    flex-shrink: 0;
}
.el-discussion-content { flex: 1; }
.el-discussion-content .el-disc-meta {
    font-size: 0.78rem;
    color: #6d7a83;
    margin-bottom: 6px;
}
.el-discussion-content .el-disc-meta strong { color: #374146; }
.el-discussion-content p { font-size: 0.9rem; line-height: 1.5; margin: 0; }
.el-discussion-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.el-discussion-actions button {
    background: none;
    border: none;
    font-size: 0.78rem;
    color: #6d7a83;
    cursor: pointer;
}
.el-discussion-actions button:hover { color: #2B6CB0; }

/* ===== SIDEBAR SUBMENU (Collapsible) ===== */
.sidebar-nav .nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.sidebar-nav .nav-submenu.open { max-height: 500px; }
.sidebar-nav .nav-submenu a {
    padding-left: 52px;
    font-size: 0.85rem;
}
.sidebar-nav .nav-parent {
    display: flex;
    align-items: center;
    padding: 11px 20px;
    color: rgba(255,255,255,0.8);
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-size: 0.92rem;
    cursor: pointer;
}
.sidebar-nav .nav-parent:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: #eda922;
}
.sidebar-nav .nav-parent.active {
    background: rgba(237,169,34,0.12);
    color: #eda922;
    border-left-color: #eda922;
}
.sidebar-nav .nav-parent i.fa-chevron-down {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.3s;
}
.sidebar-nav .nav-parent.open i.fa-chevron-down { transform: rotate(180deg); }

/* ===== EMPTY STATE ===== */
.el-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #6d7a83;
}
.el-empty-state i { font-size: 3rem; color: #d1d5db; margin-bottom: 12px; }
.el-empty-state p { font-size: 0.95rem; margin-bottom: 15px; }

/* ===== ANALYTICS CHARTS (CSS-only bars) ===== */
.el-chart-bar-container { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 10px 0; }
.el-chart-bar {
    flex: 1;
    background: linear-gradient(180deg, #3498db, #2B6CB0);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    position: relative;
    transition: height 0.3s;
}
.el-chart-bar:hover { opacity: 0.85; }
.el-chart-bar .el-bar-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: #6d7a83;
    white-space: nowrap;
}
.el-chart-bar .el-bar-value {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #374146;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .el-dashboard-grid { grid-template-columns: 1fr; }
    .el-dashboard-grid.three-col { grid-template-columns: 1fr; }
    .el-live-layout { grid-template-columns: 1fr; }
    .el-viewer-layout { grid-template-columns: 1fr; }
    .el-viewer-sidebar { max-height: none; border-right: none; border-bottom: 1px solid #edf0f2; }
}
@media (max-width: 768px) {
    .el-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .el-courses-grid { grid-template-columns: 1fr; }
    .el-portal-stats { grid-template-columns: repeat(2, 1fr); }
    .el-viewer-main { padding: 20px; }
}
