:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333333;
    --primary: #2c3e50;
    --accent: #e74c3c;
    --border: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: var(--primary);
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
}

input[type="text"]:focus {
    border-color: var(--primary);
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
}

.suggestion-item:hover {
    background-color: #f0f3f5;
}

.info-panel {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

@media (min-width: 900px) {
    .calendar-grid.year-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

.month-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.month-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary);
    text-transform: capitalize;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 14px;
    row-gap: 8px;
}

.day-name {
    font-weight: bold;
    padding-bottom: 5px;
    color: #7f8c8d;
}

.day-cell {
    padding: 8px 0;
    border-radius: 4px;
}

.day-cell.empty {
    background: transparent;
}

.day-cell.cut-off {
    background: #ffebee;
    color: var(--accent);
    text-decoration: line-through;
    font-size: 12px;
    font-weight: bold;
}

.day-cell.selected {
    background-color: var(--accent);
    color: white;
    font-weight: bold;
}


/* Обновленная сетка: 8 колонок (Номер недели + 7 дней) */
.days-grid {
    display: grid;
    grid-template-columns: 40px repeat(7, 1fr);
    text-align: center;
    font-size: 14px;
    row-gap: 8px;
    align-items: center;
}

/* Стиль для номера недели */
.week-number {
    font-size: 11px;
    color: #95a5a6;
    font-weight: bold;
    border-right: 1px solid var(--border);
    padding-right: 4px;
    background-color: #fcfcfc;
}

/* Шапка для номера недели */
.day-name.week-header {
    border-right: 1px solid var(--border);
    color: #bdc3c7;
    font-size: 11px;
}
