/* ==========================================
   1. RESET E STILI GENERALI
   ========================================== */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #20232a; 
    color: white; 
    padding: 0; 
    margin: 0; 
    overflow-x: hidden;
}

/* ==========================================
   LANGUAGE SELECTOR
   ========================================== */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(32, 35, 42, 0.95);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #444;
}

.language-selector select {
    padding: 8px 12px;
    background: #333;
    color: #61dafb;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.2s;
}

.language-selector select:hover {
    border-color: #61dafb;
    background: #444;
}

.language-selector select:focus {
    outline: none;
    border-color: #61dafb;
    box-shadow: 0 0 5px rgba(97, 218, 251, 0.3);
}

h1 { 
    text-align: center; 
    color: #61dafb; 
    border-bottom: 1px solid #444; 
    padding-bottom: 15px; 
    margin-bottom: 20px; 
}

h2, h3, h4 { 
    color: #61dafb; 
    margin-top: 0; 
    margin-bottom: 10px; 
}

h2 { 
    border-bottom: 1px solid #444; 
    padding-bottom: 8px; 
}

/* ==========================================
   2. LAYOUT PRINCIPALE
   ========================================== */

.main-wrapper { 
    width: 98%; 
    max-width: 1600px; 
    margin: 0 auto; 
    padding: 10px; 
}

.two-column-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.left-panel { 
    flex: 1.2; 
    min-width: 450px; 
}

.right-panel { 
    flex: 0.8; 
    min-width: 350px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    position: sticky; 
    top: 20px; 
}

/* ==========================================
   3. TAB NAVIGATION
   ========================================== */

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
}

.tab-button {
    background: #333;
    color: #bbb;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: background 0.2s;
}

.tab-button.active {
    background: #61dafb;
    color: #282c34;
}

.tab-button:hover {
    background: #444;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==========================================
   4. IMAGE PREVIEWS
   ========================================== */

.image-preview {
    width: 100%;
    height: 200px;
    background: #000;
    border: 1px solid #444;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    margin-top: 10px;
    overflow: hidden;
}

.image-preview.small {
    width: 80px;
    height: 80px;
    margin-left: 10px;
    flex-shrink: 0;
}

.image-preview.large {
    height: 400px;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==========================================
   5. RESULT DISPLAY
   ========================================== */

#tryonResult {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

#tryonResult img, #tryonResult video {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.result-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.result-item.loading {
    background: #2a2a2a;
    border: 2px dashed #555;
    flex-direction: column;
    gap: 20px;
}

.loading-text {
    color: #bbb;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Spinner Loader - Circular Animation */
.spinner-loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(97, 218, 251, 0.2);
    border-top: 5px solid #61dafb;
    border-right: 5px solid #61dafb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide spinner when result is loaded */
.result-item:not(.loading) .spinner-loader {
    display: none;
}

/* ==========================================
   6. TRY-ON CONTAINER
   ========================================== */

.tryon-container {
    display: flex;
    gap: 20px;
    height: 100%;
}

.left-column, .right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}


/* ==========================================
   7. FORM CONTROLS & INPUTS
   ========================================== */

button { 
    cursor: pointer; 
    background-color: #61dafb; 
    color: #282c34; 
    font-weight: bold; 
    border-radius: 4px; 
    border: none; 
    padding: 10px; 
    transition: background 0.2s; 
}

button:hover { 
    opacity: 0.9; 
}

input[type="text"], 
input[type="password"], 
input[type="number"] {
    background: #111; 
    border: 1px solid #444; 
    color: white; 
    padding: 10px; 
    border-radius: 4px; 
    box-sizing: border-box; 
}

/* Button Variants */
.btn-face { 
    background-color: #2196F3; 
    color: white; 
    width: 100%; 
    margin-top: 10px; 
}

.btn-body { 
    background-color: #FF9800; 
    color: white; 
    width: 100%; 
    margin-top: 10px; 
}

.btn-ai { 
    background-color: #9c27b0; 
    color: white; 
    width: 100%; 
}

.btn-result { 
    background-color: #4CAF50; 
    color: white; 
}

.btn-save { 
    background: #e0ac1c; 
    padding: 5px 15px; 
    font-size: 0.8rem; 
}

.btn-next {
    background: #4CAF50 !important;
    color: white !important;
    flex: 2;
}

.btn-back {
    background: #555 !important;
    color: white !important;
    flex: 1;
}

.btn-next:disabled {
    background: #2d3e2d !important;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-small-fixed { 
    width: 55px !important; 
    padding: 4px !important; 
    font-size: 0.75rem; 
    height: 28px; 
    margin: 0 !important;
}

/* Gender Filter Buttons */
.gender-filter-btn {
    padding: 8px 16px;
    border: 2px solid #444;
    background: #1a1a1a;
    color: #bbb;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gender-filter-btn:hover {
    background: #2a2a2a;
    border-color: #666;
}

.gender-filter-btn.active {
    background: #61dafb;
    color: #000;
    border-color: #61dafb;
}

.gender-filter-btn.active[data-gender="donna"] {
    background: #4CAF50;
    border-color: #4CAF50;
}

/* ==========================================
   8. CONTROL GROUPS & CONTAINERS
   ========================================== */

.control-group { 
    background: #333; 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    border: 1px solid #444; 
}

.input-field { 
    flex: 1; 
    min-width: 150px; 
}

.input-field label { 
    display: block; 
    margin-bottom: 5px; 
    font-size: 0.85rem; 
    color: #e1bee7; 
}

/* ==========================================
   9. PHOTO SECTION
   ========================================== */

.photo-split { 
    display: flex; 
    flex-direction: column;
    gap: 15px; 
}

.photo-zone { 
    flex: 1; 
    background: #2a2a2a; 
    padding: 12px; 
    border-radius: 8px; 
    border: 1px dashed #555; 
    display: flex; 
    flex-direction: column; 
    min-height: 300px;
}

.zone-content { 
    flex-grow: 1; 
}

.input-row-align { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 12px; 
}

.label-inline { 
    font-weight: bold; 
    font-size: 0.9rem; 
}

.mini-input { 
    width: 45px !important; 
    padding: 4px !important; 
    text-align: center; 
    height: 28px; 
}

/* ==========================================
   9. PHOTO GRIDS & CAROUSELS
   ========================================== */

/* Photo Grid - 3 Columns (for user uploads, scenarios) */
.photo-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    margin-top: 10px; 
}

