/**
 * FIBBIE App - Stili
 * Foglio di stile esterno alternativo
 */

:root {
    --primary-color: #14213d;
    --secondary-color: #a7754d;
    --accent-color: #e16a2d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #1e8a5e;
    --warning-color: #d4a017;
    --danger-color: #d44c2c;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Custom separator */
.card-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
}

/* Upload section inside card - smooth transition */
#customShoeUploadCard {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* Two column layout adjustments */
@media (max-width: 991px) {
    .col-lg-5, .col-lg-7 {
        margin-bottom: 1rem;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-color);
    line-height: 1.6;
    padding-top: 0;
    transition: var(--transition);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.brand-logo {
    height: 60px;
    margin-right: 15px;
}

.header {
    background-color: white;
    padding: 1.5rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-title {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.tagline {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-top: 5px;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    padding: 20px;
}

.login-container {
    max-width: 450px;
    margin: 100px auto;
    padding: 40px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.brand-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.brand-tagline {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
    border: none;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.card-header h5 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.card-header h5 i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.card-body {
    padding: 2rem;
}

.preview-container {
    min-height: 300px;
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    transition: var(--transition);
    background-color: #fcfcfc;
}

.preview-container.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(20, 33, 61, 0.05);
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.upload-label {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(20, 33, 61, 0.25);
}

.upload-label:hover {
    background-color: #1a2a4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(20, 33, 61, 0.3);
}

#imageUpload, #uploadInput {
    display: none;
}

.results-container {
    margin-top: 30px;
    width: 100%;
}

.results-container .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.results-container .row::after {
    content: "";
    clear: both;
    display: table;
}

.results-container .col-md-4 {
    display: flex;
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* Fix per assicurare layout a 3 colonne */
@media (min-width: 992px) {
    .results-container .col-md-4 {
        width: 33.333%;
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .results-container .col-md-4 {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .results-container .col-md-4 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .img-container {
        min-height: 250px;
    }
    
    .card-img-top.result-image {
        height: 250px;
    }
}

.results-container .card {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    margin-bottom: 0;
}

.results-container .card-body {
    flex: 1;
    padding: 20px;
}

.results-container .card-footer {
    padding: 12px 20px 20px;
}

.result-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    animation: fadeInUp 0.7s ease-out forwards;
    animation-delay: calc(var(--index) * 0.1s);
    opacity: 0;
    transform: translateY(20px);
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.result-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-title {
    padding: 15px 20px;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(248, 249, 250, 0.95);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
}

.description-container {
    padding: 20px;
    background-color: white;
}

.description-text {
    color: var(--dark-color);
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
}

.btn {
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 30px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a2a4d;
    border-color: #1a2a4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(20, 33, 61, 0.3);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #176b48;
    border-color: #176b48;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 138, 94, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-danger {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
    transform: translateY(-2px);
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 12px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    font-size: 0.95rem;
    background-color: #f9f9f9;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(20, 33, 61, 0.15);
    background-color: #ffffff;
}

.form-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.color-preview {
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

#previewText {
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

.debug-info {
    font-size: 0.75rem;
    color: #888;
    padding: 5px 10px;
    background-color: #f9f9f9;
    border-top: 1px dashed #eee;
    font-family: monospace;
}

.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.result-error {
    padding: 30px;
    text-align: center;
    color: var(--danger-color);
}

.download-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.9;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background-color: var(--accent-color);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.loading-content {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    max-width: 90%;
    width: 400px;
}

.loading-text {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 20px 0;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-color);
    background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    padding: 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 20px 15px;
    position: relative;
    color: #999;
    transition: var(--transition);
}

.step-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin: 0 auto 15px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    font-size: 1.5rem;
    color: #aaa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step-label {
    font-weight: 600;
    margin-top: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 54px;
    right: -50%;
    width: 100%;
    height: 3px;
    background-color: #f0f0f0;
    z-index: 1;
}

.step.active {
    color: var(--primary-color);
}

.step.active .step-icon {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 6px 15px rgba(20, 33, 61, 0.3);
    transform: scale(1.1);
}

.step.completed .step-icon {
    background-color: var(--success-color);
    color: white;
}

.step.completed:not(:last-child):after {
    background-color: var(--success-color);
}

.footer {
    background-color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
    border-top: 1px solid #eee;
}

.footer-content {
    color: var(--dark-color);
    font-size: 0.9rem;
}

.powered-by {
    font-size: 0.85rem;
    margin-top: 10px;
    color: #888;
    font-style: italic;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .results-container {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step:not(:last-child):after {
        display: none;
    }
    
    .step {
        margin-bottom: 20px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .login-container {
        padding: 30px 20px;
        margin: 50px auto;
    }
}

/* Notification system */
.notification {
    position: fixed;
    z-index: 10000;
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 450px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(0);
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-warning {
    border-left-color: var(--warning-color);
}

.notification-error {
    border-left-color: var(--danger-color);
}

.notification-icon {
    margin-right: 18px;
    font-size: 1.6rem;
}

.notification-success .notification-icon {
    color: var(--success-color);
}

.notification-warning .notification-icon {
    color: var(--warning-color);
}

.notification-error .notification-icon {
    color: var(--danger-color);
}

.notification-info .notification-icon {
    color: var(--primary-color);
}

.notification-message {
    flex-grow: 1;
    font-size: 1rem;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1.2rem;
    padding: 0;
    margin-left: 15px;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: #333;
}

.fade-out {
    opacity: 0;
    transform: translateX(30px);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Modal styling */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: white;
}

.modal-header .btn-close {
    color: white;
    opacity: 0.8;
    font-size: 0.8rem;
    box-shadow: none;
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.step-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.step-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Image selector styles */
.image-selector .btn-check:checked + .btn {
    border-color: var(--primary-color);
    background-color: rgba(20, 33, 61, 0.05);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-selector .btn {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.image-selector .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.shoe-selector img {
    transition: all 0.3s ease;
    max-width: 100%;
}

.shoe-selector .btn-check:checked + .btn img {
    transform: scale(1.05);
}

.color-swatch {
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-check:checked + .btn .color-swatch {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-secondary {
    color: #666;
    border-color: #ddd;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #333;
    border-color: #ccc;
}

/* Miglioramenti per la visualizzazione delle immagini generate */
.result-card {
    height: 100%;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.img-container {
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    min-height: 300px;
    position: relative;
}

.card-img-top.result-image {
    max-width: 100%;
    height: 300px;
    object-fit: contain; /* Default to contain */
    display: block;
    transition: all 0.5s ease;
}

.img-container:hover .result-image {
    transform: scale(1.05);
}

/* Animazione di apparizione più smooth */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.result-card {
    animation: fadeInScale 0.5s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.1s);
    opacity: 0;
}

/* Miglioramento titoli e testi nelle card */
.card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700 !important;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-align: center;
}

.description-text {
    max-height: 120px;
    overflow-y: auto;
    padding-right: 5px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.description-text::-webkit-scrollbar {
    width: 4px;
}

.description-text::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
}

/* Miglioramento visualizzazione su dispositivi mobili */
@media (max-width: 767px) {
    .img-container {
        min-height: 250px;
    }
    
    .card-img-top.result-image {
        height: 250px;
    }
    
    .results-container .col-md-4 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .image-display-controls .btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
    }
}

/* Miglioramento visualizzazione su tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .results-container .col-md-4 {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Stilizzazione titolo sezione risultati */
.results-info .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.results-info .section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Overlay per l'immagine con pulsante zoom */
.img-container {
    position: relative;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.img-container:hover .img-overlay {
    opacity: 1;
}

.btn-zoom {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    cursor: pointer;
    transform: scale(0.8);
}

.img-container:hover .btn-zoom {
    transform: scale(1);
}

.btn-zoom:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Modal per visualizzare l'immagine a schermo intero */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.image-modal-img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    margin: 0 auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border: 5px solid white;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    transform: scale(1.1);
    background-color: rgba(255, 0, 0, 0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 767px) {
    .image-modal-content {
        max-width: 95%;
    }
    
    .image-modal-close {
        top: -30px;
        right: 0;
    }
}

/* Card vuota per mantenere il layout */
.empty-card .img-container {
    background-color: #f9f9f9;
    border: 2px dashed #e0e0e0;
    color: #aaa;
}

.empty-card .img-container i {
    opacity: 0.5;
}

/* Ulteriori miglioramenti layout */
.results-container .row {
    margin-left: -15px;
    margin-right: -15px;
    display: flex;
    flex-wrap: wrap;
}

.results-container .row::after {
    content: "";
    clear: both;
    display: table;
}

/* Indicatore di caricamento in-page invece dell'overlay */
.loading-indicator {
    border-radius: 12px;
    background-color: rgba(248, 249, 250, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.loading-indicator .spinner-border {
    color: var(--primary-color) !important;
    width: 2.5rem;
    height: 2.5rem;
}

/* Upload box styles for multiple image uploads */
.upload-box {
    position: relative;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
    background-color: #fcfcfc;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background-color: rgba(20, 33, 61, 0.02);
}

.upload-box .preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.upload-box .preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

.upload-box .remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.upload-box.has-image {
    border-color: var(--success-color);
    border-style: solid;
}

.upload-box.has-image .preview-area {
    display: none;
}

.upload-box.has-image .preview-image {
    display: block !important;
}

.upload-box.has-image .remove-image {
    display: flex !important;
} 