/**
 * Serenity Booking - Locations Page Styles
 * Production-Ready for ThemeForest
 * Path: admin/css/locations-page.css
 */

/* ========== LOCATIONS LIST PAGE ========== */
.serenity-locations-page {
    background: #f9fafb;
    margin: -20px -20px 0;
    padding: 30px;
    min-height: 100vh;
}

.serenity-page-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.serenity-page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111827;
}

.serenity-page-title i {
    color: #3b82f6;
}

.serenity-page-description {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.serenity-btn-primary {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.serenity-btn-primary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Empty State */
.serenity-empty-state {
    background: white;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.serenity-empty-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.serenity-empty-state h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.serenity-empty-state p {
    color: #6b7280;
    font-size: 16px;
    margin: 0 0 30px 0;
}

/* Locations Grid */
.serenity-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.serenity-location-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.serenity-location-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.serenity-location-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
}

.serenity-location-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.serenity-location-title h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.serenity-location-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.serenity-location-status.status-active {
    background: #d1fae5;
    color: #065f46;
}

.serenity-location-status.status-draft {
    background: #fee2e2;
    color: #991b1b;
}

.serenity-location-body {
    padding: 24px;
}

.serenity-location-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #4b5563;
    font-size: 14px;
}

.serenity-location-info:last-child {
    margin-bottom: 0;
}

.serenity-location-info i {
    width: 20px;
    color: #9ca3af;
}

.serenity-location-footer {
    padding: 20px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
}

.serenity-btn-secondary {
    flex: 1;
    background: #f3f4f6;
    color: #374151;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.serenity-btn-secondary:hover {
    background: #e5e7eb;
    color: #111827;
}

.serenity-btn-danger {
    background: #fee2e2;
    color: #dc2626;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: 1px solid #fecaca;
}

.serenity-btn-danger:hover {
    background: #fca5a5;
    color: white;
}

/* ========== EDIT/ADD LOCATION PAGE ========== */
.serenity-edit-location {
    background: #f9fafb;
    margin: -20px -20px 0;
    padding: 30px;
    min-height: 100vh;
}

.serenity-edit-header {
    background: white;
    border-radius: 12px;
    padding: 24px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.serenity-edit-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111827;
}

.serenity-edit-title i {
    color: #3b82f6;
}

.serenity-back-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.serenity-back-link:hover {
    color: #3b82f6;
}

.serenity-btn-save {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.serenity-btn-save:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Edit Grid */
.serenity-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.serenity-edit-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.serenity-hours-card {
    grid-column: 1 / -1;
}

.serenity-card-header-edit {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.serenity-card-header-edit h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}

.serenity-card-header-edit h2 i {
    color: #3b82f6;
}

.serenity-card-description {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.serenity-card-body-edit {
    padding: 24px;
}

/* Form Elements */
.serenity-form-group {
    margin-bottom: 20px;
}

.serenity-form-group:last-child {
    margin-bottom: 0;
}

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

.serenity-form-group label i {
    color: #9ca3af;
    margin-right: 4px;
}

.serenity-input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

.serenity-input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Operating Hours Grid */
.serenity-hours-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.serenity-day-row {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.serenity-day-row:hover {
    background: #f3f4f6;
}

.serenity-day-row.day-closed {
    background: #fee2e2;
    border-color: #fecaca;
    opacity: 0.6;
}

.serenity-day-name strong {
    color: #111827;
    font-size: 15px;
}

.serenity-day-times {
    display: flex;
    align-items: center;
    gap: 12px;
}

.serenity-time-input {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

.serenity-time-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.serenity-time-input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.time-separator {
    color: #6b7280;
    font-weight: 500;
}

.serenity-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

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

.serenity-hours-info {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 16px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    margin-top: 20px;
}

.serenity-hours-info i {
    color: #3b82f6;
    font-size: 18px;
    margin-top: 2px;
}

.serenity-hours-info p {
    margin: 0;
    font-size: 13px;
    color: #1e40af;
}

/* Info Box */
.serenity-info-box {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 20px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 24px;
}

.serenity-info-box i {
    color: #f59e0b;
    font-size: 20px;
    margin-top: 2px;
}

.serenity-info-box div {
    font-size: 14px;
    color: #92400e;
}

.serenity-info-box strong {
    color: #78350f;
}

/* Form Footer */
.serenity-form-footer {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.serenity-btn-cancel {
    background: #f3f4f6;
    color: #374151;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.serenity-btn-cancel:hover {
    background: #e5e7eb;
    color: #111827;
}

.serenity-btn-save-bottom {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.serenity-btn-save-bottom:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .serenity-page-header,
    .serenity-edit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .serenity-locations-grid {
        grid-template-columns: 1fr;
    }
    
    .serenity-edit-grid {
        grid-template-columns: 1fr;
    }
    
    .serenity-day-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .serenity-day-times {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Hide WordPress default footer on locations pages */
.wrap[class*="serenity"] #wpfooter {
    display: none !important;
}
