/**
 * Service Manager Styles
 * Professional styling for mentor service creation and management
 *
 * @package EduBooking_Pro
 * @version 2.3.0
 */

/* ==========================================================================
   Service Manager Container
   ========================================================================== */

.ebp-service-manager {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.ebp-service-manager h2 {
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ebp-service-manager h2 .dashicons {
    color: #667eea;
    width: 32px;
    height: 32px;
    font-size: 32px;
}

.ebp-service-manager-description {
    color: #64748b;
    font-size: 15px;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

/* ==========================================================================
   Service Manager Header
   ========================================================================== */

.ebp-service-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.ebp-create-service-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ebp-create-service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ebp-create-service-btn:active {
    transform: translateY(0);
}

.ebp-create-service-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */

.ebp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* Service Card */
.ebp-service-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ebp-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ebp-service-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

.ebp-service-card:hover::before {
    transform: scaleX(1);
}

/* Service Image */
.ebp-service-card-image {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ebp-service-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 48px;
}

/* Service Header */
.ebp-service-card-header {
    margin-bottom: 16px;
}

.ebp-service-card-title {
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ebp-service-card-category {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Service Meta */
.ebp-service-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.ebp-service-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 14px;
}

.ebp-service-meta-item .dashicons {
    color: #667eea;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ebp-service-meta-item strong {
    color: #1e293b;
    font-weight: 600;
}

/* Service Price */
.ebp-service-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

.ebp-service-price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.ebp-service-price-period {
    color: #64748b;
    font-size: 14px;
}

/* Service Description */
.ebp-service-card-description {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Service Status Badge */
.ebp-service-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.ebp-service-status-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ebp-service-status-badge.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.ebp-service-status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.ebp-service-status-badge.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Rejection Note */
.ebp-service-rejection-note {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.ebp-service-rejection-note strong {
    color: #991b1b;
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}

.ebp-service-rejection-note p {
    color: #dc2626;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Service Actions */
.ebp-service-card-actions {
    display: flex;
    gap: 8px;
}

.ebp-service-action-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ebp-service-action-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ebp-service-action-btn.btn-edit {
    background: #667eea;
    color: #ffffff;
}

.ebp-service-action-btn.btn-edit:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ebp-service-action-btn.btn-delete {
    background: #ef4444;
    color: #ffffff;
}

.ebp-service-action-btn.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Service Modal
   ========================================================================== */

.ebp-service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.ebp-service-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ebp-service-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

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

/* Modal Header */
.ebp-service-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 24px 30px;
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.ebp-service-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ebp-service-modal-header h3 .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.ebp-service-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ebp-service-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ebp-service-modal-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Modal Body */
.ebp-service-modal-body {
    padding: 30px;
}

/* Form Styles */
.ebp-service-form-group {
    margin-bottom: 24px;
}

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

.ebp-service-form-group label .required {
    color: #ef4444;
    margin-left: 4px;
}

.ebp-service-form-group input[type="text"],
.ebp-service-form-group input[type="number"],
.ebp-service-form-group select,
.ebp-service-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ebp-service-form-group input[type="text"]:focus,
.ebp-service-form-group input[type="number"]:focus,
.ebp-service-form-group select:focus,
.ebp-service-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ebp-service-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

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

/* Two Column Layout */
.ebp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Features List */
.ebp-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.ebp-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
}

.ebp-feature-item input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 4px;
    font-size: 14px;
}

.ebp-feature-item button {
    background: #ef4444;
    color: #ffffff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ebp-feature-item button:hover {
    background: #dc2626;
}

.ebp-add-feature-btn {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.ebp-add-feature-btn:hover {
    background: #059669;
}

/* Image Upload */
.ebp-service-image-preview {
    margin-top: 12px;
    position: relative;
    display: inline-block;
}

.ebp-service-image-preview img {
    max-width: 200px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.ebp-remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.ebp-remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Modal Footer */
.ebp-service-modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

.ebp-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ebp-modal-btn.btn-cancel {
    background: #e2e8f0;
    color: #475569;
}

.ebp-modal-btn.btn-cancel:hover {
    background: #cbd5e1;
}

.ebp-modal-btn.btn-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ebp-modal-btn.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ebp-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.ebp-services-empty {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.ebp-services-empty .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.ebp-services-empty h3 {
    color: #475569;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.ebp-services-empty p {
    color: #64748b;
    font-size: 15px;
    margin: 0 0 24px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.ebp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    overflow-y: auto;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ebp-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

.ebp-modal-large {
    max-width: 1000px;
}

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

.ebp-modal-header {
    padding: 24px 30px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px 16px 0 0;
}

.ebp-modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ebp-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.ebp-modal-close:hover {
    background: #f1f5f9;
    color: #475569;
    transform: rotate(90deg);
}

.ebp-modal-body {
    padding: 30px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

/* Custom scrollbar for modal body */
.ebp-modal-body::-webkit-scrollbar {
    width: 8px;
}

.ebp-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.ebp-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.ebp-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.ebp-modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

/* Responsive modal */
@media (max-width: 768px) {
    .ebp-modal {
        padding: 10px;
    }

    .ebp-modal-content {
        margin: 20px auto;
    }

    .ebp-modal-header {
        padding: 20px;
    }

    .ebp-modal-header h3 {
        font-size: 20px;
    }

    .ebp-modal-body {
        padding: 20px;
        max-height: calc(100vh - 200px);
    }

    .ebp-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .ebp-modal-footer .ebp-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.ebp-form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f1f5f9;
}

.ebp-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ebp-form-section h4 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ebp-section-desc {
    color: #64748b;
    font-size: 14px;
    margin: -8px 0 20px 0;
    line-height: 1.6;
}

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

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

.ebp-form-group label .required {
    color: #ef4444;
    margin-left: 4px;
}

.ebp-form-group input[type="text"],
.ebp-form-group input[type="number"],
.ebp-form-group input[type="email"],
.ebp-form-group input[type="file"],
.ebp-form-group select,
.ebp-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #ffffff;
}

.ebp-form-group input[type="text"]:focus,
.ebp-form-group input[type="number"]:focus,
.ebp-form-group input[type="email"]:focus,
.ebp-form-group select:focus,
.ebp-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ebp-form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.ebp-form-group small {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.5;
}

.ebp-form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #667eea;
    cursor: pointer;
}

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

/* File input styling */
.ebp-form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.ebp-form-group input[type="file"]::file-selector-button {
    padding: 8px 16px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.ebp-form-group input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Duration selector */
.ebp-duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.ebp-duration-option {
    cursor: pointer;
    position: relative;
}

.ebp-duration-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ebp-duration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 100px;
}

.ebp-duration-time {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}

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

.ebp-duration-option input:checked + .ebp-duration-card {
    border-color: #667eea;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.ebp-duration-option:hover .ebp-duration-card {
    border-color: #a5b4fc;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

/* Simplified schedule builder */
.ebp-schedule-builder-simple {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.ebp-schedule-day-simple {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
}

.ebp-schedule-day-simple.day-active {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.ebp-day-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.ebp-day-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.ebp-day-name {
    flex: 1;
}

.ebp-day-times {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.ebp-time-slots-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.ebp-time-range {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.ebp-remove-time-slot {
    background: #ef4444;
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ebp-remove-time-slot:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.ebp-remove-time-slot .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.ebp-add-time-slot {
    background: #667eea;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ebp-add-time-slot:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.ebp-add-time-slot .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.ebp-time-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease;
    background: #ffffff;
}

.ebp-time-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ebp-time-separator {
    color: #94a3b8;
    font-weight: 600;
    font-size: 18px;
}

.ebp-schedule-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
    font-size: 14px;
    color: #1e40af;
    line-height: 1.6;
}

.ebp-schedule-note .dashicons {
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Service message (success/error) */
#ebp-service-message {
    margin: 20px 0;
    padding: 0;
    min-height: 0;
}

#ebp-service-message .ebp-service-alert {
    margin-bottom: 0;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.ebp-service-loading {
    text-align: center;
    padding: 40px 20px;
}

.ebp-service-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f1f5f9;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.dashicons.rotating {
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.ebp-service-loading p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

/* ==========================================================================
   Alert Messages
   ========================================================================== */

.ebp-service-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
}

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

.ebp-service-alert .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ebp-service-alert.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.ebp-service-alert.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.ebp-service-alert.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.ebp-service-alert.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .ebp-services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ebp-service-manager {
        padding: 20px;
    }

    .ebp-service-manager h2 {
        font-size: 24px;
    }

    .ebp-service-manager-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .ebp-create-service-btn {
        width: 100%;
        justify-content: center;
    }

    .ebp-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ebp-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ebp-service-modal-content {
        max-height: 95vh;
    }

    .ebp-service-modal-header,
    .ebp-service-modal-body,
    .ebp-service-modal-footer {
        padding: 20px;
    }

    .ebp-service-modal-footer {
        flex-direction: column-reverse;
    }

    .ebp-modal-btn {
        width: 100%;
        justify-content: center;
    }

    .ebp-service-card-actions {
        flex-direction: column;
    }

    .ebp-service-card-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .ebp-service-manager {
        padding: 16px;
        border-radius: 8px;
    }

    .ebp-service-manager h2 {
        font-size: 20px;
    }

    .ebp-service-manager h2 .dashicons {
        width: 24px;
        height: 24px;
        font-size: 24px;
    }

    .ebp-service-card {
        padding: 16px;
    }

    .ebp-service-card-title {
        font-size: 18px;
    }

    .ebp-service-price-amount {
        font-size: 28px;
    }

    .ebp-service-modal-header h3 {
        font-size: 20px;
    }

    .ebp-services-empty {
        padding: 40px 16px;
    }

    .ebp-services-empty .dashicons {
        font-size: 60px;
        width: 60px;
        height: 60px;
    }

    .ebp-services-empty h3 {
        font-size: 18px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .ebp-service-manager-header,
    .ebp-service-card-actions,
    .ebp-create-service-btn,
    .ebp-service-modal {
        display: none !important;
    }

    .ebp-service-card {
        break-inside: avoid;
        border: 1px solid #000;
    }
}

/* ==========================================================================
   Dark Mode Support (Ready for theme integration)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .ebp-service-manager {
        background: #1e293b;
    }

    .ebp-service-manager h2,
    .ebp-service-card-title {
        color: #f1f5f9;
    }

    .ebp-service-manager-description,
    .ebp-service-meta-item,
    .ebp-service-price-period,
    .ebp-service-card-description {
        color: #cbd5e1;
    }

    .ebp-service-card {
        background: #334155;
        border-color: #475569;
    }

    .ebp-service-modal-content {
        background: #1e293b;
    }

    .ebp-service-form-group input[type="text"],
    .ebp-service-form-group input[type="number"],
    .ebp-service-form-group select,
    .ebp-service-form-group textarea {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }

    .ebp-feature-item {
        background: #334155;
        border-color: #475569;
    }

    .ebp-service-modal-footer {
        background: #334155;
        border-color: #475569;
    }
}
/* ==========================================================================
   Schedule Builder Styles
   ========================================================================== */

.ebp-schedule-builder {
    margin-top: 20px;
}

.ebp-section-desc {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ebp-schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

.ebp-schedule-day {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ebp-schedule-day.day-active {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.ebp-day-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.ebp-day-header:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.ebp-schedule-day.day-active .ebp-day-header {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-bottom-color: #c7d2fe;
}

.ebp-day-header label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.ebp-day-header strong {
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
}

.ebp-day-toggle {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.ebp-day-times {
    padding: 18px;
    background: #ffffff;
}

.ebp-time-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.ebp-time-slot-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.ebp-time-slot-row:hover {
    border-color: #c7d2fe;
    background: #fafbff;
}

.ebp-time-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease;
}

.ebp-time-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ebp-time-separator {
    color: #94a3b8;
    font-weight: 600;
    font-size: 16px;
}

.ebp-btn-icon {
    background: #ef4444;
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ebp-btn-icon:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.ebp-btn-icon .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.ebp-btn-small {
    background: #667eea;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ebp-btn-small:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.ebp-btn-small .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.ebp-schedule-help {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
}

.ebp-schedule-help p {
    margin: 0 0 10px 0;
    color: #1e40af;
    font-weight: 600;
    font-size: 14px;
}

.ebp-schedule-help ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.ebp-schedule-help li {
    color: #1e3a8a;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 6px;
}

/* Schedule Builder Responsive */
@media (max-width: 768px) {
    .ebp-time-slot-row {
        flex-direction: column;
        gap: 8px;
    }

    .ebp-time-separator {
        display: none;
    }

    .ebp-time-input {
        width: 100%;
    }

    .ebp-btn-icon {
        align-self: flex-end;
    }

    .ebp-schedule-grid {
        gap: 12px;
    }
}

/* Schedule Validation States */
.ebp-time-slot-row.error {
    border-color: #ef4444;
    background: #fee2e2;
}

.ebp-time-slot-row.error .ebp-time-input {
    border-color: #ef4444;
}

.ebp-schedule-error {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #991b1b;
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fee2e2;
    border-radius: 6px;
}

.ebp-schedule-error .dashicons {
    color: #ef4444;
    width: 16px;
    height: 16px;
    font-size: 16px;
    flex-shrink: 0;
}

/* Schedule Summary Badge */
.ebp-schedule-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
}

.ebp-schedule-summary .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Rotating animation for loading states */
@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotating 1s linear infinite;
}

/* Dark mode for schedule builder */
@media (prefers-color-scheme: dark) {
    .ebp-schedule-day {
        background: #334155;
        border-color: #475569;
    }

    .ebp-schedule-day.day-active {
        border-color: #667eea;
        background: #1e293b;
    }

    .ebp-day-header {
        background: linear-gradient(135deg, #334155 0%, #475569 100%);
        border-bottom-color: #475569;
    }

    .ebp-schedule-day.day-active .ebp-day-header {
        background: linear-gradient(135deg, #312e81 0%, #3730a3 100%);
        border-bottom-color: #4f46e5;
    }

    .ebp-day-header strong {
        color: #f1f5f9;
    }

    .ebp-day-times {
        background: #1e293b;
    }

    .ebp-time-slot-row {
        background: #334155;
        border-color: #475569;
    }

    .ebp-time-slot-row:hover {
        border-color: #6366f1;
        background: #3730a3;
    }

    .ebp-time-input {
        background: #1e293b;
        border-color: #475569;
        color: #f1f5f9;
    }

    .ebp-time-separator {
        color: #cbd5e1;
    }

    .ebp-schedule-help {
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
        border-left-color: #3b82f6;
    }

    .ebp-schedule-help p,
    .ebp-schedule-help li {
        color: #dbeafe;
    }
}
