/* ====== RESET ====== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f6f8;
    color: #1f1f1f;
}

/* ====== CONTAINER ====== */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 16px;
}

/* ====== HEADER ====== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 22px;
}

select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

/* ====== NEXT SHIFT ====== */
.next-shift {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.next-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}

.next-date {
    font-size: 16px;
    font-weight: 600;
}

/* ====== CALENDAR ====== */
.calendar {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.calendar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: capitalize;
}

/* ====== WEEKDAYS ====== */
.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

/* ====== DAYS GRID ====== */
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

/* ====== DAY CELL ====== */
.day {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    cursor: default;
    position: relative;
    background: transparent;
}

/* пустые ячейки */
.day.empty {
    background: transparent;
}

/* ====== TODAY ====== */
.day.today {
    border: 2px solid #ffcc00;
}

/* ====== SHIFT STATES ====== */
.day.shift-start {
    background: #d6f5dd;
    color: #1a7f37;
    font-weight: 600;
}

.day.shift-end {
    background: #ffd6d6;
    color: #b42318;
    font-weight: 600;
}

.day.off {
    color: #bbb;
}

/* ====== HOVER ====== */
.day:hover {
    background: rgba(0,0,0,0.03);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 600px) {

    .day {
        height: 38px;
        font-size: 12px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    background: white;
    border: 1px solid #ddd;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.nav-btn:hover {
    background: #f0f0f0;
}

.month-label {
    font-weight: 600;
    min-width: 140px;
    text-align: center;
    text-transform: capitalize;
} 