:root {
    --primary: #4f46e5;       /* Індиго */
    --primary-hover: #4338ca;
    --secondary: #ec4899;     /* Рожевий акцент */
    --success: #10b981;       /* Смарагдовий */
    --bg-color: #f3f4f6;      /* Світло-сірий фон */
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --radius: 20px;           /* Кругленькі кути Apple-style */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
}

/* Навігація */
.navbar {
    background: linear-gradient(135deg, var(--primary), #3730a3) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Bento-квадратики */
.bento-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 1.5rem;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.bento-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Віджет часу */
.time-display {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}
.date-display {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Міні-календар */
.mini-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    margin-top: auto;
}
.cal-header { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); padding-bottom: 5px;}
.cal-day { 
    aspect-ratio: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 0.85rem; 
    font-weight: 600;
    border-radius: 50%; 
    color: var(--text-main);
}
.cal-day.today {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}
.cal-day.muted { color: #d1d5db; }

/* Кастомні кнопки та списки */
.btn-bento {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.8rem;
    transition: all 0.2s;
}
.btn-bento:active { transform: scale(0.97); }

.scrollable-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}
/* Кастомний скролбар */
.scrollable-list::-webkit-scrollbar { width: 6px; }
.scrollable-list::-webkit-scrollbar-track { background: transparent; }
.scrollable-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.lesson-item {
    border-left: 4px solid var(--primary);
    background: #f8fafc;
    border-radius: 8px;
    transition: background 0.2s;
}
.lesson-item:hover { background: #f1f5f9; }
.student-avatar {
    width: 36px; height: 36px;
    background: #e0e7ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}