/* CALENDAR SHARED STYLES - Controls, time line, event colors, continuation badges */

/* Calendar Controls */
.calendar-controls {
    display: flex;
    align-items: center;
    gap: 4px; /* Tight grouping for navigation buttons */
    margin-bottom: 15px;
}

/* Icon-only buttons - compact square design */
.calendar-controls .btn-icon {
    width: 36px;
    height: 36px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* Navigation group stays on left */
.calendar-controls #prev-week,
.calendar-controls #today-btn,
.calendar-controls #next-week {
    order: 1;
}

/* Add spacing after navigation group */
.calendar-controls #next-week {
    margin-right: 15px;
}

/* Week display in center */
#week-display {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    flex-grow: 1; /* Take up remaining space */
    order: 2;
}

/* Layout toggle on right */
.calendar-controls #layout-toggle-btn {
    order: 3;
    margin-left: 15px;
}

#calendar-container {
    background: var(--surface);
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: auto;
    border: 1px solid var(--border);
}

/* Current Time Line - Vertical Layout */
.current-time-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ef4444;
    z-index: 50;
    pointer-events: none;
}

.current-time-line::before {
    content: '';
    position: absolute;
    left: -6px;
    top: -4px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
}

/* Current Time Line - Horizontal Layout */
.current-time-line-horizontal {
    position: absolute;
    top: 0;
    height: 100%;
    width: 2px;
    background: #ef4444;
    z-index: 100;
    pointer-events: none;
}

.current-time-line-horizontal::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -4px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
}

/* Event Color Classes */
.event-block.color-1 { background: var(--event-blue); }
.event-block.color-2 { background: var(--event-purple); }
.event-block.color-3 { background: var(--event-green); }
.event-block.color-4 { background: var(--event-orange); }

/* Event Continuation Indicators for Midnight-Crossing Events */
.event-block.continues-next-day {
    border-bottom: 3px dashed rgba(255, 255, 255, 0.6);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.event-block.continued-from-prev-day {
    border-top: 3px dotted rgba(255, 255, 255, 0.6);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.event-continuation-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1;
    z-index: 10;
    pointer-events: none;
}
