:root {
    --primary: #6366f1;
    --primary-dark: #fafafa;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark);
}

/* Auth Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}



@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    padding: 30px;
    min-width: 70%;
}
.auth-modal {
    max-width: 450px!important;
    min-width: auto;
    width: 90%;
    margin: 0;
    animation: slideUp 0.4s ease;
}
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--light);
}

.auth-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    margin-bottom: -2px;
}

.auth-form {
    padding: 32px;
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

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

.btn-block {
    width: 100%;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(225deg, var(--primary), #d76767);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--gray);
    color: white;
}

.btn-success {
    background: var(--secondary);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--white);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--light);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo i {
    font-size: 28px;
    background: linear-gradient(142deg, #6385f1, #ffe4e4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 16px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray);
}

.sidebar-nav li:hover {
    background: var(--light);
    color: var(--primary);
}

.sidebar-nav li.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.sidebar-nav li i {
    width: 20px;
    font-size: 18px;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info i {
    font-size: 32px;
    color: var(--primary);
}

.user-info span {
    font-weight: 500;
}

.logout-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 24px 32px;
    min-height: 100vh;
}

.content-header {
    margin-bottom: 32px;
}

.content-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(102deg, #e9e9e9, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-icon.primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-info h3 {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
}

/* Topic Cards */
.topics-grid {
    display: flex;
    flex-direction: column;
    margin-top: 24px;
}

.topic-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.topic-header {
    padding: 20px;
    background: linear-gradient(135deg, #2525f0, #b3cbb9);
    color: white;
}

.topic-header h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.topic-header p {
    font-size: 13px;
    opacity: 0.9;
}

.topic-content {
    padding: 20px;
}

.lecture-item,
.test-item {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lecture-item:hover,
.test-item:hover {
    background: var(--light);
    transform: translateX(5px);
}

.lecture-item i,
.test-item i {
    width: 24px;
    color: var(--primary);
}

.lecture-info,
.test-info {
    flex: 1;
}

.lecture-title,
.test-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.lecture-meta,
.test-meta {
    font-size: 12px;
    color: var(--gray);
}

.progress-badge {
    background: var(--secondary);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Test Taking Interface */
.question-container {
    background: var(--light);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.option-item:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.option-item.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.option-item.selected .option-radio {
    border-color: var(--primary);
}

.option-item.selected .option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
}

.test-timer {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    font-size: 18px;
    z-index: 200;
}

.test-timer.warning {
    background: var(--danger);
    color: white;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Result Cards */
.result-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
}

.result-score {
    font-size: 24px;
    font-weight: 700;
}

.result-score.passed {
    color: var(--secondary);
}

.result-score.failed {
    color: var(--danger);
}

.result-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--light);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
}

/* Tables */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    overflow-x: auto;
    box-shadow: var(--shadow);
}

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

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--light);
}

.data-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--gray);
    font-size: 13px;
}

