/**
 * Computer Set Form Styles - Complete Version
 * Compact blue and orange theme with responsive design
 * Version: 1.0.3
 */

:root {
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e3a8a;
    --primary-blue-hover: #1d4ed8;
    --secondary-orange: #ea580c;
    --secondary-orange-light: #fb923c;
    --secondary-orange-dark: #c2410c;
    --secondary-orange-hover: #dc2626;
    --success-green: #059669;
    --success-green-hover: #047857;
    --error-red: #dc2626;
    --error-red-hover: #b91c1c;
    --warning-yellow: #d97706;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 6px;
    --border-radius-lg: 8px;
    --transition: all 0.2s ease;
}

* {
    box-sizing: border-box;
}

/* Main Container */
.comset-form-wrapper-pqr901 {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--gray-700);
    position: relative;
}

.comset-form-vwx567 {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

/* Validation Alert Box */
.validation-alert-box-abc123 {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: var(--error-red);
    color: var(--white);
    padding: 15px 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    display: none;
}

.alert-content-def456 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-icon-ghi789 {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-message-jkl012 {
    flex: 1;
    font-weight: 500;
}

.alert-close-mno345 {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.alert-close-mno345:hover {
    opacity: 1;
}

/* Error Messages */
.error-message-pqr678 {
    color: var(--error-red);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

/* Field Error State */
.form-group-qrs678 input.error,
.form-group-qrs678 select.error,
.form-group-qrs678 textarea.error {
    border-color: var(--error-red);
    background: rgba(220, 38, 38, 0.05);
}

.image-upload-zone-hij123.error {
    border-color: var(--error-red);
    background: rgba(220, 38, 38, 0.05);
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(-50%); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-48%); }
    20%, 40%, 60%, 80% { transform: translateX(-52%); }
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.pulse-animation {
    animation: pulse 1s ease-in-out;
}

/* Focus States for Better Accessibility */
input:focus.error,
select:focus.error,
textarea:focus.error {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Header */
.comset-header-bcd123 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.comset-header-bcd123 h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Progress Steps */
.comset-progress-efg456 {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.progress-step-hij789 {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress-step-hij789.active {
    background: var(--secondary-orange);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Step Content */
.comset-step-klm012 {
    padding: 25px;
}

/* Grid Layout */
.comset-grid-nop345 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group-qrs678 {
    display: flex;
    flex-direction: column;
}

.form-group-qrs678.full-width-cde890 {
    grid-column: 1 / -1;
}

/* Form Labels */
.form-group-qrs678 label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
    font-size: 13px;
}

.required {
    color: var(--error-red);
    margin-left: 2px;
}

/* Form Inputs */
.form-group-qrs678 input,
.form-group-qrs678 select,
.form-group-qrs678 textarea {
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.form-group-qrs678 input:focus,
.form-group-qrs678 select:focus,
.form-group-qrs678 textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group-qrs678 input[readonly] {
    background: var(--gray-50);
    color: var(--gray-500);
    cursor: not-allowed;
}

/* Help Text */
.help-text-tuv901 {
    color: var(--gray-500);
    font-size: 11px;
    margin-top: 4px;
    line-height: 1.4;
}

/* Image Upload Zone with Drag & Drop */
.image-upload-zone-hij123 {
    position: relative;
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
    background: var(--gray-50);
    transition: var(--transition);
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-upload-zone-hij123:hover {
    border-color: var(--primary-blue-light);
    background: rgba(59, 130, 246, 0.05);
}

.image-upload-zone-hij123.drag-over {
    border-color: var(--primary-blue);
    background: rgba(30, 64, 175, 0.1);
    border-style: solid;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.upload-content-klm456 {
    text-align: center;
    padding: 30px 20px;
    width: 100%;
    pointer-events: none;
}

.upload-content-klm456 button {
    pointer-events: auto;
}

.upload-icon-nop789 {
    color: var(--gray-400);
    margin-bottom: 15px;
    transition: var(--transition);
}

.image-upload-zone-hij123:hover .upload-icon-nop789 {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.upload-text-qrs012 {
    margin-bottom: 20px;
}

.primary-text-tuv345 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 5px 0;
}

.secondary-text-wxy678 {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

.btn-choose-file-zab901 {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-choose-file-zab901:hover {
    background: linear-gradient(135deg, var(--primary-blue-hover), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.upload-help-cde234 {
    display: block;
    margin-top: 15px;
    color: var(--gray-500);
    font-size: 12px;
    line-height: 1.4;
}

/* Upload Overlay for Drag & Drop */
.upload-overlay-efg567 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.95);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.overlay-content-hij890 {
    text-align: center;
    animation: bounce 0.5s ease-in-out;
}

.overlay-content-hij890 p {
    margin: 10px 0 0 0;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Image Preview */
.image-preview-wxy234 {
    margin-top: 20px;
}

.preview-container-klm567 {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.preview-img-zab567 {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--white);
    margin-bottom: 15px;
}

.preview-actions-nop890 {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.btn-change-image-qrs123,
.btn-remove-image-tuv456 {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-change-image-qrs123 {
    background: var(--secondary-orange);
    color: var(--white);
}

.btn-change-image-qrs123:hover {
    background: var(--secondary-orange-hover);
    transform: translateY(-1px);
}

.btn-remove-image-tuv456 {
    background: var(--gray-500);
    color: var(--white);
}

.btn-remove-image-tuv456:hover {
    background: var(--error-red);
    transform: translateY(-1px);
}

.image-info-wxy789 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    font-size: 12px;
    color: var(--gray-600);
}

.file-name-zab012 {
    font-weight: 600;
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size-cde345 {
    color: var(--gray-500);
    margin-left: 10px;
}

/* Components Section */
.components-section-lmn789 {
    margin-bottom: 25px;
}

.section-header-opq012 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

.section-header-opq012 h3 {
    margin: 0;
    color: var(--gray-800);
    font-size: 18px;
    font-weight: 700;
}

/* Component Items */
.components-container-uvw678 {
    space-y: 15px;
}

.component-item-wxy012 {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    transition: var(--transition);
    position: relative;
}

.component-item-wxy012:hover {
    border-color: var(--primary-blue-light);
    box-shadow: var(--shadow-sm);
}

.component-header-zab345 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-300);
}

.component-number-cde678 {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 14px;
}

.btn-remove-component-efg901 {
    width: 24px;
    height: 24px;
    border: none;
    background: var(--error-red);
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-remove-component-efg901:hover {
    background: var(--error-red-hover);
    transform: scale(1.05);
}

/* Component Fields Layout */
.component-fields-hij234 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.component-fields-hij234 .form-group-qrs678 label {
    font-size: 12px;
    margin-bottom: 4px;
}

.component-fields-hij234 .form-group-qrs678 input {
    padding: 8px 12px;
    font-size: 13px;
}

/* Total Section */
.total-section-xyz901 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    text-align: center;
}

.total-section-xyz901 label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.total-display-abc234 {
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-add-component-rst345,
.btn-next-ijk456,
.btn-prev-ghi890,
.btn-submit-stu012,
.btn-new-form-qrs456,
.btn-edit-review-nop012 {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
}

.btn-add-component-rst345 {
    background: var(--secondary-orange);
    color: var(--white);
}

.btn-add-component-rst345:hover {
    background: var(--secondary-orange-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-next-ijk456,
.btn-submit-stu012 {
    background: var(--primary-blue);
    color: var(--white);
    min-width: 120px;
}

.btn-next-ijk456:hover,
.btn-submit-stu012:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-prev-ghi890 {
    background: var(--gray-500);
    color: var(--white);
}

.btn-prev-ghi890:hover {
    background: var(--gray-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-new-form-qrs456 {
    background: var(--success-green);
    color: var(--white);
}

.btn-new-form-qrs456:hover {
    background: var(--success-green-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-edit-review-nop012 {
    background: var(--secondary-orange);
    color: var(--white);
    font-size: 13px;
    padding: 6px 14px;
}

.btn-edit-review-nop012:hover {
    background: var(--secondary-orange-hover);
}

/* Step Actions */
.step-actions-def567 {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

/* Review Section */
.review-sections-abc123 {
    space-y: 20px;
}

.review-section-def456 {
    background: var(--gray-50);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    margin-bottom: 15px;
}

.review-section-def456 h4 {
    margin: 0 0 15px 0;
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-blue);
}

.review-grid-ghi789 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.review-grid-ghi789 div {
    padding: 10px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    font-size: 13px;
}

.components-review-jkl012 {
    space-y: 12px;
}

.component-review-item-mno345 {
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    margin-bottom: 12px;
}

.component-name-pqr678 {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 14px;
    margin-bottom: 6px;
}

.component-details-stu901 {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}

.spec-vwx234 {
    color: var(--gray-600);
    font-style: italic;
}

.quantity-yza567,
.price-bcd890 {
    color: var(--gray-700);
}

.subtotal-efg123 {
    color: var(--secondary-orange);
    font-weight: 600;
    margin-left: auto;
}

.total-review-hij456 {
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 16px;
}

.review-actions-klm789 {
    text-align: center;
    margin-top: 20px;
}

/* Loading Overlay */
.loading-overlay-yza678 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner-bcd901 {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay-yza678 p {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
}

/* Success Message */
.success-message-hij567 {
    text-align: center;
    padding: 60px 40px;
}

.success-content-klm890 h3 {
    color: var(--success-green);
    font-size: 24px;
    margin-bottom: 25px;
}

.created-assets-list-pqr456 {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    padding: 25px;
}

.asset-item-stu789 {
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-link-vwx012 {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    border: 1px solid var(--primary-blue);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.edit-link-vwx012:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .comset-form-wrapper-pqr901 {
        padding: 10px;
    }

    .comset-step-klm012 {
        padding: 20px;
    }

    .comset-header-bcd123 {
        padding: 20px 15px;
    }

    .comset-header-bcd123 h2 {
        font-size: 20px;
    }

    .comset-grid-nop345 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .progress-step-hij789 {
        padding: 6px 10px;
        font-size: 12px;
    }

    .component-fields-hij234 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .review-grid-ghi789 {
        grid-template-columns: 1fr;
    }

    .component-details-stu901 {
        flex-direction: column;
        gap: 6px;
    }

    .step-actions-def567 {
        flex-direction: column-reverse;
    }

    .btn-next-ijk456,
    .btn-prev-ghi890,
    .btn-submit-stu012 {
        width: 100%;
        justify-content: center;
    }

    .validation-alert-box-abc123 {
        width: 95%;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .comset-progress-efg456 {
        flex-direction: column;
        gap: 8px;
    }

    .progress-step-hij789 {
        text-align: center;
        padding: 8px;
    }

    .section-header-opq012 {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .component-header-zab345 {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .component-item-wxy012 {
        padding: 12px;
    }

    .total-section-xyz901 {
        padding: 12px;
    }

    .total-display-abc234 {
        font-size: 20px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-group-qrs678 input,
    .form-group-qrs678 select,
    .form-group-qrs678 textarea {
        border-width: 3px;
    }

    .btn-next-ijk456,
    .btn-prev-ghi890,
    .btn-submit-stu012,
    .btn-add-component-rst345 {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .comset-form-wrapper-pqr901 {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }

    .loading-overlay-yza678,
    .validation-alert-box-abc123,
    .btn-next-ijk456,
    .btn-prev-ghi890,
    .btn-submit-stu012,
    .btn-add-component-rst345,
    .btn-remove-component-efg901 {
        display: none !important;
    }

    .comset-step-klm012 {
        display: block !important;
    }
}