/* Sale Wizard - Target Management Theme */
.sale-wizard-container {
    position: relative;
    background: transparent;
    border-radius: 12px;
    overflow: visible;
}

/* Steps Header Styling - Theme Matching */
.wizard-steps-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 30px 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.wizard-steps-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.wizard-steps-header h2 {
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    font-size: 1.8rem;
}

.wizard-steps-header p {
    opacity: 0.9;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

/* Steps Navigation - Card Style */
.wizard-steps-nav {
    display: flex;
    justify-content: center;
    background: #f8f9fa;
    padding: 25px 20px;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
}

.steps-indicator {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 60px;
    right: 60px;
    height: 3px;
    background: #dee2e6;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    border: 3px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.step-icon i {
    font-size: 1.6rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step-label {
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
}

/* Active Step - Theme Colors */
.step-item.active .step-icon {
    border-color: var(--primary);
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

.step-item.active .step-icon i {
    color: white;
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step-item.active .step-number {
    background: var(--primary) !important;
    font-weight: 700;
}


/* Completed Step */
.step-item.completed .step-number {
    border-color: var(--bs-gray-500) !important;
    background: var(--bs-gray-500) !important;
    box-shadow: 0 8px 25px rgba(var(--success-rgb), 0.3);
}

.step-item.completed .step-icon i {
    color: white;
}

.step-item.completed .step-label {
    color: var(--success);
    font-weight: 600;
}

/* Steps Content - Card Integration */
.wizard-steps-content {
    min-height: 500px;
    background: #fff;
}

.step-content {
    display: none;
    animation: fadeInUp 0.4s ease;
    padding: 0;
}

.step-content.active {
    display: block;
}

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

/* Step Cards - Theme Integration */
.step-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.step-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.step-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.step-card-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.step-card-icon i {
    color: white;
    font-size: 1.4rem;
}

.step-card-title {
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    font-size: 1.4rem;
}

/* Customer Info Display - Theme Integration */
.customer-info-display {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.2);
}

.customer-info-display::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
}

.customer-info-content {
    position: relative;
    z-index: 2;
}

.customer-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.customer-avatar i {
    font-size: 1.8rem;
    color: white;
}

/* Product Grid Enhancements - Theme Colors */
.products-grid-container {
    transition: all 0.3s ease;
}

.product-card {
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.15);
}

.product-card.item-selected {
    border-color: var(--success);
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e9 100%);
    box-shadow: 0 8px 25px rgba(var(--success-rgb), 0.2);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.product-price {
    font-weight: 700;
    color: var(--success);
    font-size: 1.3rem;
}

.product-weight {
    color: #6c757d;
    font-weight: 600;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* List View Enhancements */
#products-list.list .product-card {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 12px;
    border-radius: 12px;
}

#products-list.list .product-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-right: 25px;
    border-radius: 8px;
}

#products-list.list .product-info {
    flex: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#products-list.list .product-details {
    margin-top: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Search Section - Theme Integration */
.search-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 20px;
    border: 1px solid #e9ecef;
}

.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 50px;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 1rem;
    height: 50px;
}

.search-box .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 3;
    font-size: 1.1rem;
}

/* View Toggle Buttons - Theme Integration */
.view-toggle-buttons .btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    font-size: 0.95rem;
}

.view-toggle-buttons .btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.view-toggle-buttons .btn:not(.active):hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success States */
.success-check {
    color: var(--success);
    animation: bounceIn 0.6s ease;
    font-size: 2rem;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Progress Bar */
.progress-container {
    margin: 20px;
    padding: 0 10px;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.4s ease;
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
}

.nav-btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateX(-3px);
}

.btn-next {
    background: var(--primary);
    color: white;
}

.btn-next:hover {
    background: var(--primary-dark);
    transform: translateX(3px);
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-steps-nav {
        padding: 20px 15px;
    }
    
    .steps-indicator {
        gap: 25px;
    }
    
    .steps-indicator::before {
        left: 40px;
        right: 40px;
    }
    
    .step-icon {
        width: 55px;
        height: 55px;
    }
    
    .step-icon i {
        font-size: 1.3rem;
    }
    
    .step-label {
        font-size: 0.85rem;
    }
    
    .step-card {
        padding: 20px;
        margin: 15px;
    }
    
    .step-card-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-card-icon {
        margin-right: 0;
    }
    
    #products-list.list .product-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    #products-list.list .product-image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        max-width: 200px;
    }
    
    #products-list.list .product-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    #products-list.list .product-details {
        align-items: center;
    }
    
    .wizard-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .steps-indicator {
        gap: 15px;
    }
    
    .steps-indicator::before {
        display: none;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
    }
    
    .step-icon i {
        font-size: 1.1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .customer-info-display {
        margin: 15px;
        padding: 20px;
    }
    
    .customer-avatar {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    
    .customer-avatar i {
        font-size: 1.4rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.4s ease;
}

.slide-in-left {
    animation: slideInLeft 0.4s ease;
}

.slide-in-right {
    animation: slideInRight 0.4s ease;
}

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

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success);
    border: 1px solid rgba(var(--success-rgb), 0.3);
}

.status-pending {
    background: rgba(var(--warning-rgb), 0.1);
    color: var(--warning);
    border: 1px solid rgba(var(--warning-rgb), 0.3);
}

.status-inactive {
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary);
    border: 1px solid rgba(var(--secondary-rgb), 0.3);
}