.data-table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-easy {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.badge-medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-hard {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-passed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.badge-failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 60px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    background: var(--dark);
    color: white;
    border-radius: var(--radius-sm);
    z-index: 1100;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.success {
    background: var(--secondary);
}

.toast.error {
    background: var(--danger);
}

.toast.info {
    background: var(--info);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar .logo span,
    .sidebar-nav li span,
    .user-info span {
        display: none;
    }

    .sidebar-nav li {
        justify-content: center;
    }

    .sidebar-nav li i {
        font-size: 20px;
    }

    .main-content {
        margin-left: 70px;
        padding: 16px;
    }

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

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

    .content-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .auth-form {
        padding: 24px;
    }
}

/* Admin Panel Styles */
.admin-panel {
    padding: 20px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-tab-btn {
    padding: 10px 20px;
    background: var(--light);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

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

.modal-xl {
    max-width: 1200px;
    width: 95%;
}

.csv-upload {
    border: 2px dashed var(--gray);
    padding: 40px;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.csv-upload:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Добавьте в конец frontend/css/style.css */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    background: #1f2937;
    color: white;
    border-radius: 8px;
    z-index: 1100;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.info {
    background: #3b82f6;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Бейджи */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-passed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Admin panel styles */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--light);
    padding-bottom: 12px;
}

.admin-tab-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.admin-tab-btn:hover {
    background: var(--light);
}

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

/* Form row for two columns */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Question card */
.question-card {
    background: var(--white);
    border: 1px solid var(--light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.question-title {
    font-size: 16px;
    line-height: 1.4;
}

.question-actions {
    display: flex;
    gap: 8px;
}

.answers-list {
    padding: 16px;
}

.answer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: #f9fafb;
}

.answer-item.correct-answer {
    background: #ecfdf5;
    border-left: 3px solid var(--success);
}

.answer-marker {
    font-weight: bold;
    width: 24px;
}

/* Answer row */
.answer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.answer-row .answer-text {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.correct-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
}

/* Lecture preview */
.lecture-preview {
    max-width: 300px;
    font-size: 12px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Attachments list */
.attachments-list {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-bottom: 1px solid var(--light);
}

.attachment-item:last-child {
    border-bottom: none;
}

/* Form hint */
.form-hint {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}

/* CSV upload */
.csv-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.csv-upload:hover {
    border-color: var(--primary);
    background: var(--light);
}

/* Modal XL */
.modal-xl {
    max-width: 90%;
    width: 1200px;
}

/* Badge variants */
.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-success {
    background: var(--success);
    background-color: green;
    color: #ffffff;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-info {
    background: var(--info);
    color: white;
}

#createTestForm {
    padding: 50px;
}

#createLectureForm {
    padding: 50px;
}

#createTopicForm {
    padding: 50px;
}

.close {
    position: absolute;
    top: 0px;
    right: 20px;
    font-size: 37px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ef4444;
}
.modal-header
{
    padding: 20px;
}

/* Question Card */
.question-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.question-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.question-title {
    font-size: 16px;
    line-height: 1.4;
    flex: 1;
}

.question-actions {
    display: flex;
    gap: 8px;
}

.answers-list {
    padding: 16px;
}

.answer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: #f9fafb;
}

.answer-item.correct-answer {
    background: #ecfdf5;
    border-left: 3px solid var(--success);
}

.answer-marker {
    font-weight: bold;
    width: 24px;
    font-size: 16px;
}

/* Answer Row */
.answer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.answer-row .answer-text {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.answer-row .answer-text:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.correct-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Badge variants */
.badge-info {
    background: #3b82f6;
    color: white;
}

/* Modal Footer */
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
/* Lecture Viewer Modal */
.lecture-viewer-modal .lecture-modal-content {
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.lecture-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.lecture-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lecture-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.lecture-timer i {
    font-size: 14px;
}

.lecture-timer #timerDisplay {
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 1px;
}

/* Progress Bar */
.lecture-progress-bar {
    background: var(--light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.progress-label {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.progress-bar-container {
    background: #e5e7eb;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #10b981, #059669);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
}

.progress-stats i {
    margin-right: 4px;
}

/* Lecture Content */
.lecture-content-wrapper {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.lecture-content {
    padding: 32px;
    line-height: 1.8;
    font-size: 16px;
    color: #374151;
}

.lecture-content h1 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #1f2937;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
}

.lecture-content h2 {
    font-size: 24px;
    margin-top: 28px;
    margin-bottom: 16px;
    color: #1f2937;
}

.lecture-content h3 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #374151;
}

.lecture-content p {
    margin-bottom: 16px;
}

.lecture-content ul, .lecture-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.lecture-content li {
    margin-bottom: 8px;
}

.lecture-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: #f3f4f6;
    font-style: italic;
    color: #4b5563;
}

.lecture-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.lecture-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.lecture-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.lecture-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.lecture-content th, .lecture-content td {
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
}

.lecture-content th {
    background: #f3f4f6;
    font-weight: 600;
}

.lecture-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.no-content {
    text-align: center;
    padding: 60px;
    color: var(--gray);
}

/* Attachments */
.lecture-attachments {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.lecture-attachments h4 {
    margin-bottom: 12px;
    font-size: 16px;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachment-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f9fafb;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.attachment-link:hover {
    background: var(--light);
    transform: translateX(4px);
}

.attachment-link i:first-child {
    font-size: 20px;
    color: var(--primary);
}

.attachment-link span {
    flex: 1;
}

.attachment-link i:last-child {
    opacity: 0.5;
}

/* Lecture Item */
.lecture-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.lecture-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.lecture-icon i {
    font-size: 24px;
    color: var(--primary);
}

.lecture-icon i.fa-check-circle {
    color: var(--success);
}

.lecture-info {
    flex: 1;
}

.lecture-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.lecture-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray);
}

.lecture-meta i {
    margin-right: 4px;
}

.badge-success-small {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.lecture-arrow {
    color: var(--gray);
}

/* Test Item */
.test-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.test-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.test-item > i:first-child {
    font-size: 24px;
    color: #8b5cf6;
}

.test-info {
    flex: 1;
}

.test-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.test-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray);
}

/* Badge variants */
.badge-easy {
    background: #10b981;
    color: white;
}

.badge-medium {
    background: #f59e0b;
    color: white;
}

.badge-hard {
    background: #ef4444;
    color: white;
}
.modal-body
{
    max-height: 50vh;
    overflow-y: auto;
}
/* ============ УЛУЧШЕННАЯ АДМИН-ПАНЕЛЬ ============ */

/* Кнопка открытия админ-панели */
.admin-panel-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: all 0.3s;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-panel-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Модальное окно админ-панели на весь экран */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.admin-modal-header {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.admin-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.admin-modal-header .close {
    font-size: 32px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.admin-modal-header .close:hover {
    opacity: 1;
}

.admin-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--light);
}

/* Улучшенные табы */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    position: sticky;
    top: 0;
    background: var(--light);
    padding: 8px 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

.admin-tab-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-tab-btn i {
    font-size: 14px;
}

.admin-tab-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Контент табов с фиксированной минимальной высотой */
.admin-tab-content {
    min-height: 500px;
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

/* Карточки в админ-панели */
.admin-card {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.admin-card:hover {
    box-shadow: var(--shadow);
}

.admin-card-header {
    padding: 16px 20px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-card-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-body {
    padding: 20px;
}

/* Улучшенные таблицы */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--gray);
    font-size: 13px;
    position: sticky;
    top: 0;
}

.admin-table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

/* Компактные кнопки */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-icon {
    padding: 6px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

/* Формы в админ-панели */
.admin-form {
    max-width: 600px;
    margin: 0 auto;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

/* Кнопка возврата */
.admin-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.admin-back-btn:hover {
    background: var(--light);
    transform: translateX(-4px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .admin-modal-body {
        padding: 16px;
    }

    .admin-tab-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .admin-tab-content {
        padding: 16px;
        overflow-x: auto;
    }

    .admin-table {
        font-size: 12px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 12px;
    }

    .admin-panel-button {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}
.btn-info
{
    background-color: #99cbf6;
}
/* ============ АДМИН-ПАНЕЛЬ КАК ОСНОВНОЙ КОНТЕНТ ============ */

.admin-main-container {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-main-header {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    padding: 24px 28px;
}

.admin-main-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
}

.admin-main-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.admin-main-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 16px 20px 0 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.admin-main-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
}

.admin-main-tab i {
    font-size: 14px;
}

.admin-main-tab:hover {
    background: var(--light);
    color: var(--primary);
}

.admin-main-tab.active {
    background: var(--primary);
    color: white;
}

.admin-main-content {
    padding: 24px;
    min-height: 500px;
    background: var(--white);
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-toolbar h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    background: #687de996;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

.btn-icon:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.btn-icon.btn-danger:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-icon.btn-info:hover {
    background: var(--info);
    color: white;
    border-color: var(--info);
}

/* Профиль */
.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 0 auto;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    padding: 40px;
    text-align: center;
}

.profile-header h2 {
    margin: 16px 0 8px;
}

.profile-header p {
    opacity: 0.9;
}

.profile-info {
    padding: 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--gray);
}

.info-value {
    color: var(--dark);
}

/* Адаптивность */
@media (max-width: 768px) {
    .admin-main-tabs {
        padding: 12px 12px 0 12px;
    }

    .admin-main-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .admin-main-content {
        padding: 16px;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ============ ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ ============ */

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

.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-header {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    padding: 40px;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.profile-avatar i {
    font-size: 50px;
}

.profile-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.profile-email {
    margin: 0 0 16px;
    opacity: 0.9;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--light);
}

.profile-tab {
    flex: 1;
    padding: 14px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray);
}

.profile-tab:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
}

.profile-tab.active {
    background: var(--white);
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.profile-tab-content {
    display: none;
    padding: 30px;
}

.profile-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

/* User info in sidebar */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info i {
    font-size: 36px;
    color: var(--primary);
}

.user-info-details {
    display: flex;
    flex-direction: column;
}

.user-info-details span {
    font-weight: 500;
    font-size: 14px;
}

.user-info-details small {
    font-size: 10px;
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-header {
        padding: 24px;
    }

    .profile-tab-content {
        padding: 20px;
    }

    .profile-tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
    }

    .profile-avatar i {
        font-size: 35px;
    }

    .profile-header h2 {
        font-size: 18px;
    }
}
/* Positions checkboxes */
.positions-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: var(--light);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label .badge {
    font-size: 10px;
    padding: 2px 8px;
}

/* ============ ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ ============ */

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

.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-header {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    padding: 40px;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.profile-avatar i {
    font-size: 50px;
}

.profile-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.profile-email {
    margin: 0 0 16px;
    opacity: 0.9;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--light);
}

.profile-tab {
    flex: 1;
    padding: 14px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray);
}

.profile-tab:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
}

.profile-tab.active {
    background: var(--white);
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.profile-tab-content {
    display: none;
    padding: 30px;
}

.profile-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

/* Positions checkboxes */
.positions-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    background: var(--light);
}

.checkbox-label:hover {
    background: rgba(99, 102, 241, 0.1);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
    font-weight: 500;
}

.checkbox-label .position-desc {
    display: block;
    font-size: 11px;
    color: var(--gray);
    font-weight: normal;
    margin-top: 2px;
}

.badge-info {
    background: #3b82f6;
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-header {
        padding: 24px;
    }

    .profile-tab-content {
        padding: 20px;
    }

    .profile-tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
    }

    .profile-avatar i {
        font-size: 35px;
    }

    .profile-header h2 {
        font-size: 18px;
    }
}
/* Бейджи должностей в таблицах */
.badge-info {
    background: #3b82f6;
    color: white;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin: 2px;
}

/* Чекбоксы для должностей */
.positions-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.positions-checkboxes hr {
    margin: 4px 0;
}
/* WYSIWYG Editor Styles */
.wysiwyg-editor {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.wysiwyg-toolbar button,
.wysiwyg-toolbar select {
    padding: 6px 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.wysiwyg-toolbar button:hover,
.wysiwyg-toolbar select:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.wysiwyg-toolbar button.active {
    background: var(--primary);
    color: white;
}

.wysiwyg-toolbar .separator {
    width: 1px;
    background: var(--border);
    margin: 0 4px;
}

.wysiwyg-editor-area {
    min-height: 300px;
    padding: 16px;
    background: white;
    overflow-y: auto;
    line-height: 1.6;
}

.wysiwyg-editor-area:focus {
    outline: none;
}

.wysiwyg-editor-area .source-view {
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    background: #f5f5f5;
    padding: 12px;
    border-radius: var(--radius-sm);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
    border-radius: var(--radius-md);
    background: #000;
}

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

/* Attachment Video */
.attachment-video {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light);
    border-top: 1px solid var(--border);
}

/* Lecture Content Styles */
.lecture-content {
    font-size: 16px;
    line-height: 1.6;
}

.lecture-content h1 {
    font-size: 28px;
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.lecture-content h2 {
    font-size: 24px;
    margin: 20px 0 12px;
}

.lecture-content h3 {
    font-size: 20px;
    margin: 16px 0 12px;
}

.lecture-content p {
    margin: 0 0 16px;
}

.lecture-content ul,
.lecture-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.lecture-content li {
    margin: 8px 0;
}

.lecture-content blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    background: var(--light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
}

.lecture-content pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

.lecture-content code {
    background: var(--light);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 14px;
}

.lecture-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.lecture-content a {
    color: var(--primary);
    text-decoration: underline;
}

.lecture-content a:hover {
    color: var(--primary-dark);
}

/* Format Hint */
.format-hint {
    margin-top: 8px;
    padding: 8px;
    background: var(--light);
    border-radius: var(--radius-sm);
    font-size: 12px;
}

/* Modal XL */
.modal-xl {
    max-width: 1200px;
    width: 90%;
}

/* Стили для видео в редакторе */
.wysiwyg-editor-area .video-wrapper {
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.wysiwyg-editor-area .video-wrapper:hover {
    border: 2px solid var(--primary);
    border-radius: 10px;
}

.wysiwyg-editor-area .video-wrapper:hover .video-delete-btn {
    display: flex !important;
}

.video-delete-btn {
    display: none !important;
}

.video-delete-btn:hover {
    transform: scale(1.1) !important;
    background: #dc2626 !important;
}

/* Контекстное меню */
.video-context-menu {
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Video Upload Area */
.video-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--light);
}

.video-upload-area:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.video-upload-area i {
    margin-bottom: 12px;
}

.video-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.video-preview-card i {
    font-size: 24px;
    color: var(--primary);
}

/* Content Tabs */
.content-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.content-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray);
    transition: all 0.2s;
}

.content-tab:hover {
    color: var(--primary);
}

.content-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.content-tab-pane {
    margin-bottom: 20px;
}

/* Video Player Wrapper */
.video-player-wrapper {
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.lecture-video-section {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius-md);
}

.lecture-video-section h4 {
    margin-bottom: 12px;
}