body {
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Calendar View Styles */
.calendar-container {
    width: 100%;
    overflow: visible;
}

.calendar-grid {
    display: grid;
    gap: 1px;
    background-color: #dee2e6;
    border: 1px solid #dee2e6;
    width: 100%;
}

/* Monthly View Specific */
.monthly-view {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background-color: #dee2e6;
    border: 1px solid #dee2e6;
    width: 100%;
}

.calendar-header-cell {
    background-color: #e9ecef;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    min-width: 0;
}

.calendar-cell {
    min-height: 120px;
    padding: 5px;
    background-color: #f8f9fa;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow-y: auto;
}

.calendar-cell.today {
    background-color: #e8f4ff;
}

.date-number {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #495057;
    text-align: right;
    padding: 2px 5px;
}

.calendar-event {
    font-size: 0.8rem;
    padding: 2px 4px;
    margin: 1px 0;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-cell.expand-event-text .calendar-event {
    white-space: normal;
    line-height: 1.4;
    padding: 4px 6px;
}

.calendar-event.busy-all-day {
    background-color: #dc3545 !important;
    color: white;
    font-weight: 500;
    text-align: center;
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    line-height: 1.2;
}

.calendar-event.free-all-day {
    background-color: #20c997;
    color: white;
    font-weight: 500;
    text-align: center;
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    line-height: 1.2;
}

.calendar-event.free-time-event {
    background-color: #198754;
    color: white;
    font-weight: 500;
    text-align: center;
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.calendar-event:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-event.busy-all-day:hover {
    background-color: #bb2d3b !important;
}

.calendar-event.free-all-day:hover {
    background-color: #1baa8e;
}

.calendar-event.free-time-event:hover {
    background-color: #157347;
}

/* View Controls */
#viewControls {
    margin-bottom: 1rem;
}

/* Event Details Modal Styles */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-title {
    color: #212529;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .card {
        margin-bottom: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .card-header {
        border-radius: 0;
    }

    .card-body {
        padding: 0;
    }

    #viewControls {
        padding-left: 10px;
        padding-right: 10px;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .nav-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }

    .calendar-header-cell {
        padding: 5px;
        font-size: 0.9em;
    }

    .calendar-cell {
        min-height: 100px;
        padding: 3px;
    }

    .date-number {
        font-size: 0.8em;
        padding: 1px 3px;
    }

    .calendar-event {
        font-size: 0.75rem;
        padding: 2px 3px;
    }
} 