/* --- Services & Pricing View --- */

/* Reusing .page-container and .section-header from shop-settings.css if available, 
   but ensuring we have specific styles here just in case or for overrides */

.service-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-title i {
    color: var(--primary-color);
    opacity: 0.8;
}

.service-body {
    padding: 0;
}

.pricing-rule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px dashed var(--border-color);
    transition: background-color 0.2s;
}

.pricing-rule-item:last-child {
    border-bottom: none;
}

.pricing-rule-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.rule-scope {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.scope-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.scope-badge .models {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0;
    margin-top: 4px;
    font-size: 0.8rem;
    line-height: 1.3;
}

.rule-price-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
}

.price-tag {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-muted);
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.empty-state-services {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-color);
    border-radius: 16px;
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.add-service-fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    z-index: 100;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}

.add-service-fab:hover {
    transform: scale(1.05);
}

/* Modal specific tweaks */
.modal-body .form-group label {
    font-weight: 500;
    color: var(--text-muted);
}

/* Cart FAB Animation */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Add Service Modal Styles --- */
.service-modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding-bottom: 50px;
}

.service-brand-selector {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s;
}

.service-brand-selector:hover {
    background: rgba(255, 255, 255, 0.05);
}

.brand-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-color);
}

.service-models-container {
    display: none;
    margin-top: 12px;
    padding-left: 28px;
    flex-wrap: wrap;
    gap: 8px;
}

.model-tag-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.model-tag-check:hover {
    background: rgba(255, 255, 255, 0.1);
}

.model-tag-check input:checked+span {
    color: var(--primary-color);
    font-weight: 500;
}

.scope-container {
    display: none;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 12px;
    background: var(--bg-color);
}

.scope-helper-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}