/* css/holiday_settings.css */

/* --- Main Layout (from shop_settings.css) --- */
.shop-settings-main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

#holidaySettingsForm {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* --- Form Elements (from shop_settings.css) --- */
.form-fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.form-legend {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    padding: 0 0.75rem;
    margin-left: -0.75rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
    margin-top: 1.5rem;
}

.col-span-3 { grid-column: span 3 / span 3; }

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .col-span-3 {
        grid-column: span 1 / span 1;
    }
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* --- Holiday Page Specific Styles --- */
.add-holiday-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.add-holiday-controls .form-input {
    width: auto; /* Allow date input to shrink */
    min-width: 150px;
}

.holiday-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    background-color: #f9fafb; /* Add a slight background color */
}

.holiday-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.holiday-list li:last-child {
    border-bottom: none;
}

.holiday-list .empty-message {
    color: #6b7280;
    text-align: center;
    padding: 1.5rem;
    justify-content: center; /* Ensure it's centered */
}

.btn-delete-holiday {
    background: none;
    border: none;
    color: #ef4444; /* red-500 */
    font-size: 1.5rem; /* Slightly larger for easier clicking */
    cursor: pointer;
    padding: 0;
    line-height: 1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-delete-holiday:hover {
    background-color: #fee2e2; /* red-100 */
}

/* --- Action Panel (from shop_settings.css) --- */
.form-actions-panel {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 2rem;
    margin-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.form-actions-panel .btn {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}