/**
 * Calendar styles for public and admin views
 * Shared calendar component styles
 */

/* Month container */
.month-container {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 30px;
}

.month-header {
    border-bottom: 2px solid #005B52;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.month-header h2 {
    color: #000000;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: capitalize;
}

/* Week section */
.week-section {
    margin-bottom: 40px;
    position: relative;
}

.week-section:last-child {
    margin-bottom: 0;
}

.week-section {
    border: 2px solid #005B52;
    padding: 20px;
    border-radius: 4px;
}

.week-section.current-week {
    background-color: #fffef0;
    border: 2px solid #fef752;
}

.week-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.week-section.current-week .week-header {
    border-bottom-color: #fef752;
}

.week-header h3 {
    color: #005B52;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.week-header .week-info {
    color: #666;
    font-size: 13px;
}

/* Week actions (for admin view) */
.week-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Schedule table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.schedule-table th {
    background-color: #005B52;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #004040;
}

.schedule-table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
    width: 20%;
}

.schedule-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.day-header {
    font-weight: 600;
    color: #000;
    font-size: 14px;
    text-align: center;
    background-color: #f5f5f5;
}

.day-header {
    border: 1px solid #005B52;
}

.day-header.current-day {
    background-color: #fef752 !important;
    color: #000 !important;
    font-weight: 700;
    border: 2px solid #fef752 !important;
}

.schedule-table td {
    border: 1px solid #005B52;
}

.schedule-table td.current-day-cell {
    background-color: #fffef0;
    border: 2px solid #fef752;
}

/* Time block */
.block-container {
    margin-bottom: 15px;
}

.block-container:last-child {
    margin-bottom: 0;
}

.block-header {
    font-weight: 600;
    color: #005B52;
    font-size: 14px;
    margin-bottom: 8px;
}

.block-header.closed {
    color: #B3B3B3;
    font-style: italic;
}

.receptionist {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.turn-card {
    margin-bottom: 6px;
    padding: 6px 8px;
    background-color: #f5f5f5;
    border-left: 3px solid #005B52;
}

.turn-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.turn-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.member-chip-public {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    font-size: 11px;
    margin-right: 4px;
    border-radius: 999px;
    color: #000000;
}

.no-parejas {
    font-size: 13px;
    color: #B3B3B3;
    font-style: italic;
}

.notes {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Hours summary table */
.hours-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #005B52;
}

.hours-summary h4 {
    color: #005B52;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hours-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.hours-summary-table thead {
    background-color: #f5f5f5;
}

.hours-summary-table th {
    padding: 6px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

.hours-summary-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.hours-summary-table .text-right {
    text-align: right;
}

.hours-summary-table .positive {
    color: #2e7d32;
    font-weight: 600;
}

.hours-summary-table .negative {
    color: #c62828;
    font-weight: 600;
}

.hours-summary-note {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}

/* Navigation */
.week-navigation {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-button {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #000;
    color: #000;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0px;
}

.nav-button:hover:not(:disabled) {
    background-color: #000;
    color: #fff;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive styles */
@media (max-width: 768px) {
    .month-container {
        padding: 15px;
    }

    .week-section {
        padding: 12px;
        margin-bottom: 25px;
    }

    .week-header h3 {
        font-size: 16px;
    }

    .week-header .week-info {
        font-size: 12px;
    }

    .schedule-table th {
        padding: 5px 4px;
        font-size: 10px;
    }

    .schedule-table td {
        padding: 5px 4px;
        font-size: 10px;
    }

    .day-header {
        font-size: 12px;
    }

    .block-header {
        font-size: 11px;
    }

    .receptionist {
        font-size: 11px;
    }

    .turn-card {
        padding: 4px 6px;
    }

    .turn-card-title {
        font-size: 11px;
    }

    .member-chip-public {
        font-size: 10px;
        padding: 1px 4px;
    }

    .no-parejas {
        font-size: 11px;
    }

    .notes {
        font-size: 11px;
    }

    .month-header {
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .month-header h2 {
        font-size: 22px;
    }

    .week-navigation {
        padding: 12px;
    }

    .nav-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .hours-summary {
        margin-top: 15px;
        padding-top: 10px;
    }

    .hours-summary h4 {
        font-size: 14px;
    }

    .hours-summary-table {
        font-size: 11px;
    }

    .hours-summary-table th,
    .hours-summary-table td {
        padding: 4px 6px;
    }

    .hours-summary-note {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .month-container {
        padding: 10px;
    }

    .week-section {
        padding: 8px;
        margin-bottom: 20px;
    }

    .schedule-table th {
        padding: 3px 2px;
        font-size: 9px;
    }

    .schedule-table td {
        padding: 3px 2px;
        font-size: 9px;
    }

    .day-header {
        font-size: 11px;
    }

    .block-header {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .receptionist {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .turn-card {
        padding: 3px 4px;
        margin-bottom: 4px;
    }

    .turn-card-title {
        font-size: 10px;
    }

    .member-chip-public {
        font-size: 8px;
        padding: 1px 2px;
    }

    .no-parejas {
        font-size: 10px;
    }

    .notes {
        font-size: 10px;
    }

    .week-navigation {
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .nav-button {
        flex: 1;
        padding: 7px;
        font-size: 10px;
    }
}

