.course-hero {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #dee2e6;
}

.course-hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.course-hero .lead {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.trajectory-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.trajectory-badge {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.course-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.materials-section {
    padding: 2rem;
}

.materials-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.materials-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.material-item {
    border: none;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.material-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.material-item.lesson {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.material-item.quiz {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.material-item.homework {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.material-item.form {
    display: none!important;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.material-item.blocked {
    background: #f8f9fa;
    color: #6c757d;
    opacity: 0.7;
}

.material-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    opacity: 0.9;
}

.material-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.material-type {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
}

.progress-modern {
    background: #f8f9fa;
    border-radius: 15px;
    height: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.progress-bar-modern {
    background: #007bff;
    height: 100%;
    border-radius: 15px;
    transition: width 0.6s ease;
    position: relative;
}


.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.sidebar-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    position: sticky;
    top: 2rem;
    border: 1px solid #e9ecef;
}

.sidebar-header {
    background: #f8f9fa;
    color: #495057;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.sidebar-body {
    padding: 2rem;
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-started {
    background: #cce5ff;
    color: #004085;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid #007bff;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #007bff;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-modern:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: white;
}

.btn-modern i {
    margin-right: 0.5rem;
}

.admin-panel {
    background: #f8f9fa;
    padding: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.admin-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
}

.admin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.completion-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.completion-message {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.toggle-description {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.toggle-description:hover {
    background: #dee2e6;
    color: #495057;
}


/* Улучшения для мобильных устройств */
@media (max-width: 768px) {
    .course-hero {
        padding: 2rem 0;
    }
    
    .course-hero h1 {
        font-size: 2rem;
    }
    
    .materials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .trajectory-badges {
        flex-direction: column;
    }
    
    .material-item {
        padding: 1rem !important;
    }
    
    .sidebar-card {
        margin-top: 2rem;
        position: static;
    }
    
    .action-buttons {
        gap: 0.75rem;
    }
    
    .btn-modern {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


/* Улучшения доступности */
.material-item:focus,
.btn-modern:focus,
.toggle-description:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Стили для кнопок удаления материалов */
.btn-delete-material {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    opacity: 0.7;
}

.btn-delete-material:hover {
    background: #c82333;
    opacity: 1;
    transform: scale(1.1);
}

.btn-delete-material:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

.btn-delete-material:active {
    transform: scale(0.95);
}
