/* Стили для фильтров */
.statistics-filters {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.statistics-filters form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: #666;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
}

/* Стили для таблицы */
.statistics-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.statistics-table table {
    width: 100%;
    border-collapse: collapse;
}

.statistics-table th,
.statistics-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.statistics-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.statistics-table tr:hover {
    background: #f8f9fa;
}

/* Стили для кнопок */
.btn-primary {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-details {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    background: #5B9BD5;  /* Голубой цвет как на скриншоте */
    color: white;
}

.btn-details:hover {
    background: #4A8CC5;
}

.btn-toggle-theme {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #5B9BD5;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-toggle-theme:hover {
    color: #4A8CC5;
}

.btn-toggle-theme svg {
    transition: transform 0.3s;
}

.btn-toggle-theme.collapsed svg {
    transform: rotate(-90deg);
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: #fff;
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

/* Стили для деталей в модальном окне */
.course-details {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.course-header h3 {
    margin: 0;
    color: #333;
}

.theme-details {
    display: none;
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.theme-details.visible {
    display: block;
}

.theme-details table {
    width: 100%;
    margin-top: 10px;
}

.theme-details th,
.theme-details td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* Адаптивность */
@media (max-width: 768px) {
    .statistics-filters form {
        flex-direction: column;
        gap: 15px;
    }

    .filter-group input,
    .filter-group select {
        min-width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}
