/* Main Container */
.pc-configurator-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* Category Titles */
.category-main-title {
    font-size: 24px;
    color: #000;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8d849;
    text-align: center;
    font-weight: 600;
}

/* Component Sections */
.component-section {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.component-section:hover {
    box-shadow: 0 4px 12px rgba(45, 98, 177, 0.1);
}

.component-title {
    margin: 0 0 15px;
    color: #000;
    font-size: 16px;
    font-weight: 500;
}

/* Select Dropdowns */
.component-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23f8d849" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

.component-select:focus {
    outline: none;
    border-color: #f8d849;
    box-shadow: 0 0 0 3px rgba(45, 98, 177, 0.1);
}

/* Component Preview */
.component-preview {
    text-align: left;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.image-container {
    flex-shrink: 0;
    width: 150px;
}

.component-image {
    max-width: 150px;
    height: auto;
    display: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Product Details */
.product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-top: 10px;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.product-price {
    font-size: 18px;
    color: #2ecc71;
    font-weight: 600;
}

/* Assembly Options */
.assembly-option {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.assembly-option h3 {
    color: #000;
    margin: 0 0 15px;
    font-size: 16px;
    text-align: center;
}

.assembly-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assembly-choices label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.assembly-choices label:hover {
    border-color: #f8d849;
    background: #f0f4f8;
}

.assembly-choices input[type="radio"] {
    accent-color: #f8d849;
}

/* Total Price Section */
.total-price-wrapper {
    background: #f8d849;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

.price-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.total-label {
    font-size: 18px;
    font-weight: 500;
}

.total-price {
    font-size: 24px;
    font-weight: 600;
}

/* Progress Bar Section */
.progress-section {
    margin: 30px 0;
    padding: 0 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f4f8;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #e1e8ed;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f8d849 0%, #efb72e 100%);
    width: 0;
    transition: width 0.4s ease-in-out;
    border-radius: 10px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progress-animation 1s linear infinite;
}

@keyframes progress-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.progress-percentage {
    font-weight: 600;
    color: #f8d849;
}

/* Action Buttons */
.configurator-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

#add-configuration, 
#generate-devis {
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

#add-configuration {
    background: #000;
    color: white;
}

#add-configuration:hover {
    background: #e7c400;
    transform: translateY(-1px);
}

#generate-devis {
    background: #f8f9fa;
    color: #000;
    border: 2px solid #000;
}

#generate-devis:hover {
    background: #f8d84a;
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .configurator-actions {
        flex-direction: column;
    }
    
    #add-configuration,
    #generate-devis {
        width: 100%;
    }

    .assembly-choices label {
        padding: 15px;
    }

    .total-price-wrapper {
        padding: 15px;
    }

    .price-container {
        flex-direction: column;
        gap: 5px;
    }

    .progress-section {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .component-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .image-container {
        width: 100%;
        text-align: center;
    }
    
    .product-details {
        width: 100%;
        align-items: center;
    }
}