/* Base Styles */
.btn-close.btn-close-sm {
    width: 0.6em;
    height: 0.6em;
}

.alert-dismissible .btn-close {
    padding: 0.9rem 1rem;
}

.product-card {
    border-radius: 10px;
    height: 220px;
    transition: transform 0.2s;
}

    .product-card:hover {
        transform: translateY(-2px);
    }

.price-highlight {
    color: #d9534f;
    font-weight: 500;
}

.readonly-field {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
}

.target-price-badge {
    background-color: #ffc107;
    color: #212529;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.field-validation-error {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.input-validation-error {
    border-color: #dc3545;
    background-color: #fff;
}

/* ============================================
       FILE UPLOAD CONTROLS - ORANGE THEME (#fe6d00)
       ============================================ */

/* COMMON STYLES FOR BOTH UPLOAD CONTROLS */

/* File upload area base styles */
.file-upload-area,
.file-upload-area-oem {
    background-color: #f8f9fa;
    border: 1px dashed lightgray !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

    /* Hover effects for both arease56300 */
    .file-upload-area:hover,
    .file-upload-area-oem:hover {
        border-color: #e56300 !important;
        background-color: rgba(254, 109, 0, 0.05);
        box-shadow: 0 4px 12px rgba(254, 109, 0, 0.1);
    }

    /* Focus state for accessibility */
    .file-upload-area:focus-within,
    .file-upload-area-oem:focus-within {
        box-shadow: 0 0 0 0.25rem rgba(254, 109, 0, 0.25);
        outline: none;
    }

/* Upload buttons - common styling */
.btn-outline-info.btn-sm,
.upload-btn {
    border: 2px solid #fe6d00;
    color: #fe6d00;
    background-color: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

    /* Button hover states */
    .btn-outline-info.btn-sm:hover,
    .upload-btn:hover {
        background-color: #fe6d00;
        border-color: #fe6d00;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(254, 109, 0, 0.2);
    }

    /* Button active states */
    .btn-outline-info.btn-sm:active,
    .upload-btn:active {
        background-color: #e56300;
        border-color: #e56300;
        color: white;
        transform: translateY(0);
    }

    /* Button focus states */
    .btn-outline-info.btn-sm:focus,
    .upload-btn:focus {
        box-shadow: 0 0 0 0.25rem rgba(254, 109, 0, 0.5);
        outline: none;
    }

    /* Icons inside buttons */
    .btn-outline-info.btn-sm i,
    .upload-btn i {
        color: #fe6d00;
        transition: color 0.3s ease;
    }

    .btn-outline-info.btn-sm:hover i,
    .upload-btn:hover i {
        color: white;
    }

/* File size icon */
.fa-weight-hanging {
    color: #fe6d00;
}

/* Progress bars */
.progress-bar.bg-info,
#uploadProgress .progress-bar {
    background-color: #fe6d00 !important;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
    border-radius: 4px;
}


/* Upload status text */
#oemUploadStatus,
.upload-status-text {
    color: #fe6d00 !important;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Orange text utility class */
.text-orange {
    color: #fe6d00 !important;
}

/* Image preview container headers */
#oemImagePreviewContainer .col-12 h6,
#imagePreviewContainer .col-12 h6 {
    color: #fe6d00;
    border-bottom: 2px solid rgba(254, 109, 0, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

/* ============================================
       SPECIFIC STYLES FOR EACH UPLOAD CONTROL
       ============================================ */

/* OEM UPLOAD CONTROL SPECIFIC STYLES */
.file-upload-area-oem {
    /* Slight visual distinction for OEM */
    background-color: rgba(254, 109, 0, 0.02);
    /*   border-color: #fe6d00 !important; */
    border-color: lightgray !important;
}

    .file-upload-area-oem:hover {
        background-color: rgba(254, 109, 0, 0.08);
        border-color: #e56300 !important;
    }

/* STANDARD UPLOAD CONTROL SPECIFIC STYLES */
.file-upload-area {
    /* Standard upload area */
    background-color: #f8f9fa;
    /*   border-color: #fe6d00 !important; */
    border-color: lightgray !important;
}

    .file-upload-area:hover {
        background-color: rgba(254, 109, 0, 0.05);
        border-color: #e56300 !important;
    }

/* ============================================
       IMAGE PREVIEW STYLES (COMMON FOR BOTH)
       ============================================ */

.image-preview-item {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

    .image-preview-item:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 8px 16px rgba(254, 109, 0, 0.15);
        border-color: #fe6d00;
    }

        .image-preview-item:hover .image-remove-btn {
            opacity: 1;
            transform: translateY(0);
        }

.image-preview {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.image-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    /*    background-color: #fe6d00; */
    background-color: red;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

    .image-remove-btn:hover {
        background-color: #e56300;
        transform: scale(1.1);
    }

.image-info {
    padding: 6px 8px;
    background: linear-gradient(to right, rgba(254, 109, 0, 0.05), rgba(254, 109, 0, 0.02));
    font-size: 11px;
    color: #fe6d00;
    border-top: 1px solid rgba(254, 109, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uploading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(254, 109, 0, 0.1);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

    .uploading-overlay i {
        color: #fe6d00;
        font-size: 1.5rem;
        animation: spin 1s linear infinite;
    }

/* File upload info text */
.file-upload-area p.small,
.file-upload-area-oem p.small {
    color: #666;
    margin-top: 0.75rem;
    line-height: 1.4;
}

    .file-upload-area p.small i,
    .file-upload-area-oem p.small i {
        margin-right: 4px;
    }

/* Error message styling */
#oemImageUploadError,
#imageUploadError {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    padding-left: 0.5rem;
    border-left: 3px solid #dc3545;
}

/* ============================================
       UTILITY CLASSES
       ============================================ */

.extra-small {
    font-size: 0.7rem;
}

.fw-600 {
    font-weight: 600;
}

/* Loading animation for upload buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

    .btn-loading:after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin-left: -8px;
        margin-top: -8px;
        border: 2px solid rgba(255,255,255,0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: button-spinner 0.6s linear infinite;
    }


/* Success state */
.upload-success .progress-bar {
    background-color: #28a745 !important;
    animation: none;
}

.upload-success .upload-status-text {
    color: #28a745 !important;
}


.custom-container-padding {
    padding-left: 12px;
    padding-right: 48px;
}
.orange-input {
    border-color: #fe6d00 !important;
    border-radius: 6px;
}
/* OEM Header Styling */
.oem-header:hover {
    background-color: rgba(254, 109, 0, 0.05);
}

.oem-text {
    font-size: 0.9rem;
}

    .oem-text .fa-plus,
    .oem-text .fa-minus {
        font-size: 0.8rem;
        margin: 0 2px;
    }

.oem-collapse-icon {
    color: #fe6d00;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

    .oem-collapse-icon .fa-plus,
    .oem-collapse-icon .fa-minus {
        width: 16px;
        height: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

