/* Edit Bottom Sheet Styles */

/* Step Indicator */
.edit-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    gap: 0.25rem;
}

.edit-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
    opacity: 0.4;
    transition: all 0.3s;
}

.edit-step.active {
    opacity: 1;
}

.edit-step::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

.edit-step:first-child::before {
    display: none;
}

.edit-step.active::before {
    background: #e63946;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
}

.edit-step.active .step-number {
    background: #e63946;
    color: white;
}

.edit-step span {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.edit-step.active span {
    color: #e63946;
}

@media (max-width: 480px) {
    .edit-step span {
        font-size: 9px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Option Cards */
.step-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.option-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.option-card input[type="checkbox"] {
    display: none;
}

.option-card input[type="checkbox"]:checked + .option-content {
    color: #e63946;
}

.option-card input[type="checkbox"]:checked ~ .option-card,
.option-card:has(input[type="checkbox"]:checked) {
    border-color: #e63946;
    background: #fff5f5;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.option-content i {
    font-size: 1.5rem;
    color: #666;
}

.option-card input[type="checkbox"]:checked + .option-content i {
    color: #e63946;
}

/* Mode Selector */
.mode-selector {
    display: grid;
    gap: 1rem;
}

.mode-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.mode-card:hover {
    border-color: #e63946;
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.15);
}

.mode-card i {
    font-size: 2rem;
    color: #e63946;
    margin-bottom: 1rem;
}

.mode-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.mode-card p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Scenario Grid */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .scenario-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.scenario-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.scenario-card:hover, .scenario-card.selected {
    border-color: #e63946;
    background: #fff5f5;
    transform: translateY(-2px);
}

.scenario-image {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.scenario-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.scenario-card:hover .scenario-image::after,
.scenario-card.selected .scenario-image::after {
    background: rgba(230, 57, 70, 0.2);
}

.scenario-image i {
    font-size: 2rem;
    color: white;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scenario-card span {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

/* Light Selector */
.light-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.light-option {
    cursor: pointer;
}

.light-option input[type="radio"] {
    display: none;
}

.light-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.light-option input[type="radio"]:checked + .light-card {
    border-color: #e63946;
    background: #fff5f5;
}

.light-card i {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.light-option input[type="radio"]:checked + .light-card i {
    color: #e63946;
}

.light-card span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* Upload Reference Box */
.upload-reference-box {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-reference-box:hover {
    border-color: #e63946;
    background: #fff5f5;
}

.upload-reference-box i {
    font-size: 2rem;
    color: #e63946;
    margin-bottom: 0.5rem;
}

.upload-reference-box p {
    font-weight: 600;
    margin: 0.5rem 0;
    color: #333;
}

.upload-reference-box small {
    color: #999;
    font-size: 0.85rem;
}

/* Progress Styles */
.progress-bar {
    position: relative;
    overflow: visible !important;
}

#progress-fill {
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e63946;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Edit Step Content */
.edit-step-content {
    animation: fadeIn 0.3s ease;
}

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

/* Bottom Sheet Image Preview */
.bottom-sheet-image-preview {
    max-height: 300px;
    object-fit: contain;
    background: #f5f5f5;
}

/* Quick Options */
.quick-options {
    margin-bottom: 1.5rem;
}

.quick-options label:first-of-type {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .step-options {
        grid-template-columns: 1fr;
    }

    .scenario-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .scenario-card {
        padding: 0.75rem;
    }

    .scenario-image {
        height: 60px;
    }

    .edit-steps {
        padding: 0 0.5rem;
    }

    .edit-step span {
        font-size: 10px;
    }
}
