/* ===================================
   TIMELINE CALENDAR - 7 DAYS
   =================================== */

.timeline-calendar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.timeline-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-xs) 0;
}

.timeline-subtitle {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
}

/* Timeline Grid */
.timeline-grid {
    display: flex;
    flex-direction: column;
}

/* Days Header */
.timeline-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-light);
    border-bottom: 2px solid var(--border);
}

.day-header {
    padding: var(--spacing-md);
    text-align: center;
    border-right: 1px solid var(--border-light);
}

.day-header:last-child {
    border-right: none;
}

.day-header.is-today {
    background: var(--primary-light);
}

.day-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.day-header.is-today .day-name {
    color: var(--primary);
}

.day-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.day-header.is-today .day-number {
    color: var(--primary);
}

/* Timeline Body */
.timeline-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 500px;
}

.timeline-column {
    border-right: 1px solid var(--border-light);
    padding: var(--spacing-md);
    background: var(--white);
}

.timeline-column:last-child {
    border-right: none;
}

.timeline-column.is-today {
    background: rgba(91, 114, 242, 0.02);
}

/* Empty Day */
.empty-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

.empty-icon {
    font-size: 2rem;
    color: var(--border);
    opacity: 0.3;
}

/* Reservations Stack */
.reservations-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Reservation Block */
.reservation-block {
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.reservation-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reservation-block.pending {
    background: #FEF3C7;
    border-color: #F59E0B;
}

.reservation-block.confirmed {
    background: #D1FAE5;
    border-color: #10B981;
}

.block-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.block-customer {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.block-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.block-party {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.block-restaurant {
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Legend */
.timeline-legend {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-dot.pending {
    background: #F59E0B;
}

.legend-dot.confirmed {
    background: #10B981;
}

/* Responsive */
@media (max-width: 1400px) {
    .timeline-body {
        min-height: 450px;
    }

    .reservation-block {
        padding: 10px;
    }

    .block-time {
        font-size: 1rem;
    }

    .block-customer {
        font-size: 0.9rem;
    }
}

@media (max-width: 1200px) {
    .timeline-body {
        min-height: 400px;
    }

    .day-number {
        font-size: 1.25rem;
    }

    .reservation-block {
        padding: 8px;
    }

    .block-time {
        font-size: 0.95rem;
    }

    .block-customer {
        font-size: 0.85rem;
    }

    .block-party,
    .block-restaurant {
        font-size: 0.75rem;
    }
}

@media (max-width: 992px) {

    .timeline-days-header,
    .timeline-body {
        grid-template-columns: repeat(4, 1fr);
    }

    .timeline-column:nth-child(n+5) {
        display: none;
    }

    .day-header:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 768px) {

    .timeline-days-header,
    .timeline-body {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline-column:nth-child(n+4) {
        display: none;
    }

    .day-header:nth-child(n+4) {
        display: none;
    }
}