/* style.css - Современный минимализм с левой навигацией (обновленные цвета) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #ced4da; /* Серый фон */
    color: #0d47a1; /* Темно-синий для основного текста (для контраста на сером фоне) */
    line-height: 1.5;
}

/* Левая навигационная панель */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #dee2e6; /* Светло-серый контекст */
    border-right: 1px solid #007bff; /* Базовый синий для границы */
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo-area {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #007bff;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #007bff, #0d47a1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.logo small {
    font-size: 0.7rem;
    color: #0d47a1;
    display: block;
    margin-top: 0.25rem;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-links a {
    color: #0d47a1;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    background: #007bff;
    color: #ffffff; /* Белоснежный шрифт */
}

.nav-links a.active {
    background: #007bff;
    color: #ffffff;
}

.user-info {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #007bff;
    font-size: 0.85rem;
    color: #0d47a1;
}

.user-info span {
    display: block;
    margin-bottom: 0.5rem;
}

.user-info a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.85rem;
}

/* Основной контент */
.main-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
}

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

/* Карточки */
.admin-card, .app-card, .product-card {
    background: #ffffff; /* Белый фон для карточек */
    border: 1px solid #007bff;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.2s, border-color 0.2s;
    color: #0d47a1;
}

.product-card:hover {
    border-color: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}

/* Сетка курсов */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
    background: #dee2e6;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #0d47a1;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin: 0.75rem 0;
}

/* Формы */
input, select, textarea, button {
    background: #ffffff;
    border: 1px solid #007bff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: #0d47a1;
    font-size: 0.95rem;
    width: 100%;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0d47a1;
    box-shadow: 0 0 0 2px rgba(13,71,161,0.2);
}

button {
    background: #007bff;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    border: none;
    margin-bottom: 0;
}

button:hover {
    background: #0d47a1;
}

/* Сообщения */
.message {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.success {
    background: rgba(0,123,255,0.1);
    border: 1px solid #007bff;
    color: #0d47a1;
}

.error {
    background: rgba(13,71,161,0.1);
    border: 1px solid #0d47a1;
    color: #0d47a1;
}

/* Пагинация */
.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.pagination a {
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #007bff;
}

.pagination a:hover {
    background: #007bff;
    color: #ffffff;
}

/* Слайдер */
.slider-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.slider {
    position: relative;
}

.slides img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13,71,161,0.8);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.slider-btn:hover {
    background: #007bff;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Статусы */
.status-Новая { color: #007bff; }
.status-Идётобучение { color: #0d47a1; }
.status-Обучениезавершено { color: #28a745; } /* Немного другой зеленый для завершения */

/* Футер */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #007bff;
    text-align: center;
    color: #0d47a1;
    font-size: 0.85rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
    }
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .user-info {
        margin-top: 1rem;
    }
}