﻿/* Progress Bar Styles */
.modern-progress-section {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.modern-progress-header {
    margin-bottom: 1.5rem;
}

.modern-progress-icon {
    font-size: 3rem;
    color: var(--btn-primary);
    margin-bottom: 1rem;
}

.modern-progress-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modern-progress-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

.modern-progress-container {
    background: var(--bg-accent);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
}

.modern-progress-bar {
    background: var(--border-light);
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.modern-progress-fill {
    background: linear-gradient(90deg, var(--btn-primary), var(--btn-primary-hover));
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
    position: relative;
}

    .modern-progress-fill::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background-image: 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: move 2s linear infinite;
        border-radius: 20px;
    }

@keyframes move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 20px 20px;
    }
}

.modern-progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

#progress-percent {
    font-weight: 600;
    color: var(--btn-primary);
    font-size: 1.1rem;
}

#progress-status {
    color: var(--text-secondary);
    font-style: italic;
}

/* Notes Section */
.modern-notes-input-section {
    margin-top: 0.5rem;
    width: 100%;
}

.modern-notes-textarea,
#customer-notes {
    width: 100% !important;
    min-width: 100%;
    display: block;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    box-sizing: border-box;
}

    .modern-notes-textarea:focus,
    #customer-notes:focus {
        outline: none;
        border-color: var(--btn-primary);
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    }

    .modern-notes-textarea::placeholder,
    #customer-notes::placeholder {
        color: var(--text-muted);
    }

.modern-notes-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

    .modern-notes-counter.warning {
        color: #FD7E14;
    }

    .modern-notes-counter.danger {
        color: #DC3545;
    }

/* Color Selection */
.modern-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.modern-color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-primary);
}

    .modern-color-option:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
        border-color: var(--border-color);
    }

    .modern-color-option.selected {
        border-color: var(--btn-primary);
        background: #E8F4FF;
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    }

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid rgba(0,0,0,0.05);
}

.color-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    text-align: center;
}

.color-price {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Support Options */
.modern-support-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.form-check {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--bg-primary);
}

    .form-check:hover {
        background: var(--bg-accent);
    }

.form-check-input {
    margin-right: 0.75rem;
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: var(--btn-primary);
        border-color: var(--btn-primary);
    }

.form-check-label {
    cursor: pointer;
    color: var(--text-primary);
    margin: 0;
}

/* Processing Styles */
.modern-processing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.modern-processing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.modern-processing-icon {
    background: linear-gradient(135deg, var(--btn-primary), var(--btn-primary-hover));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

    .modern-processing-icon i {
        font-size: 2rem;
        color: white;
    }

.modern-processing-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modern-processing-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.modern-file-info-section {
    margin-bottom: 2rem;
}

.modern-file-info-card {
    background: #E8F4FF;
    border: 1px solid #B8DAFF;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.modern-file-icon {
    background: linear-gradient(135deg, var(--btn-primary), var(--btn-primary-hover));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .modern-file-icon i {
        font-size: 1.5rem;
        color: white;
    }

/* Responsive */
@media (max-width: 768px) {
    .modern-color-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 0.5rem;
    }

    .modern-color-option {
        padding: 0.75rem 0.5rem;
    }

    .color-swatch {
        width: 32px;
        height: 32px;
    }

    .modern-notes-textarea,
    #customer-notes {
        min-height: 100px;
        font-size: 0.9rem;
    }
}
/* Infill Options (replacing support options) */
.modern-infill-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

    .modern-infill-options .form-check {
        display: flex;
        align-items: center;
        padding: 0.75rem;
        border: 1px solid var(--border-light);
        border-radius: var(--border-radius);
        transition: var(--transition);
        background: var(--bg-primary);
    }

        .modern-infill-options .form-check:hover {
            background: var(--bg-accent);
            border-color: var(--btn-primary);
        }

    .modern-infill-options .form-check-input:checked + .form-check-label {
        font-weight: 600;
        color: var(--btn-primary);
    }
/* Pricing Actions Section */
.modern-pricing-actions {
    padding: 1.5rem;
    background: var(--bg-accent);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-light);
}

