/**
 * DQA Schedule Month View
 * Calendar grid layout for monthly view
 */

/* ========================================= */
/* Month View Container */
/* ========================================= */
.dqa-month-view {
    width: 100%;
}

/* ========================================= */
/* Month Calendar Grid */
/* ========================================= */
.dqa-month-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

/* ========================================= */
/* Day Headers (Sun, Mon, Tue...) */
/* ========================================= */
.dqa-month-day-header {
    background-color: #f9fafb;
    color: #6b7280;
    text-align: center;
    padding: 1rem 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px solid #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================= */
/* Calendar Day Cells */
/* ========================================= */
.dqa-month-day-cell {
    min-height: 120px;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.dqa-month-day-cell:hover {
    background-color: #fafbfc;
}

/* Day number */
.dqa-month-day-number {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: block;
}

/* Days from other months */
.dqa-month-day-cell.other-month {
    background-color: #f9fafb;
}

.dqa-month-day-cell.other-month .dqa-month-day-number {
    color: #9ca3af;
}

.dqa-month-day-cell.other-month:hover {
    background-color: #f3f4f6;
}

/* Today highlighting */
.dqa-month-day-cell.today {
    background-color: var(--colorLavandaClaro2, rgba(198,193,223,0.1));
}

.dqa-month-day-cell.today .dqa-month-day-number {
    background-color: var(--colorMoradoOscuro, rgba(168,162,208,1));
    color: #fff;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.dqa-month-day-cell.today:hover {
    background-color: var(--colorLavandaClaro, rgba(198,193,223,0.3));
}

/* ========================================= */
/* Events Container */
/* ========================================= */
.dqa-month-events {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

/* ========================================= */
/* Event Items (Compact) */
/* ========================================= */
.dqa-month-event {
    background: linear-gradient(135deg, var(--colorLavandaClaro, rgba(198,193,223,0.3)) 0%, var(--colorLavanda, rgba(198,193,223,1)) 100%);
    border-left: 3px solid var(--colorMoradoOscuro, rgba(168,162,208,1));
    border-radius: 3px;
    padding: 0.4rem 0.6rem;
    font-size: 1.2rem;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.dqa-month-event:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(168, 162, 208, 0.3);
}

/* Personal Event Styling */
.dqa-month-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: 3px solid var(--colorVerde, rgba(211,216,152,1));
}

.dqa-month-event.personal-event:hover {
    box-shadow: 0 2px 8px rgba(211, 216, 152, 0.3);
}

/* Event time */
.dqa-month-event-time {
    font-weight: 600;
    color: #1f2937;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Event title */
.dqa-month-event-title {
    font-weight: 500;
    color: #4b5563;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* More events indicator */
.dqa-month-more-events {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 600;
    margin-top: 0.3rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    text-align: center;
    border-radius: 3px;
    transition: background-color 0.15s ease;
}

.dqa-month-more-events:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

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

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

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

/* ========================================= */
/* Responsive */
/* ========================================= */
@media screen and (max-width: 1024px) {
    .dqa-month-day-cell {
        min-height: 100px;
    }

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

    .dqa-month-event {
        font-size: 1.1rem;
        padding: 0.3rem 0.5rem;
    }
}

@media screen and (max-width: 768px) {
    .dqa-month-day-cell {
        min-height: 80px;
        padding: 0.3rem;
    }

    .dqa-month-day-number {
        font-size: 1.1rem;
    }

    .dqa-month-day-header {
        padding: 0.8rem 0.3rem;
        font-size: 1.1rem;
    }

    .dqa-month-event {
        font-size: 1rem;
        padding: 0.25rem 0.4rem;
    }

    /* Hide event titles on very small screens, only show time */
    .dqa-month-event-title {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .dqa-month-day-cell {
        min-height: 60px;
    }

    .dqa-month-day-number {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .dqa-month-event {
        font-size: 0.9rem;
        padding: 0.2rem 0.3rem;
    }
}
