
.calendar-container {
    /*max-width: 1200px;*/
    width: 100%;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: linear-gradient(135deg, #2c7a7b 0%, #3EADAD 100%);
    border-radius: 8px;
    color: white;
}

.calendar-header .btn {
    background: rgba(255,255,255,0.9);
    border: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calendar-header .btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.calendar-header h1 {
    margin: 0;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
}

.calendar-table th {
    padding: 10px 10px;
    text-align: center;
    vertical-align: middle;
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 3px solid #dee2e6;
}

.calendar-table td {
    /*padding: 10px 10px;*/
    text-align: center;
    vertical-align: middle;
    /*
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 3px solid #dee2e6;
    */
}

.calendar-day {
    height: 50px;
    text-align: center;
    vertical-align: middle;
    padding: 5px;
    background: white;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day:hover {
    background: #f8f9fa;
    transform: scale(1.02);
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.weekend {
    background: #fafafa;
}

.weekend:hover {
    background: #f0f0f0;
}

.today {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
}

.day-number {
    display: inline-block;
    min-width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    vertical-align: middle;
}

.current-day {
    background: #2196f3;
    color: white !important;
    border-radius: 50%;
    font-weight: bold;
}

.occupied-day{
    background-color: #feeeec;
}

.day-content {
    /*max-height: 100%;*/
    vertical-align: middle;
    /*overflow-y: auto;*/
}

.day-events {
    max-height: 70px;
    overflow-y: auto;
}

.event-item {
    background: #4caf50;
    color: white;
    padding: 2px 6px;
    margin: 2px 0;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Стили для пустых ячеек */
.calendar-day:empty {
    background: #f8f9fa;
    opacity: 0.5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .calendar-container {
        margin: 10px;
        padding: 10px;
    }

    .calendar-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .calendar-header h1 {
        font-size: 1.5rem;
    }

    .calendar-table th {
        padding: 8px 5px;
        font-size: 0.8rem;
    }

    .calendar-day {
        height: 80px;
        padding: 5px;
        font-size: 0.9rem;
    }

    .day-number {
        min-width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .calendar-table th {
        font-size: 0.7rem;
        padding: 6px 3px;
    }

    .calendar-day {
        height: 60px;
    }

    .day-events {
        display: none;
    }
}
