/* FESTVLGEAR — Reusable enhanced file upload widget
   Used on custom.php (Custom Studio) and vendor.php (Vendor Inquiry). */

.upload-widget {
    margin-top: 8px;
}

.upload-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 28px 18px;
    background: #08080d;
    border: 1.5px dashed #3a3745;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-dropzone:hover {
    border-color: var(--cyan);
}

.upload-dropzone:focus-within {
    border-color: var(--cyan);
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.upload-dropzone[hidden] {
    display: none;
}

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.upload-dropzone-icon {
    font-size: 22px;
    color: var(--cyan);
    line-height: 1;
}

.upload-dropzone-text {
    font-size: 13px;
    color: #d4d0dd;
    font-weight: 500;
}

.upload-dropzone-text strong {
    color: #fff;
}

.upload-dropzone-hint {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #706b7d;
    text-transform: uppercase;
    font-weight: 700;
}

/* Selected-file preview state */
.upload-file-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #08080d;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.upload-file-preview[hidden] {
    display: none;
}

.upload-file-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--panel2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
}

.upload-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-file-icon {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--cyan);
}

.upload-file-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upload-file-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-file-size {
    font-size: 11px;
    color: var(--muted);
}

.upload-file-remove {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--line);
    color: var(--pink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 9px 14px;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
}

.upload-file-remove:hover {
    border-color: var(--pink);
    background: rgba(255, 43, 214, 0.08);
}

.upload-file-error {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pink);
}

.upload-file-error[hidden] {
    display: none;
}

@media (max-width: 560px) {
    .upload-dropzone {
        padding: 22px 14px;
    }
    .upload-file-preview {
        flex-wrap: wrap;
    }
    .upload-file-remove {
        margin-left: auto;
    }
}
