/* Holiday Directory Frontend Styles */

.hd-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hd-form-container {
    background: linear-gradient(135deg, #347235 0%, #1F6357 100%); /* Beautiful sea green gradient */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.2);
    margin-bottom: 30px;
}

.hd-form-container h2 {
    margin: 0 0 20px;
    color: #fff; /* Changed to white for contrast */
    font-size: 24px;
}

.hd-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hd-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.hd-form-group {
    display: flex;
    flex-direction: column;
}

.hd-form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #fff; /* Changed to white for contrast */
    font-size: 14px;
}

.hd-form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.2s;
}

.hd-form-group select:focus {
    outline: none;
    border-color: #20B2AA; /* Complementary light sea green focus */
    box-shadow: 0 0 5px rgba(32, 178, 170, 0.3);
}

.hd-form-actions {
    margin-top: 10px;
}

.hd-submit-btn {
    background-color: #20B2AA; /* Light sea green button */
    color: #ffffff; /* White text */
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(32, 178, 170, 0.3);
}

.hd-submit-btn:hover {
    background-color: #1C9A92; /* Darker sea green on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.4);
}

.hd-results-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hd-results-header {
    background-color: #f8f9fa;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.hd-country-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hd-country-flag {
    width: 48px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.hd-country-name {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.hd-tourism-link {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.hd-tourism-link:hover {
    color: #45a049;
}

/* New button styles for the results header */
.hd-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hd-change-selection {
    background-color: #5F7F8A;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hd-change-selection:hover {
    background-color: #4A6670;
    transform: translateY(-1px);
}

.hd-tourism-btn {
    background-color: #2E8B57;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hd-tourism-btn:hover {
    background-color: #236B42;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.hd-results-table-wrapper {
    overflow-x: auto;
}

.hd-results-table {
    width: 100%;
    border-collapse: collapse;
}

.hd-results-table th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.hd-results-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.hd-results-table tr:hover {
    background-color: #f8f9fa;
}

.hd-results-table tr.hd-next-holiday {
    background-color: #DFFF00;
}

.hd-holiday-date {
    white-space: nowrap;
    font-weight: 500;
}

.hd-holiday-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.hd-holiday-type.national {
    background-color: #d4edda;
    color: #155724;
}

.hd-holiday-type.local {
    background-color: #d1ecf1;
    color: #0c5460;
}

.hd-add-calendar {
    background-color: #007bff;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.hd-add-calendar:hover {
    background-color: #0056b3;
}

.hd-no-results {
    padding: 40px;
    text-align: center;
    color: #6c757d;
}

.hd-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 20px;
}

.hd-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2E8B57; /* Changed spinner color to sea green */
    border-radius: 50%;
    animation: hd-spin 1s linear infinite;
}

@keyframes hd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hd-wrapper {
        padding: 10px;
    }
    
    .hd-form-container {
        padding: 20px;
    }
    
    .hd-results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .hd-header-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .hd-results-table {
        font-size: 14px;
    }
    
    .hd-results-table th,
    .hd-results-table td {
        padding: 8px;
    }
    
    .hd-results-table th:nth-child(5),
    .hd-results-table td:nth-child(5) {
        display: none; /* Hide description on mobile */
    }
}