/* Общий фон — диагональные полосы */
body {
    background: repeating-linear-gradient(
        45deg,
        #e8e8e8,
        #e8e8e8 10px,
        #ffffff 10px,
        #ffffff 20px
    );
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Контейнер виджетов */
.dashboard-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.widget-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 280px;
    flex: 1 1 300px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.widget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.widget-card h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Часы */
.clock-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#clockCanvas {
    width: 200px;
    height: 200px;
    background: transparent;
}

/* Календарь */
.calendar-container {
    text-align: center;
}

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

.calendar-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.calendar-header button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.calendar-header span {
    font-weight: 500;
    font-size: 1.1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-grid .day-name {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.8rem;
    padding: 5px 0;
}

.calendar-grid .day {
    padding: 8px 0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.2s;
    cursor: default;
}

.calendar-grid .day.other-month {
    color: #bdc3c7;
}

.calendar-grid .day.today {
    background: #3498db;
    color: white;
    font-weight: 600;
}

.calendar-grid .day:hover:not(.other-month) {
    background: #ecf0f1;
}

/* Навигация и заголовки админки/учителя */
.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.card-header {
    background-color: #e9ecef;
    font-weight: bold;
}

.table th {
    background-color: #f1f1f1;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0c63e4;
}

.container,
.container-fluid {
    background: transparent;
}

.card-body {
    background: #ffffff;
}

/* Кнопка "Сегодня" */
.btn-today {
    background: none;
    border: 1px solid #3498db;
    color: #3498db;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 5px;
}
.btn-today:hover {
    background: #3498db;
    color: white;
}
