/* Holidays-specific styles extending the main styles.css */

.holidays-container {
    max-width: 900px;
}

.holidays-content {
    background: #1c1c1e;
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 600px;
}

.holidays-header {
    text-align: center;
    margin-bottom: 30px;
}

.holidays-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.holidays-description {
    font-size: 1rem;
    color: #8e8e93;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Country Selector */
.country-selector {
    display: flex;
    background: #2c2c2e;
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.country-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #8e8e93;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    min-width: fit-content;
}

.country-tab:hover {
    color: #fff;
}

.country-tab.active {
    background: #007aff;
    color: #fff;
}

/* Holidays Tables */
.holidays-tables {
    position: relative;
}

.holidays-table {
    display: none;
}

.holidays-table.active {
    display: block;
}

.holidays-table h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    background: #2c2c2e;
}

.holidays-list {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.holidays-list thead {
    background: #3a3a3c;
}

.holidays-list th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid #48484a;
}

.holidays-list td {
    padding: 12px;
    color: #fff;
    border-bottom: 1px solid #48484a;
    transition: background-color 0.2s ease;
}

.holidays-list tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.holidays-list tr:last-child td {
    border-bottom: none;
}

/* Days count styling */
.days-count {
    color: #007aff !important;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.days-count.past {
    color: #8e8e93 !important;
}

.days-count.today {
    color: #30d158 !important;
    font-weight: 600;
}

.days-count.soon {
    color: #ff9f0a !important;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .holidays-container {
        max-width: 100%;
    }
    
    .holidays-content {
        padding: 30px 15px;
        margin: 0 10px;
    }
    
    .holidays-header h2 {
        font-size: 1.5rem;
    }
    
    .holidays-description {
        font-size: 0.9rem;
    }
    
    .country-selector {
        padding: 3px;
        gap: 1px;
    }
    
    .country-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .holidays-list {
        font-size: 13px;
    }
    
    .holidays-list th,
    .holidays-list td {
        padding: 10px 8px;
    }
    
    .holidays-table h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .holidays-content {
        padding: 20px 10px;
        min-height: 540px;
    }
    
    .holidays-header h2 {
        font-size: 1.3rem;
    }
    
    .holidays-description {
        font-size: 0.85rem;
    }
    
    .country-tab {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .holidays-list {
        font-size: 12px;
    }
    
    .holidays-list th,
    .holidays-list td {
        padding: 8px 6px;
    }
    
    .holidays-table h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
}

/* Animation for table switching */
.holidays-table {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar styling for webkit browsers */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #1c1c1e;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #48484a;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #5a5a5c;
}
