/**
 * DQA Schedule Day View
 * Vertical timeline layout for single day view
 */

/* ========================================= */
/* Day View Container */
/* ========================================= */
.dqa-day-view {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================= */
/* Day Header (Date Info) */
/* ========================================= */
.dqa-day-header {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.dqa-day-date {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.dqa-day-weekday {
    font-size: 1.4rem;
    font-weight: 500;
    color: #6b7280;
}

/* ========================================= */
/* Timeline Container */
/* ========================================= */
.dqa-day-timeline {
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

/* ========================================= */
/* Hour Rows */
/* ========================================= */
.dqa-day-hour-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    min-height: 80px;
    border-bottom: 1px solid #e5e7eb;
}

.dqa-day-hour-row:last-child {
    border-bottom: none;
}

/* Time label (left column) */
.dqa-day-hour-label {
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    text-align: right;
    font-size: 1.3rem;
    font-weight: 500;
    color: #6b7280;
    border-right: 2px solid #d1d5db;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

/* Event container (right column) */
.dqa-day-hour-content {
    padding: 0.5rem;
    position: relative;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
    overflow: visible; /* Allow events to overflow into rows below */
}

.dqa-day-hour-content:hover {
    background-color: #fafbfc;
}

/* ========================================= */
/* Events */
/* ========================================= */
.dqa-day-event {
    background: linear-gradient(135deg, var(--colorLavandaClaro, rgba(198,193,223,0.3)) 0%, var(--colorLavanda, rgba(198,193,223,1)) 100%);
    border-left: 4px solid var(--colorMoradoOscuro, rgba(168,162,208,1));
    border-radius: 4px;
    padding: 1rem 1.2rem;
    margin: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 5;
    /* min-height is set dynamically via inline style based on duration */
}

.dqa-day-event:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(168, 162, 208, 0.4);
    z-index: 10;
}

/* Personal Event Styling */
.dqa-day-event.personal-event {
    background: linear-gradient(135deg, var(--colorVerde3, rgba(211,216,152,0.2)) 0%, var(--colorVerde2, rgba(211,216,152,0.3)) 100%);
    border-left: 4px solid var(--colorVerde, rgba(211,216,152,1));
}

.dqa-day-event.personal-event:hover {
    box-shadow: 0 4px 12px rgba(211, 216, 152, 0.4);
}

/* Event title */
.dqa-day-event-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Event time */
.dqa-day-event-time {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dqa-day-event-time i {
    color: var(--colorMoradoOscuro, rgba(168,162,208,1));
}

/* Event teacher */
.dqa-day-event-teacher {
    font-size: 1.2rem;
    font-weight: 500;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dqa-day-event-teacher i {
    color: var(--colorMoradoOscuro, rgba(168,162,208,1));
}

/* ========================================= */
/* Current Time Indicator */
/* ========================================= */
.dqa-day-current-time {
    position: relative;
}

.dqa-day-current-time::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background-color: var(--colorMoradoOscuro, rgba(168,162,208,1));
    z-index: 10;
}

.dqa-day-current-time::after {
    content: '';
    position: absolute;
    left: -6px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--colorMoradoOscuro, rgba(168,162,208,1));
    z-index: 11;
}

/* ========================================= */
/* Empty State */
/* ========================================= */
.dqa-day-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.dqa-day-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.dqa-day-empty-text {
    font-size: 1.6rem;
    font-weight: 500;
}

/* ========================================= */
/* Responsive */
/* ========================================= */
@media screen and (max-width: 768px) {
    .dqa-day-view {
        max-width: 100%;
    }

    .dqa-day-header {
        padding: 1rem 1.5rem;
    }

    .dqa-day-date {
        font-size: 1.6rem;
    }

    .dqa-day-weekday {
        font-size: 1.2rem;
    }

    .dqa-day-hour-row {
        grid-template-columns: 70px 1fr;
        min-height: 70px;
    }

    .dqa-day-hour-label {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }

    .dqa-day-event {
        padding: 0.8rem 1rem;
        margin: 0.4rem;
    }

    .dqa-day-event-title {
        font-size: 1.4rem;
    }

    .dqa-day-event-time {
        font-size: 1.2rem;
    }

    .dqa-day-event-teacher {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .dqa-day-hour-row {
        grid-template-columns: 60px 1fr;
        min-height: 60px;
    }

    .dqa-day-hour-label {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }

    .dqa-day-event {
        padding: 0.6rem 0.8rem;
        margin: 0.3rem;
    }

    .dqa-day-event-title {
        font-size: 1.3rem;
    }

    .dqa-day-event-time {
        font-size: 1.1rem;
    }

    .dqa-day-event-teacher {
        font-size: 1rem;
    }
}
