* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0f1117;
    color: #fff;
    font-family: Inter, Arial, sans-serif;
    overflow: hidden;
}

#dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100vw;
    height: 100vh;
    gap: 12px;
    padding: 12px;
}

.widget {
    background: #1a1d29;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: all .35s ease;
    overflow: hidden;
}

.widget h3 {
    font-size: 15px;
    margin-bottom: 10px;
    opacity: .85;
}

/* Активный (развёрнутый) */
.widget.active {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    z-index: 10;
}

/* Схлопнутые */
.widget.minimized {
    opacity: .15;
    transform: scale(.95);
}

/* Календарь */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day {
    padding: 6px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
}

.calendar-day.today {
    background: #2d8cff;
}

.calendar-day.selected {
    background: #4caf50;
}

.schedule-event {
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 6px;
    font-size: 13px;
    opacity: .7;
}

.schedule-event.active-event {
    font-size: 18px;
    background: #2e7d32;
    opacity: 1;
}

.schedule-event.past-event {
    opacity: .3;
}
