/**
 * Returning User Upload Block
 *
 * @package DEI4SME
 * @since   1.0.0
 */

.dei4sme-returning {
    margin: 0 0 40px;
}

.dei4sme-returning__inner {
    border-radius: 12px;
    padding: 40px;
    background: var(--color-bg);
    box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.15);
}

.dei4sme-returning__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin: 0 0 4px;
}

.dei4sme-returning__text {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-body);
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Drop zone */
.dei4sme-returning__dropzone {
    border-radius: 8px;
    padding: 40px;
    background: var(--color-bg-surface);
    border: 1px dashed rgba(79, 129, 201, 0.5);
    border-spacing: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    position: relative;
}

.dei4sme-returning__dropzone:hover,
.dei4sme-returning__dropzone.is-dragover {
    border-color: var(--color-blue-accent);
    background: var(--color-bg-info);
}

.dei4sme-returning__dropzone-icon {
    width: 46px;
    height: 40px;
    padding: 12px;
    background: var(--color-bg);
    border-radius: 50%;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.dei4sme-returning__dropzone-text {
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text-heading);
    margin: 0 0 4px;
}

.dei4sme-returning__dropzone-link {
    text-decoration: underline;
    cursor: pointer;
}

.dei4sme-returning__dropzone-hint {
    font-weight: 400;
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0;
}

/* Hidden native file input — pointer-events:none so dropzone JS handles drag/drop */
.dei4sme-returning__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

/* Status messages */
.dei4sme-returning__status {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
    min-height: 0;
}

.dei4sme-returning__status:empty {
    display: none;
}

.dei4sme-returning__status--success {
    color: var(--color-success);
    font-weight: 600;
}

.dei4sme-returning__status--error {
    color: var(--color-error);
    font-weight: 600;
}

/* Success state */
.dei4sme-returning--success .dei4sme-returning__dropzone {
    border-color: var(--color-success);
    background: var(--color-success-bg);
}

/* Error state */
.dei4sme-returning--error .dei4sme-returning__dropzone {
    border-color: var(--color-error);
    background: var(--color-error-bg);
}

/* Start fresh link */
.dei4sme-returning__fresh {
    margin: 0;
    text-align: center;
}

.dei4sme-returning__fresh-link {
    font-weight: 400;
    font-size: 12px;
    text-decoration: underline;
    color: var(--color-text-placeholder);
}

.dei4sme-returning__fresh-link:hover {
    color: var(--color-text-muted);
}

/* Spinner for loading state */
@keyframes dei4sme-spin {
    to { transform: rotate(360deg); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dei4sme-returning__inner {
        padding: 24px;
    }

    .dei4sme-returning__dropzone {
        padding: 24px;
    }
}
