main#content {
    float: right;
    width: calc(100% - var(--menu-width) - 145px);
    max-width: 100%;
    margin-top: 30px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Стили для хлебных крошек */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #718096;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumbs a {
    color: var(--color-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    text-decoration: underline;
    color: var(--color-addit);
}

.breadcrumbs i {
    color: #a0aec0;
    font-size: 0.8rem;
}

.breadcrumbs span {
    color: #2d3748;
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 0.8rem;
        gap: 6px;
        padding: 17px 25px;
        flex-wrap: wrap;
    }
}

/* Стили для меню курсов */
#courses-menu-parent {
    margin-top: 10px;
    display: inline-block;
    float: left;
    width: calc(var(--menu-width) + 105px);
    margin-left: 10px;
    height: calc(var(--display-height) - var(--header-height) - 120px);
    max-height: 900px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 10px;
}

div#courses-usermenu, #courses-menu-main {
    width: calc(100% - 20px);
    margin-left: 10px;
    display: inline-block;
    float: left;
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    box-sizing: border-box;
    height: auto;
    box-shadow: 0 0 10px 3px rgb(221 221 221);
    margin-bottom: 15px;
}

#courses-menu-main ul {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#courses-menu-main li {
    list-style: none;
    text-align: left;
    font-size: 14px;
    margin-bottom: 7px;
    margin: 3px auto;
    padding: 10px 7px;
    padding-right: 30px;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
}

#courses-menu-main li a {
    color: black !important;
    width: 100%;
    display: inline-block;
    line-height: 20px;
    vertical-align: top;
    display: flex;
}

#courses-menu-main li:hover {
    background-color: #E6F1FF;
}

#courses-menu-main li.menulink-active {
    background-color: var(--color-main-light-100);
    color: var(--color-main);
}

#courses-menu-main li.menulink-active a {
    color: var(--color-main) !important;
    font-weight: 600;
}

span.courses-menu-subheader {
    display: inline-block;
    width: 100%;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    padding-bottom: 5px;
}

div#courses-menu-child {
    text-align: center;
    position: fixed;
    width: inherit;
}

#courses-menu-main ul i {
    margin-right: 12px;
    font-size: 20px;
    line-height: 20px;
}

/* Стили профиля пользователя в меню */
#courses-usermenu-profile {
    /* display: flex; */
    /* align-items: center; */
    /* padding: 10px; */
    /* border-radius: 10px; */
    /* cursor: pointer; */
    /* transition: background-color 0.2s ease; */
}

#courses-usermenu-profile:hover {
    background-color: #f8f9fa;
}

#courses-usermenu-profile img {
    border-radius: 100%;
    width: 60px;
    display: inline-block;
    float: left;
}

#courses-usermenu-profile span:nth-child(2) {
    display: inline-block;
    width: calc(100% - 75px);
    text-align: left;
    margin-left: 15px;
    font-weight: bold;
    line-height: 27px;
    margin-bottom: 4px;
    font-size: 16px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}
.auth-buttons a {
    color: white;
}
.register-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.login-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

#toentermenubtn {
    width: 100%;
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--color-main);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

#toentermenubtn:hover {
    background: var(--color-addit);
}

/* Адаптивные стили */
@media (max-width: 1210px) {
    #courses-menu-parent {
        width: 247px;
    }
    main#content {
        width: calc(100% - 282px);
    }
}

@media screen and (orientation: portrait) {
    #courses-menu-parent {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 75%;
        z-index: 100000;
        background: white;
        margin: 0;
        height: 100%;
        padding-top: 60px;
    }
    
    #courses-menu-main {
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0;
        border-bottom: 2px solid var(--color-background-input);
        margin: 0;
    }
    
    main#content {
        width: 100%;
        margin: 0;
    }
    
    #courses-menu-child {
        position: static;
        width: 100%;
    }
    
    #courses-menu-parent {
        /* margin-top: 20px; */
        padding-top: 20px;
        height: auto;
    }
}

