﻿
:root {
    --cta-color: #ffc600;
    --cta-hover: #e6b200;
}

body {
    background-color: #f8f9fa;
    color: #212529;
}

.wizard-container {
    max-width: 800px;
    margin: 50px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 40px;
}

.wizard-step {
    display: none;
}

    .wizard-step.active {
        display: block;
    }

.progress-bar-custom {
    height: 5px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--cta-color);
    transition: width 0.3s ease;
}

.btn-cta {
    background-color: var(--cta-color);
    color: #000;
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

    .btn-cta:hover {
        background-color: var(--cta-hover);
        color: #000;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

.btn-secondary-custom {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
}

    .btn-secondary-custom:hover {
        background-color: #5a6268;
        color: white;
    }

.format-option {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

    .format-option:hover {
        border-color: var(--cta-color);
        background-color: #fff9e6;
    }

    .format-option.selected {
        border-color: var(--cta-color);
        background-color: #fff9e6;
        border-width: 3px;
    }

.format-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border: 2px solid #000;
    background-color: #f8f9fa;
}

    .format-icon.quadrato {
        width: 100px;
        height: 100px;
    }

    .format-icon.orizzontale {
        width: 140px;
        height: 80px;
    }

    .format-icon.verticale {
        width: 80px;
        height: 140px;
    }

.size-option {
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

    .size-option:hover {
        border-color: var(--cta-color);
        background-color: #fff9e6;
    }

    .size-option.selected {
        border-color: var(--cta-color);
        background-color: #fff9e6;
        border-width: 3px;
    }

.custom-size-inputs {
    display: none;
    margin-top: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

    .custom-size-inputs.active {
        display: block;
    }

.crop-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

.crop-canvas-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: none;
}

.crop-frame {
    position: absolute;
    border: 3px solid var(--cta-color);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10;
}

#cropCanvas {
    display: block;
    max-width: 100%;
    cursor: move;
}

.zoom-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.zoom-btn {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: #343a40;
    border: 3px solid #343a40;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
}

    .zoom-btn:hover {
        background: linear-gradient(145deg, #343a40, #23272b);
        color: white;
        transform: scale(1.15);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .zoom-btn:active {
        transform: scale(1.05);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    }

.position-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 200px;
    margin: 20px auto;
}

.position-btn {
    background-color: #343a40;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .position-btn:hover {
        background-color: #23272b;
    }

    .position-btn:disabled {
        opacity: 0;
        cursor: default;
    }

.btn-cta.disabled,
.btn-cta[style*="opacity: 0.5"] {
    opacity: 0.5;
    pointer-events: none;
}

.upload-area {
    border: 3px dashed #dee2e6;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .upload-area:hover {
        border-color: var(--cta-color);
        background-color: #fff9e6;
    }

    .upload-area.dragover {
        border-color: var(--cta-color);
        background-color: #fff9e6;
    }

h2 {
    margin-bottom: 30px;
    font-weight: 700;
}

.step-indicator {
    text-align: center;
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 14px;
}

@media (max-width: 768px) {
    .wizard-container {
        margin: 20px;
        padding: 20px;
    }

    .position-controls {
        display: none;
    }

    .desktop-only {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}


