/* Timeline Container */
.timeline-container {
    position: relative;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

/* Timeline Hours */
.timeline-hours {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.timeline-hour {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #e0e0e0;
    height: 1px;
}

.timeline-hour-major {
    border-top: 2px solid #bbb;
}

.timeline-hour-minor {
    border-top: 1px dashed #e0e0e0;
}

.timeline-hour-label {
    position: absolute;
    left: 10px;
    top: -10px;
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Current Time Marker */
.current-time-marker {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #dc3545;
    z-index: 10;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
    animation: pulse 2s infinite;
}

.current-time-marker::before {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    width: 10px;
    height: 10px;
    background: #dc3545;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.7);
}

.current-time-label {
    position: absolute;
    right: 10px;
    top: -12px;
    background: #dc3545;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Timeline Bookings */
.timeline-bookings {
    position: relative;
    z-index: 5;
    padding: 0 100px 0 120px;
}

.timeline-booking {
    position: absolute;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    background: white;
    transition: all 0.3s ease;
    overflow: visible;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.timeline-booking:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
    z-index: 1000 !important;
    cursor: pointer;
}

/* Hide button - shows on hover */
.booking-hide-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.timeline-booking:hover .booking-hide-btn {
    opacity: 1;
}

/* Single column - full width */
.booking-columns-1 {
    left: 120px;
    right: 100px;
}

/* Two columns */
.booking-columns-2.booking-column-0 {
    left: 120px;
    width: calc(50% - 60px - 5px);
}

.booking-columns-2.booking-column-1 {
    left: calc(50% - 60px + 5px);
    right: 100px;
}

/* Three columns */
.booking-columns-3.booking-column-0 {
    left: 120px;
    width: calc(33.33% - 40px - 5px);
}

.booking-columns-3.booking-column-1 {
    left: calc(33.33% - 40px + 120px + 5px);
    width: calc(33.33% - 5px);
}

.booking-columns-3.booking-column-2 {
    left: calc(66.66% - 40px + 120px + 5px);
    right: 100px;
}

/* Four columns */
.booking-columns-4.booking-column-0 {
    left: 120px;
    width: calc(25% - 30px - 5px);
}

.booking-columns-4.booking-column-1 {
    left: calc(25% - 30px + 120px + 5px);
    width: calc(25% - 5px);
}

.booking-columns-4.booking-column-2 {
    left: calc(50% - 30px + 120px + 5px);
    width: calc(25% - 5px);
}

.booking-columns-4.booking-column-3 {
    left: calc(75% - 30px + 120px + 5px);
    right: 100px;
}

.booking-confirmed {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #d4edda 100%);
}

.booking-pending {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fff3cd 100%);
}

.booking-cancelled {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #f8d7da 100%);
    opacity: 0.7;
}

/* Header with time and status */
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 4px;
    padding-right: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.booking-time {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
}

.booking-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Content with horizontal layout */
.booking-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.booking-client-info {
    flex: 1;
    min-width: 0;
}

.booking-client {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-contact {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-service-info {
    flex: 1;
    min-width: 0;
}

.booking-service {
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-details {
    font-size: 0.75rem;
    color: #6c757d;
}

.booking-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.booking-actions .btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Remove old unused styles */
.booking-phone,
.booking-email {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-bookings {
        padding: 0 20px 0 80px;
    }

    .timeline-booking {
        font-size: 0.875rem;
        padding: 6px 8px;
        min-height: 70px;
    }

    .booking-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .booking-client-info,
    .booking-service-info {
        width: 100%;
    }

    .booking-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .timeline-hour-label {
        font-size: 0.75rem;
        padding: 1px 4px;
    }

    .current-time-label {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
}