/* Стили для дашборда курсов */
.courses-dashboard {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-section {
    background: linear-gradient(135deg, var(--color-main) 0%, var(--color-addit) 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Стили для кнопки в welcome-section */
.welcome-section .btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.welcome-section .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.welcome-section .btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.welcome-section .btn i {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Стили для неактивной кнопки публикации */
.publish-btn.disabled {
    background: #e2e8f0 !important;
    color: #a0aec0 !important;
    border-color: #cbd5e0 !important;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

.publish-btn.disabled:hover {
    background: #e2e8f0 !important;
    color: #a0aec0 !important;
    border-color: #cbd5e0 !important;
    transform: none !important;
    box-shadow: none !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.stat-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-main), var(--color-addit));
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

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

.stat-icon.courses { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.stat-icon.progress { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.stat-icon.teachers { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.stat-title {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 500;
    color: #718096;
}

/* Стили для секций */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--color-main);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Стили для карточек курсов */
.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.course-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.course-status {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-badge.published {
    background-color: #48bb78;
    color: white;
}

.status-badge.draft {
    background-color: #ed8936;
    color: white;
}

.course-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 15px;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1.4;
    background: linear-gradient(135deg, #2d3748, #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-description {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    font-style: italic;
    text-align: left;
}

.course-progress {
    margin: 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-main), var(--color-addit));
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 8px;
    font-weight: 500;
}

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: #718096;
}

.course-date {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--color-main);
}

.course-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    flex: 1;
    justify-content: center;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

.action-btn span {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.edit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.edit-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.view-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.view-btn:hover {
    background: linear-gradient(135deg, #e085e8 0%, #e54d5e 100%);
}

.stats-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stats-btn:hover {
    background: linear-gradient(135deg, #3e9bf4 0%, #00e0ea 100%);
}

.publish-btn {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.publish-btn:hover {
    background: linear-gradient(135deg, #3ad86a 0%, #2ee8c6 100%);
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .course-actions {
        gap: 10px;
        justify-content: center;
    }
    
    .action-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 120px;
        justify-content: center;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .course-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .action-btn span {
        display: inline;
    }
}

.course-content {
    padding: 10px;
}

.course-actions button, .course-actions a {
    width: 100%;
    color: white;
}

.reset-filters {
    padding: 16px 32px;
}

a.btn.btn-outline.reset-filters {
    padding: 16px 32px;
}

.module-header div {
    width: auto;
}

/* Стили для красивых кнопок действий */
.course-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

.action-btn span {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Стили для разных типов кнопок */
.edit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.edit-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.view-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.view-btn:hover {
    background: linear-gradient(135deg, #e085e8 0%, #e54d5e 100%);
}

.stats-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stats-btn:hover {
    background: linear-gradient(135deg, #3e9bf4 0%, #00e0ea 100%);
}

.publish-btn {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.publish-btn:hover {
    background: linear-gradient(135deg, #3ad86a 0%, #2ee8c6 100%);
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .course-actions {
        gap: 10px;
        justify-content: center;
    }
    
    .action-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 120px;
        justify-content: center;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .course-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .action-btn span {
        display: inline;
    }
}

/* Стили для формы создания курса */
.course-form {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.form-section {
    margin-bottom: 40px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    margin-right: auto;
}

.section-header i {
    font-size: 1.5rem;
    color: var(--color-addit);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fafafa;
    box-sizing: border-box;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

.file-upload {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--color-main);
    background: #f0f4ff;
}

.file-upload.has-file {
    border-color: var(--color-main);
    background: #f0f4ff;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-icon {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

.upload-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.upload-hint {
    color: #9ca3af;
    font-size: 0.8rem;
}

.file-preview {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.file-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    object-fit: cover;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.file-name {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.file-size {
    font-size: 0.8rem;
    color: #6b7280;
}

.remove-file {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.remove-file:hover {
    background: #fee2e2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-published {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Модули и уроки */
.modules-section {
    margin-top: 30px;
}

.modules-container {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    padding: 20px;
    min-height: 200px;
}

.modules-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.modules-empty i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 15px;
    display: block;
}

.add-module-btn {
    background: var(--color-main);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    white-space: nowrap;
}

.add-module-btn:hover {
    background: var(--color-addit);
    transform: translateY(-1px);
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.9rem;
}

.requirement-item i {
    color: #dc2626;
}

.requirement-item.met {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.requirement-item.met i {
    color: #16a34a;
}

/* Кнопки действий */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #f1f5f9;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
}

/* Стили для ссылок с классом .btn */
a.btn {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    background: inherit;
    border: inherit;
    padding: inherit;
    margin: inherit;
    display: inline-flex;
    align-items: center;
    gap: inherit;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Убираем стандартные стили браузера для ссылок */
a.btn:visited {
    color: inherit;
}

a.btn:active {
    color: inherit;
}

a.btn:focus {
    outline: none;
}

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

.btn-primary:hover {
    background: var(--color-addit);
    transform: translateY(-1px);
}

/* Специальные стили для ссылок с классом .btn-primary */
a.btn-primary {
    background: var(--color-main);
    color: white !important;
}

a.btn-primary:hover {
    background: var(--color-addit);
    transform: translateY(-1px);
    color: white !important;
}

a.btn-primary:visited {
    color: white !important;
}

a.btn-primary:active {
    color: white !important;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-success:hover {
    background: #047857;
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-outline:hover {
    border-color: var(--color-main);
    color: var(--color-main);
    transform: translateY(-1px);
}

/* Стили для ссылок с классом .btn-outline */
a.btn-outline {
    text-decoration: none;
    color: #374151 !important;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    background: white;
    border: 2px solid #e5e7eb;
    padding: inherit;
    margin: inherit;
    display: inline-flex;
    align-items: center;
    gap: inherit;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

a.btn-outline:hover {
    border-color: var(--color-main);
    color: var(--color-main) !important;
    transform: translateY(-1px);
}

a.btn-outline:visited {
    color: #374151 !important;
}

a.btn-outline:hover {
    color: white !important;
}

a.btn-outline:active {
    color: #374151 !important;
}

/* Индикатор готовности курса */
.course-readiness {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #fef3c7;
}

.readiness-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #92400e;
    font-weight: 600;
}

.readiness-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.readiness-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.readiness-item i {
    width: 16px;
    text-align: center;
}

.readiness-item.completed {
    color: #166534;
}

.readiness-item.incomplete {
    color: #991b1b;
}

.readiness-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.readiness-status.ready {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.readiness-status.not-ready {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Адаптивные стили для формы */
@media (max-width: 768px) {
    .course-form {
        padding: 20px;
        margin: 0 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-row.three-cols {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .file-upload {
        padding: 20px;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .courses-dashboard {
        padding: 10px;
    }
    
    .course-form {
        padding: 15px;
        margin: 0 5px;
    }
    
    .welcome-section {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .welcome-subtitle {
        font-size: 0.9rem;
    }
}

/* Стили для модулей и уроков */
.modules-section {
    margin-top: 40px;
}

.modules-container {
    margin-top: 20px;
    width: 100%;
}

#modules {
    width: 100%;
}

#modules .module {
    margin-bottom: 24px;
}

.modules-empty {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e0;
    color: #64748b;
    transition: all 0.3s ease;
}

.modules-empty:hover {
    border-color: #94a3b8;
    background: linear-gradient(135deg, #f1f5f9 0%, #dbeafe 100%);
}

.modules-empty i {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
    display: block;
}

.modules-empty h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
}

.modules-empty p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.add-module-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: fit-content;
    white-space: nowrap;
}

.add-module-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.add-module-btn i {
    font-size: 16px;
    color: white;
}

/* Стили для модулей */
.module {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.module:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    flex-wrap: wrap;
}

.module-info {
    /* display: flex; */
    /* flex-direction: column; */
    /* gap: 8px; */
    /* flex: 1; */
    min-width: 0;
    display: inline-block;
}

.module-number {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    align-self: flex-start;
    margin-bottom: 8px;
    width: 100%;
}

.module-header input[type="text"] {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 200px;
    box-sizing: border-box;
    height: 50px;
    width: calc(100% - 60px);
    display: inline-block;
    float: left;
}

.module-header input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.module-header input[type="text"]::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.module-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    display: inline-block;
    width: 50px;
    height: 50px;
    float: right;
}

.module-actions .btn {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.module-actions .btn:hover {
    transform: translateY(-1px);
}

.module-actions .remove-module {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    height: 50px;
    width: 50px;
    display: inline-block;
    text-align: center;
}

.module-actions .remove-module:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: scale(1.05);
}

.btn-sm {
    padding: 6px 10px;
    font-size: 11px;
}

/* Стили для ссылок с классом .btn-sm */
a.btn-sm {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    background: inherit;
    border: inherit;
    padding: inherit;
    margin: inherit;
    display: inline-flex;
    align-items: center;
    gap: inherit;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Убираем стандартные стили браузера для ссылок .btn-sm */
a.btn-sm:visited {
    color: inherit;
}

a.btn-sm:active {
    color: inherit;
}

a.btn-sm:focus {
    outline: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
    color: #475569;
}

/* Стили для уроков */
.lessons {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 2px solid #e2e8f0;
    margin-bottom: 16px;
    width: 100%;
}

.lesson {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.lesson:hover {
    background: white;
    border-color: #cbd5e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.lesson-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.lesson-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.lesson-number {
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 6px;
    border-radius: 4px;
    align-self: flex-start;
}

.lesson-header input[type="text"] {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #475569;
    background: white;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 150px;
    box-sizing: border-box;
}

.lesson-header input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.lesson-header input[type="text"]::placeholder {
    color: #94a3b8;
}

.lesson-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lesson-actions .btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: var(--color-addit);
}

.lesson-actions .btn:hover {
    transform: translateY(-1px);
}

.lesson-actions .remove-lesson {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    min-width: 120px;
}

.lesson-actions .remove-lesson:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: scale(1.05);
}

.lesson-actions .btn {
    min-width: 120px;
    text-align: center;
}

/* Кнопки добавления урока */

.add-lesson {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    margin-top: 16px;
    margin-left: 20px;
    width: fit-content;
}

.add-lesson:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.add-lesson i {
    font-size: 14px;
}

/* Выпадающие меню */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.dropdown-toggle:hover {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e0;
}

.dropdown-toggle i {
    font-size: 14px;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.dropdown-item.remove-module,
.dropdown-item.remove-lesson {
    color: #dc2626;
}

.dropdown-item.remove-module:hover,
.dropdown-item.remove-lesson:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* Анимации для новых элементов */
.module.new-module {
    animation: slideInFromTop 0.5s ease-out;
}

.lesson.new-lesson {
    animation: slideInFromLeft 0.4s ease-out;
}

/* Анимации для новых элементов */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Стили для иконок Bootstrap */
.bi {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.bi-plus-circle::before { content: "➕"; }
.bi-collection::before { content: "📚"; }
.bi-gear::before { content: "⚙️"; }
.bi-three-dots-vertical::before { content: "⋮"; }
.bi-pencil::before { content: "✏️"; }
.bi-arrow-up::before { content: "⬆️"; }
.bi-arrow-down::before { content: "⬇️"; }
.bi-trash::before { content: "🗑️"; }
.bi-save::before { content: "💾"; }
.bi-check-circle::before { content: "✅"; }
.bi-arrow-left::before { content: "⬅️"; }

/* Адаптивность */
@media (max-width: 768px) {
    .module {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .module-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .module-actions {
        align-self: flex-end;
        margin-top: 8px;
    }
    
    .module-actions .remove-module {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .module-header input[type="text"] {
        font-size: 15px;
    }
    
    .lessons {
        padding-left: 16px;
        margin: 16px 0;
    }
    
    .lesson {
        padding: 14px;
        margin-bottom: 14px;
    }
    
    .lesson-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .lesson-actions {
        justify-content: flex-start;
    }
    
    .add-lesson {
        margin: 14px 0 0 16px;
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .add-module-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .module {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .lesson {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    .lessons {
        padding-left: 12px;
    }
    
    .add-lesson {
        margin: 12px 0 0 12px;
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .module-actions .remove-module {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .lesson-actions .remove-lesson {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .lesson-actions .btn {
        min-width: 100px;
        font-size: 12px;
    }
    
    .modules-empty {
        padding: 40px 16px;
    }
    
    .modules-empty i {
        font-size: 36px;
    }
    
    .modules-empty p:first-of-type {
        font-size: 16px;
    }
    
    .modules-empty p:last-of-type {
        font-size: 13px;
    }
}

/* Дополнительные стили для улучшения UX */
.module.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.lesson.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.module-placeholder {
    background: #f1f5f9;
    border: 2px dashed #cbd5e0;
    border-radius: 16px;
    height: 100px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
}

.lesson-placeholder {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    height: 60px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
}

/* Стили для состояний загрузки */
.module.loading,
.lesson.loading {
    position: relative;
    pointer-events: none;
}

.module.loading::after,
.lesson.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module.loading::after::before,
.lesson.loading::after::before {
    content: '⏳';
    font-size: 20px;
    color: #667eea;
}

/* Стили для валидации */
.module.invalid,
.lesson.invalid {
    border-color: #f87171;
    background: #fef2f2;
}

.module.invalid input,
.lesson.invalid input {
    border-color: #f87171;
    background: #fef2f2;
}

.module.valid,
.lesson.valid {
    border-color: #34d399;
    background: #f0fdf4;
}

.module.valid input,
.lesson.valid input {
    border-color: #34d399;
    background: #f0fdf4;
}

/* Стили для страницы курсов преподавателя */
.teaching-course-card {
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.teaching-course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teaching-course-card:hover::before {
    opacity: 1;
}

.teaching-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e0;
}

.course-status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: auto;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.published {
    background-color: #48bb78;
    color: white;
}

.status-badge.draft {
    background-color: #ed8936;
    color: white;
}

.course-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.course-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.course-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.empty-state-icon {
    font-size: 4rem;
    color: #a0aec0;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.empty-state p {
    color: #718096;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .course-actions {
        flex-direction: column;
    }
    
    .course-actions .btn {
        min-width: auto;
    }
    
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }
}

/* Стили для диалога подтверждения выхода */
.leave-confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.leave-confirmation-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideInFromTop 0.3s ease-out;
}

.leave-confirmation-content h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.unsaved-changes-summary {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a5568;
    white-space: pre-line;
}

.leave-confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leave-confirmation-actions .btn {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.leave-confirmation-actions .save-changes-btn {
    background-color: #4299e1;
    color: white;
    border: none;
}

.leave-confirmation-actions .save-changes-btn:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
}

.leave-confirmation-actions .stay-here-btn {
    background-color: #718096;
    color: white;
    border: none;
}

.leave-confirmation-actions .stay-here-btn:hover {
    background-color: #4a5568;
    transform: translateY(-1px);
}

.leave-confirmation-actions .leave-without-saving-btn {
    background-color: #f56565;
    color: white;
    border: none;
}

.leave-confirmation-actions .leave-without-saving-btn:hover {
    background-color: #e53e3e;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .leave-confirmation-content {
        padding: 25px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .leave-confirmation-actions {
        gap: 10px;
    }
    
    .leave-confirmation-actions .btn {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .leave-confirmation-content {
        padding: 20px;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .leave-confirmation-content h3 {
        font-size: 1.3rem;
    }
    
    .unsaved-changes-summary {
        padding: 15px;
        font-size: 0.85rem;
    }
}

.module-actions .btn i {
    font-size: 20px;
}

.form-actions .btn {
    margin-top: 0;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.course-image {
    height: 200px;
}

/* Стили для красивых кнопок действий */
.course-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

.action-btn span {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Стили для разных типов кнопок */
.edit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.edit-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.view-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.view-btn:hover {
    background: linear-gradient(135deg, #e085e8 0%, #e54d5e 100%);
}

.stats-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stats-btn:hover {
    background: linear-gradient(135deg, #3e9bf4 0%, #00e0ea 100%);
}

.publish-btn {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.publish-btn:hover {
    background: linear-gradient(135deg, #3ad86a 0%, #2ee8c6 100%);
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .course-actions {
        gap: 10px;
        justify-content: center;
    }
    
    .action-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 120px;
        justify-content: center;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .course-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .action-btn span {
        display: inline;
    }
}

.course-content {
    padding: 10px;
}

.course-actions button, .course-actions a {
    width: 100%;
    color: white;
    box-sizing: border-box;
}

.reset-filters {
    padding: 16px 32px;
}

a.btn.btn-outline.reset-filters {
    padding: 16px 32px;
}

.module-header div {
    width: auto;
}

/* Стили для быстрых действий */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.quick-actions .action-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    box-sizing: border-box;
}

.quick-actions .action-btn:hover {
    border-color: var(--color-main);
    color: var(--color-main);
    transform: translateY(-2px);
}

.quick-actions .action-btn i {
    font-size: 1.2rem;
}

.quick-actions .action-btn.primary {
    background: var(--color-main);
    border-color: var(--color-main);
    color: white;
}

.quick-actions .action-btn.primary:hover {
    background: var(--color-addit);
    border-color: var(--color-addit);
    color: white;
}

/* Адаптивность для быстрых действий */
@media (max-width: 768px) {
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Адаптивность для dashboard */
@media (max-width: 768px) {
    .courses-dashboard {
        padding: 15px;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

div#courses-menu-parent.menu-open {
    display: block;
}

#mobilemenubtn i {
    color: #48038c;
}