/* Calendar CSS - Styles for calendar and holiday management */

.calendar-container {
    max-width: 100%;
}

/* Calendar Rules Table */
.calendar-rules-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.calendar-rules-table th,
.calendar-rules-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--neutral-200);
}

.calendar-rules-table thead {
    background: var(--neutral-100);
}

.calendar-rules-table th {
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.calendar-rules-table tbody tr:hover {
    background: var(--neutral-50);
}

.calendar-rules-table tbody tr:nth-child(3n) {
    background: rgba(0,100,148,0.05);
}

/* Priority Badge */
.priority-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
}

.priority-high {
    background: var(--danger);
}

.priority-medium {
    background: var(--warning);
}

.priority-low {
    background: var(--info);
}

/* Exception Days Table */
.exception-days-table {
    width: 100%;
    border-collapse: collapse;
}

.exception-days-table th,
.exception-days-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--neutral-200);
}

.exception-days-table thead {
    background: var(--neutral-100);
}

.exception-days-table th {
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 0.85rem;
}

.exception-days-table tbody tr:hover {
    background: var(--neutral-50);
}

/* Holiday Type Badge */
.holiday-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.holiday-fixed {
    background: #e3f2fd;
    color: #1976d2;
}

.holiday-moving {
    background: #fce4ec;
    color: #c2185b;
}

/* Date Display */
.date-display {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--neutral-700);
}

.easter-offset {
    display: inline-block;
    padding: 2px 6px;
    background: var(--neutral-200);
    border-radius: 3px;
    font-size: 0.85rem;
}

/* Reference Days Section */
.reference-days-section {
    margin-top: 30px;
}

.reference-days-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.reference-days-table {
    width: 100%;
    border-collapse: collapse;
}

.reference-days-table th,
.reference-days-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid var(--neutral-300);
}

.reference-days-table thead {
    background: #e3f2fd;
}

.reference-days-table tbody tr:nth-child(odd) {
    background: #f5f5f5;
}

.reference-days-table tbody tr:nth-child(even) {
    background: white;
}

/* Test Result */
#test-result {
    margin-top: 20px;
}

#test-result h5 {
    margin-bottom: 10px;
    color: var(--primary);
}

#test-result p {
    margin: 5px 0;
}

#test-result strong {
    color: var(--neutral-800);
}

/* Add Exception Day Form */
.add-exception-form {
    background: var(--neutral-50);
    border: 1px dashed var(--neutral-300);
    border-radius: 6px;
    padding: 20px;
    margin-top: 15px;
}

.add-exception-form h5 {
    margin-bottom: 15px;
    color: var(--neutral-800);
}

.exception-form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.exception-form-group {
    flex: 1;
    min-width: 150px;
}

.exception-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: var(--neutral-700);
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Calendar Actions */
.calendar-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Loading State */
.calendar-loading {
    text-align: center;
    padding: 30px;
    color: var(--neutral-600);
}

/* Empty State */
.calendar-empty {
    text-align: center;
    padding: 30px;
    color: var(--neutral-600);
    background: var(--neutral-50);
    border: 1px dashed var(--neutral-300);
    border-radius: 6px;
}

.calendar-empty-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 10px;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .calendar-rules-table,
    .exception-days-table,
    .reference-days-table {
        font-size: 0.85rem;
    }
    
    .calendar-rules-table th,
    .calendar-rules-table td,
    .exception-days-table th,
    .exception-days-table td {
        padding: 8px;
    }
    
    .exception-form-row {
        flex-direction: column;
    }
}
