/**
 * Services Page Styles
 * v20260103a
 */

/* Content Container */
.services-content {
    padding: 0 24px 24px;
    max-width: 900px;
}

/* Legacy container support */
.sell-content {
    padding: 24px;
    max-width: 900px;
}

/* AI Explainer Banner */
.sell-explainer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    margin-bottom: 24px;
}

.sell-explainer-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0ea5e9;
    border-radius: 10px;
    color: white;
}

.sell-explainer-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 4px;
}

.sell-explainer-text p {
    font-size: 13px;
    color: #0369a1;
    margin: 0;
    line-height: 1.5;
}

/* Header */
.sell-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.sell-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

.sell-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.sell-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #FF6B35;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.sell-add-btn:hover {
    background: #e55a2b;
}

/* Services List */
.sell-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sell-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #64748b;
}

.sell-loading p {
    margin-top: 12px;
    font-size: 14px;
}

/* Service Card */
.sell-service-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sell-service-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sell-service-card.inactive {
    opacity: 0.7;
    background: #f8fafc;
}

.sell-service-info {
    flex: 1;
    min-width: 0;
}

.sell-service-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.sell-service-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.sell-inactive-badge {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.sell-service-description {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.sell-service-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.sell-service-duration,
.sell-service-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #475569;
}

.sell-service-duration svg,
.sell-service-price svg {
    color: #94a3b8;
}

.sell-service-price.sell-free {
    color: #22c55e;
}

.sell-payment-badge,
.sell-location-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
}

.sell-payment-badge.pay-at-visit {
    background: #f1f5f9;
    color: #64748b;
}

.sell-payment-badge.deposit {
    background: #fef3c7;
    color: #92400e;
}

.sell-payment-badge.full-payment {
    background: #dcfce7;
    color: #166534;
}

.sell-location-badge {
    background: #f0f9ff;
    color: #0369a1;
}

/* Service Actions */
.sell-service-actions {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.sell-service-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.sell-service-edit:hover {
    background: #f1f5f9;
    color: #1a1a2e;
    border-color: #cbd5e1;
}

/* Empty State */
.sell-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.sell-empty-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: #94a3b8;
    margin-bottom: 20px;
}

.sell-empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.sell-empty-state p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
}

/* Toast Notifications */
.sell-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #1a1a2e;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
}

.sell-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.sell-toast-success {
    background: #166534;
}

.sell-toast-error {
    background: #991b1b;
}

.sell-toast strong {
    font-weight: 600;
}

.sell-toast span {
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sell-content {
        padding: 16px;
    }

    .sell-explainer {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .sell-header {
        flex-direction: column;
        align-items: stretch;
    }

    .sell-add-btn {
        justify-content: center;
    }

    .sell-service-card {
        flex-direction: column;
        gap: 12px;
    }

    .sell-service-actions {
        margin-left: 0;
        align-self: flex-end;
    }

    .sell-service-meta {
        gap: 8px;
    }
}

/* Modal styling - reuse calendar modal styles */
#serviceModal.active,
#deleteConfirmModal[style*="flex"] {
    display: flex !important;
}

.modal-dialog-sm {
    max-width: 400px;
}
