/* Serenity Booking - Modern Holidays Page */

.serenity-holidays-wrap {
    background: #f5f5f5;
    margin: -20px -20px 0 -10px;
    padding: 0;
    min-height: calc(100vh - 32px);
}

/* Header */
.serenity-holidays-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 40px 40px 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.serenity-holidays-header h1 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
}

.serenity-holidays-header .description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    margin: 0;
}

.add-holiday-btn {
    background: white !important;
    color: #f5576c !important;
    border: none !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    text-shadow: none !important;
}

.add-holiday-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Stats Cards */
.holidays-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px 40px;
    background: #f5f5f5;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 40px;
    line-height: 1;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Filters */
.holidays-filters {
    background: white;
    padding: 20px 40px;
    display: flex;
    gap: 20px;
    align-items: center;
    border-top: 1px solid #e1e8ed;
    border-bottom: 1px solid #e1e8ed;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.filter-group select {
    padding: 8px 32px 8px 12px;
    border: 1.5px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

.search-group {
    margin-left: auto;
}

.search-group input {
    padding: 8px 16px;
    border: 1.5px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
    transition: all 0.2s ease;
}

.search-group input:focus {
    border-color: #f5576c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.1);
}

/* Holidays Grid */
.holidays-grid {
    padding: 30px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.holiday-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1.5px solid #e1e8ed;
    transition: all 0.3s ease;
    position: relative;
}

.holiday-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #f5576c;
}

.holiday-card.past-holiday {
    opacity: 0.7;
}

.holiday-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.holiday-title-section {
    flex: 1;
}

.holiday-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
}

.badge-recurring {
    background: #dbeafe;
    color: #1e40af;
}

.badge-upcoming {
    background: #d1fae5;
    color: #065f46;
}

.badge-past {
    background: #fee2e2;
    color: #991b1b;
}

.delete-holiday-btn {
    background: #fee2e2;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.delete-holiday-btn:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.holiday-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.holiday-dates {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.date-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.date-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.date-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

.holiday-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.duration-badge,
.locations-badge {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

/* No Holidays State */
.no-holidays {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-holidays-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-holidays h3 {
    font-size: 24px;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.no-holidays p {
    color: #64748b;
    font-size: 16px;
}

/* Modal */
.serenity-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.serenity-modal-hidden,
.serenity-modal[style="display: none;"] {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 24px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    line-height: 1;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

#add-holiday-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #f5576c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1.5px solid #e1e8ed;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: #f1f5f9;
    border-color: #f5576c;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
    font-weight: 600;
    color: #334155;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 30px;
    border-top: 1px solid #e1e8ed;
}

.modal-footer .button {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 6px;
}

.modal-footer .button-primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.modal-footer .button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 87, 108, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .holidays-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 782px) {
    .serenity-holidays-wrap {
        margin: -10px -10px 0 -10px;
    }
    
    .serenity-holidays-header {
        flex-direction: column;
        padding: 30px 20px 20px;
    }
    
    .add-holiday-btn {
        width: 100%;
        margin-top: 20px;
    }
    
    .holidays-stats {
        padding: 20px;
        grid-template-columns: 1fr;
    }
    
    .holidays-filters {
        flex-direction: column;
        padding: 15px 20px;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select,
    .search-group input {
        width: 100%;
    }
    
    .search-group {
        margin-left: 0;
    }
    
    .holidays-grid {
        padding: 20px;
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Ensure edit modal matches add modal styling */
#edit-holiday-modal .modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

#edit-holiday-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px 12px 0 0;
}

#edit-holiday-modal .modal-header h2 {
    color: white;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

#edit-holiday-modal .form-group {
    margin-bottom: 20px;
}

#edit-holiday-modal .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

#edit-holiday-modal .form-group input[type="text"],
#edit-holiday-modal .form-group input[type="date"],
#edit-holiday-modal .form-group textarea,
#edit-holiday-modal .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

#edit-holiday-modal .form-group input:focus,
#edit-holiday-modal .form-group textarea:focus,
#edit-holiday-modal .form-group select:focus {
    outline: none;
    border-color: #667eea;
}

#edit-holiday-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

#edit-holiday-modal .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
}

#edit-holiday-modal .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#edit-holiday-modal .modal-footer {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

#edit-holiday-modal .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

#edit-holiday-modal .button-primary:hover {
    transform: translateY(-2px);
}

#edit-holiday-modal form {
    padding: 30px;
}

#edit-holiday-modal small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
}

/* Style edit button to match delete button */
.edit-holiday-btn {
    background: #e8eaf6;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.edit-holiday-btn:hover {
    background: #c5cae9;
    transform: scale(1.05);
}

.holiday-actions {
    display: flex;
    gap: 8px;
}

/* Serenity Studios Branding Footer */
.serenity-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.serenity-branding {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.serenity-branding-text {
    color: #94a3b8;
}

.serenity-branding-link {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
}

.serenity-branding-link:hover {
    opacity: 0.8;
}

.serenity-branding-tagline {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 4px;
}

/* Hide WordPress default footer on holidays pages */
.wrap.serenity-holidays-wrap #wpfooter {
    display: none !important;
}