.modern-quantity-section-top {
    margin-bottom: 1.25rem;
}

    .modern-quantity-section-top .modern-quantity-label {
        display: block;
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--text-primary);
        margin-bottom: 0.75rem;
    }

    .modern-quantity-section-top .modern-quantity-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
    }

    .modern-quantity-section-top .modern-quantity-hint {
        display: block;
        margin-top: 0.75rem;
        font-size: 0.85rem;
        color: var(--text-secondary);
        text-align: center;
        font-weight: 500;
        transition: var(--transition);
    }

        .modern-quantity-section-top .modern-quantity-hint i {
            font-size: 0.9rem;
            margin-right: 0.25rem;
        }

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}
/* Rush Order Options */
.modern-rush-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

    .modern-rush-options .form-check {
        display: flex;
        align-items: center;
        padding: 0.75rem;
        border: 1px solid var(--border-light);
        border-radius: var(--border-radius);
        transition: var(--transition);
        background: var(--bg-primary);
    }

        .modern-rush-options .form-check:hover {
            background: var(--bg-accent);
            border-color: var(--btn-primary);
        }

    .modern-rush-options .form-check-input:checked + .form-check-label {
        font-weight: 600;
        color: var(--btn-primary);
    }

    .modern-rush-options .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-right: 0.25rem;
    }
/* Color Swatches */
.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    margin-bottom: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modern-color-option.selected .color-swatch {
    border: 3px solid var(--btn-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

/* Individual color swatch styles */
.color-black {
    background: linear-gradient(135deg, #1a1a1a, #333333);
}

.color-white {
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    border-color: #d0d0d0 !important;
}

.color-gray {
    background: linear-gradient(135deg, #808080, #a9a9a9);
}

.color-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.color-aurora {
    background: linear-gradient(135deg, #00ffff 0%, #00ff00 25%, #ff00ff 50%, #00ffff 75%, #00ff00 100% );
}

.color-custom {
    background: linear-gradient(135deg, #ff0000 0%, #ff7f00 16.67%, #ffff00 33.33%, #00ff00 50%, #0000ff 66.67%, #4b0082 83.33%, #9400d3 100% );
    display: flex;
    align-items: center;
    justify-content: center;
}

    .color-custom i {
        color: white;
        font-size: 1.5rem;
        filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
    }

/* Color option container styles */
.modern-color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-primary);
}

    .modern-color-option:hover {
        background: var(--bg-accent);
        border-color: var(--btn-primary);
        transform: translateY(-2px);
    }

    .modern-color-option.selected {
        background: var(--bg-accent);
        border-color: var(--btn-primary);
    }

    .modern-color-option .color-name {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-primary);
        text-align: center;
    }

    .modern-color-option.selected .color-name {
        color: var(--btn-primary);
        font-weight: 600;
    }

    /* Price label for custom colors */
    .modern-color-option .color-price {
        display: block;
        font-size: 0.7rem;
        color: var(--text-secondary);
        margin-top: 0.25rem;
        font-weight: 600;
    }

    .modern-color-option.selected .color-price {
        color: var(--btn-primary);
    }

/* Color grid layout */
.modern-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

/* Disabled color option */
.modern-color-option[style*="display: none"] {
    display: none !important;
}
/* Breakdown Debug Button */
.btn-breakdown-debug {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

    .btn-breakdown-debug:hover {
        color: var(--btn-primary);
        transform: scale(1.1);
    }

/* Breakdown Modal */
.breakdown-table {
    margin: 0;
}

    .breakdown-table td,
    .breakdown-table th {
        padding: 0.5rem;
        border-bottom: 1px solid var(--border-light);
    }

.table-section-header {
    background: var(--bg-accent);
    font-weight: 600;
    padding: 0.75rem 0.5rem !important;
}

.table-subtotal {
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.breakdown-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-accent);
    border-radius: var(--border-radius);
}

    .breakdown-summary code {
        display: block;
        margin-top: 0.5rem;
        padding: 0.5rem;
        background: var(--bg-primary);
        border-radius: 4px;
        font-size: 0.85rem;
        overflow-x: auto;
    }