/* Базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5; /* Стандартный серый фон Moodle */
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Верхняя панель */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-actions select {
    padding: 2px 5px;
}

.login-link {
    color: #0f6cb6;
    text-decoration: none;
}

/* Шапка сайта (Header) */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.main-nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
}

.main-nav a.active, .main-nav a:hover {
    color: #0f6cb6;
}

.btn-primary {
    background-color: #0f6cb6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

/* Основная раскладка */
.main-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.content-column {
    flex: 3;
}

.sidebar {
    flex: 1;
}

/* Блоки контента */
.block, .sidebar-block {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

h2 {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.video-placeholder {
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Категории курсов */
.category-grid {
    display: flex;
    gap: 20px;
}

.category-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    flex: 1;
    text-align: center;
    cursor: pointer;
}

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

.category-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Футер */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-widget h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #ccc;
    text-decoration: none;
}

.footer-widget a:hover {
    text-decoration: underline;
}