/* Photo Card - Base Styles */
.photo-card { 
    background: #111; 
    padding: 8px; 
    border-radius: 6px; 
    border: 1px solid #444; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    overflow: hidden;
}

.photo-card input[type="file"] { 
    width: 100%; 
    font-size: 0.65rem; 
    color: #888; 
    margin-bottom: 6px; 
    overflow: hidden;
    display: none;
}

.photo-card .btn-file-select {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #333;
    color: #61dafb;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.photo-card .btn-file-select:hover {
    background: #444;
    border-color: #61dafb;
}

.photo-card .btn-file-select:active {
    background: #555;
}

.photo-card .btn-file-select.file-selected {
    background: #1a472a;
    border-color: #4caf50;
    color: #4caf50;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-card img { 
    width: 100%; 
    height: 240px; 
    object-fit: contain; 
    background: #000; 
    border-radius: 4px; 
    border: 1px solid #333;
}

/* Scenario Preview Grid - 2x3 Matrix with Vertical Scroll */
#scenarioPreloaded,
#scenarioPreloaded-public {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #61dafb #111;
}

/* WebKit Scrollbar Styles for Scenario Preview */
#scenarioPreloaded::-webkit-scrollbar,
#scenarioPreloaded-public::-webkit-scrollbar {
    width: 8px;
}

#scenarioPreloaded::-webkit-scrollbar-track,
#scenarioPreloaded-public::-webkit-scrollbar-track {
    background: #111;
    border-radius: 10px;
}

#scenarioPreloaded::-webkit-scrollbar-thumb,
#scenarioPreloaded-public::-webkit-scrollbar-thumb {
    background: #61dafb;
    border-radius: 10px;
    border: 2px solid #111;
}

#scenarioPreloaded::-webkit-scrollbar-thumb:hover,
#scenarioPreloaded-public::-webkit-scrollbar-thumb:hover {
    background: #4db8e8;
}

/* Vertical Container for Clothes Categories */
#clothesPreloaded,
#clothesPreloaded-public {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    max-width: 100%;
}

#clothesPreloaded .photo-card,
#clothesPreloaded-public .photo-card {
    flex: 0 0 calc((100% - 20px) / 6);
    min-width: 96px;
}

/* Horizontal Carousel for Each Clothes Category */
.clothes-category-carousel {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #61dafb #111;
}

.clothes-category-carousel::-webkit-scrollbar {
    height: 8px;
}

.clothes-category-carousel::-webkit-scrollbar-track {
    background: #111;
    border-radius: 10px;
}

.clothes-category-carousel::-webkit-scrollbar-thumb {
    background: #61dafb;
    border-radius: 10px;
}

.clothes-category-carousel::-webkit-scrollbar-thumb:hover {
    background: #4db8d8;
}

/* ==========================================
   10. MEASUREMENTS SECTION
   ========================================== */

.measurements-scroll-area {
    max-height: 350px;
    overflow-y: auto;
    background: #1a1d23;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid #444;
}

