/**
 * Стилі для кабінету школяра
 * Інтегровані з існуючим дизайном теми
 */

/* Загальні стилі */
.student-cabinet {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sc-error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 15px;
    color: #c33;
    text-align: center;
    margin: 20px 0;
}

/* Навігація кабінету */
.sc-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 2px solid #e8ecf1;
    padding-bottom: 15px;
}

.sc-nav-item {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    color: #0b0f19;
    font-weight: 500;
    transition: all 0.3s;
}

.sc-nav-item:hover,
.sc-nav-item.active {
    background: linear-gradient(135deg, #3d94db 0%, #0078ff 100%);
    color: #fff;
    border-color: #3d94db;
}

/* Картки */
.sc-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8ecf1;
}

.sc-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0b0f19;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8ecf1;
}

/* Dashboard */
.sc-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sc-stat-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.sc-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #3d94db;
    margin: 10px 0;
}

.sc-stat-label {
    color: #6b7280;
    font-size: 14px;
}

/* Профіль */
.sc-profile-form {
    max-width: 600px;
}

.sc-form-group {
    margin-bottom: 20px;
}

.sc-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0b0f19;
}

.sc-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    font-size: 14px;
}

.sc-form-input:focus {
    outline: none;
    border-color: #3d94db;
    box-shadow: 0 0 0 3px rgba(61, 148, 219, 0.1);
}

.sc-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3d94db 0%, #0078ff 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.sc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 148, 219, 0.3);
}

.sc-btn-secondary {
    background: #6b7280;
}

/* Розклад */
.sc-schedule {
    overflow-x: auto;
}

.sc-schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.sc-schedule-table th,
.sc-schedule-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e8ecf1;
}

.sc-schedule-table th {
    background: #f5f7fa;
    font-weight: 600;
    color: #0b0f19;
}

.sc-schedule-table tr:hover {
    background: #f9fafb;
}

.sc-schedule-today {
    background: #e0f2fe !important;
    font-weight: 600;
}

/* Домашні завдання */
.sc-homework-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sc-homework-item {
    padding: 15px;
    border-left: 4px solid #3d94db;
    background: #f9fafb;
    border-radius: 8px;
}

.sc-homework-item.completed {
    border-left-color: #22c55e;
    opacity: 0.8;
}

.sc-homework-item.overdue {
    border-left-color: #ef4444;
}

.sc-homework-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.sc-homework-title {
    font-weight: 600;
    color: #0b0f19;
    font-size: 16px;
}

.sc-homework-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #6b7280;
    margin-top: 10px;
}

.sc-homework-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sc-homework-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.sc-homework-status.in_progress {
    background: #dbeafe;
    color: #1e40af;
}

.sc-homework-status.completed {
    background: #d1fae5;
    color: #065f46;
}

/* Оцінки */
.sc-grades-table {
    width: 100%;
    border-collapse: collapse;
}

.sc-grades-table th,
.sc-grades-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e8ecf1;
}

.sc-grade-value {
    font-weight: 700;
    font-size: 18px;
}

.sc-grade-excellent {
    color: #22c55e;
}

.sc-grade-good {
    color: #3d94db;
}

.sc-grade-satisfactory {
    color: #f59e0b;
}

.sc-grade-poor {
    color: #ef4444;
}

/* Графік прогресу */
.sc-progress-chart {
    margin: 20px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

/* Відвідування */
.sc-attendance-table {
    width: 100%;
    border-collapse: collapse;
}

.sc-attendance-table th,
.sc-attendance-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #e8ecf1;
}

.sc-attendance-present {
    background: #d1fae5;
    color: #065f46;
}

.sc-attendance-absent {
    background: #fee2e2;
    color: #991b1b;
}

.sc-attendance-late {
    background: #fef3c7;
    color: #92400e;
}

/* Матеріали */
.sc-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.sc-material-card {
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s;
}

.sc-material-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sc-material-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #3d94db;
}

.sc-material-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #0b0f19;
}

.sc-material-meta {
    font-size: 12px;
    color: #6b7280;
}

/* Онлайн-книжка (інтеграція) */
.sc-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.sc-book-card {
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.sc-book-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.sc-book-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #3d94db 0%, #0078ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}

.sc-book-info {
    padding: 15px;
}

.sc-book-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #0b0f19;
}

.sc-book-meta {
    font-size: 12px;
    color: #6b7280;
}

/* Тести */
.sc-tests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sc-test-item {
    padding: 20px;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    background: #fff;
}

.sc-test-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.sc-test-title {
    font-weight: 600;
    font-size: 18px;
    color: #0b0f19;
}

.sc-test-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sc-test-status.not_started {
    background: #f3f4f6;
    color: #374151;
}

.sc-test-status.in_progress {
    background: #dbeafe;
    color: #1e40af;
}

.sc-test-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.sc-test-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
    margin-top: 10px;
}

.sc-test-result {
    margin-top: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

/* Кабінет вчителя */
.sc-teacher-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sc-teacher-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* Адаптивність */
@media (max-width: 768px) {
    .student-cabinet {
        padding: 10px;
    }
    
    .sc-nav {
        flex-direction: column;
    }
    
    .sc-nav-item {
        border-radius: 8px;
    }
    
    .sc-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .sc-materials-grid,
    .sc-books-grid {
        grid-template-columns: 1fr;
    }
}