.measurements-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 12px; 
    width: 100%; 
}

.measure-item { 
    background: #2d3038; 
    padding: 12px; 
    border-radius: 5px; 
    border-left: 4px solid #61dafb;
    display: flex; 
    flex-direction: column;
}

.measure-header { 
    font-size: 0.85rem; 
    font-weight: bold; 
    margin-bottom: 8px; 
    color: #61dafb; 
}

.measure-controls { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.measure-controls input { 
    width: 70px !important; 
    padding: 4px !important; 
    text-align: right; 
    background: #111; 
    border: 1px solid #555; 
    color: white; 
}

/* ==========================================
   11. AI PANEL
   ========================================== */

.ai-panel-horizontal { 
    background: #2d2336; 
    padding: 15px; 
    border-radius: 8px; 
    border: 1px solid #9c27b0; 
}

.ai-inputs { 
    display: flex; 
    gap: 15px; 
    align-items: flex-end; 
    flex-wrap: wrap; 
}

#adminCustomPrompt {
    width: 100%;
    min-height: 150px;
    height: auto;
    box-sizing: border-box;
    padding: 15px;
    font-size: 1rem;
    line-height: 1.5;
    background: #111;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    resize: vertical;
    display: block;
    margin: 10px 0;
}

#adminCustomPrompt:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
}

#adminCustomPrompt_image {
    width: 100%;
    min-height: 150px;
    height: auto;
    box-sizing: border-box;
    padding: 15px;
    font-size: 1rem;
    line-height: 1.5;
    background: #111;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    resize: vertical;
    display: block;
    margin: 10px 0;
}

#adminCustomPrompt_image:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
}

/* ==========================================
   12. VERTICAL STACK (COMMANDS)
   ========================================== */

.vertical-stack { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.vertical-stack label { 
    font-size: 0.85rem; 
    color: #bbb; 
    margin-bottom: -8px; 
    margin-top: 5px; 
}

.vertical-stack input[type="text"] { 
    width: 100%; 
    padding: 10px; 
}

.step-content textarea {
    width: 100%;
    display: block;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 10px;
    border-radius: 4px;
    resize: vertical;
}

/* ==========================================
   13. CHECKBOX ROW
   ========================================== */

.checkbox-row { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: #252525; 
    padding: 10px; 
    border-radius: 4px; 
    border: 1px solid #444; 
}

.checkbox-row input { 
    width: auto !important; 
    margin: 0; 
}

.checkbox-row label { 
    margin: 0 !important; 
    color: #fff; 
    cursor: pointer; 
}

.version-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #252525;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #444;
    margin-top: 10px;
}

.version-selector label {
    color: #e1bee7;
    font-size: 0.85rem;
    margin: 0;
}

.version-selector select {
    flex: 1;
    background: #111;
    border: 1px solid #444;
    color: white;
    padding: 8px 10px;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
}

.version-selector select:focus {
    outline: none;
    border-color: #61dafb;
}

.version-selector select option {
    background: #333;
    color: white;
}

/* ==========================================
   14. RIGHT PANEL VIEWERS & LOG
   ========================================== */

.viewer-section-right h3 { 
    font-size: 1rem; 
    color: #fff; 
    border-bottom: 1px solid #444; 
    padding-bottom: 5px;
}

.viewer-box { 
    width: 100%; 
    height: 350px; 
    background: #000; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    border: 2px solid #444; 
    position: relative; 
}

#viewer-container { 
    border-color: #61dafb; 
}

#fbx-viewer-container { 
    border-color: #4CAF50; 
}

/* Log Container */
#log-container { 
    flex-grow: 1; 
}

#log { 
    background: #111; 
    padding: 12px; 
    height: 180px; 
    overflow-y: auto; 
    font-family: monospace; 
    font-size: 0.75rem; 
    border: 1px solid #444; 
    border-radius: 5px; 
    line-height: 1.4;
}

#log-admin, #log-public {
    background: #111; 
    padding: 12px; 
    height: 180px; 
    overflow-y: auto; 
    font-family: monospace; 
    font-size: 0.75rem; 
    border: 1px solid #444; 
    border-radius: 5px; 
    line-height: 1.4;
}

.log-info { 
    color: #dcdcdc; 
}

.log-success { 
    color: #8fbc8f; 
}

.log-error { 
    color: #f08080; 
}

.log-ai { 
    color: #e1bee7; 
    font-weight: bold; 
}



/* ==========================================
   15. UTILITY CLASSES
   ========================================== */

.color-green { 
    border-color: #4CAF50; 
}

.header-split { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px; 
}

.subtitle { 
    font-size: 0.75rem; 
    color: #888; 
    text-align: center; 
    margin-bottom: 10px; 
}

.test-section { 
    border: 1px dashed #d66; 
    background: #2b1d1d; 
}

.test-section h3 { 
    color: #d66; 
    border-bottom-color: #d66; 
}

/* ==========================================
   16. WIZARD / STEPS
   ========================================== */

.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

.step-content-public {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content-public.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress Bar */
.step-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
}

.step-item {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    padding: 5px;
    border-bottom: 2px solid #333;
}

.step-item.active {
    color: #61dafb;
    border-bottom-color: #61dafb;
    font-weight: bold;
}

/* Navigation */
.step-nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* ==========================================
   17. RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1000px) {
    .two-column-layout { 
        flex-direction: column; 
    }
    
    .left-panel, .right-panel { 
        width: 100%; 
        min-width: 100%; 
        position: static; 
    }
}

/* ==========================================
   18. ADMIN VERSION - Professional Dark Theme
   ========================================== */

.admin-version {
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
}

.admin-version .control-group {
    border-left: 4px solid #ff6b6b;
    box-shadow: 0 4px 6px rgba(255, 107, 107, 0.2);
}

.admin-version h2 {
    color: #ff6b6b;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.admin-version .subtitle {
    color: #aec6cf;
    font-style: italic;
    margin-bottom: 15px;
}

.admin-version .control-group button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.admin-version .control-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Admin URL Previews */
#scenarioUrlPreviews .photo-card, 
#clothesUrlPreviews .photo-card {
    background: #1a1a1a;
    min-height: 100px;
    justify-content: center;
}

#scenarioUrlPreviews img, 
#clothesUrlPreviews img {
    max-height: 100px;
    width: 100%;
    object-fit: contain;
}

/* ==========================================
   Admin Result - full width and side-by-side
   Applies only to .admin-version
   ========================================== */
.admin-version .admin-result-fullwidth {
    background: transparent;
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 12px;
}
.admin-version #tryonResult {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}
.admin-version #tryonResult .result-item {
    width: 49%;
    min-height: 260px;
    background: #0f0f0f;
    border: 1px solid #444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}
.admin-version #tryonResult img,
.admin-version #tryonResult video {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
}

.admin-version .admin-result-fullwidth h3 {
    margin-bottom: 14px;
}

/* ==========================================
   19. PUBLIC VERSION - Clean Light Theme
   ========================================== */

.public-version {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

.public-version .control-group {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.public-version h2, 
.public-version h3, 
.public-version h4 {
    color: #2c3e50;
    text-transform: capitalize;
}

.public-version .subtitle {
    display: none;
}

.public-version input[type="text"], 
.public-version input[type="password"], 
.public-version input[type="number"] {
    background: #f9f9f9;
    border: 1px solid #ddd;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.public-version input[type="text"]:focus, 
.public-version input[type="password"]:focus, 
.public-version input[type="number"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

.public-version .control-group button {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.public-version .control-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

.public-version .photo-zone {
    background: #fafafa;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
}

.public-version .photo-zone h4 {
    padding-bottom: 8px;
    border-bottom: 2px solid #ecf0f1;
}

.public-version .input-field label {
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
}

.public-version .tryon-container {
    gap: 30px;
}

.public-version .-result-fullwidth{
    background: transparent;
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.public-version #tryonResult_public {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.public-version #tryonResult_public .result-item {
    width: 49%;
    min-height: 260px;
    background: #000000;
    border: 2px solid #ff0000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}

.public-version #tryonResult_public img,
.public-version #tryonResult_public video {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
}

.public-version .-result-fullwidth h3 {
    margin-bottom: 14px;
}

.public-version .step-bar {
    background: #f0f0f0;
    border: 1px solid #ddd;
}

.public-version .step-item.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

/* ==========================================
   PUBLIC VERSION - STEP 1 LAYOUT
   ========================================== */

/* Step 1 Public: Face and Body photos side-by-side with larger previews */
.public-version #step-p-1 .zone-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.public-version #step-p-1 .input-row-align {
    flex: 1;
    min-width: 250px;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
}

.public-version #step-p-1 .image-preview.small {
    width: 300px;
    height: 300px;
    margin-left: 0;
    margin-top: 10px;
    background: #000000;
    border: 2px solid #ff0000;
}

.public-version .btn-back {
    background: #95a5a6 !important;
}

/* ==========================================
   ADMIN VERSION - STEP 1 LAYOUT
   ========================================== */

/* Step 1 Admin: Face and Body photos side-by-side */
.admin-version #step-1 .zone-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.admin-version #step-1 .input-row-align {
    flex: 1;
    min-width: 250px;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
}

.admin-version #step-1 .image-preview.small {
    width: 300px;
    height: 300px;
    margin-left: 0;
    margin-top: 10px;
}