/* ===== FLUENT FILE UPLOAD ===== */

.fup {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Dropzone (input area + label envuelto) */
.fup-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 20px 16px;
    border: 2px dashed #C8C6C4;
    border-radius: 12px;
    background: #FAFAFA;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    text-align: center;
    user-select: none;
}

.fup-dropzone:hover {
    border-color: #003E91;
    background: #F0F7FF;
}

.fup-dropzone.fup-has-file {
    background: #FFFFFF;
    border-style: solid;
    border-color: #E5E7EB;
    text-align: left;
}

.fup-dropzone.fup-has-file:hover {
    border-color: #003E91;
    background: #FAFAFA;
}

/* Input nativo invisible que cubre el dropzone */
.fup-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

/* Estado vacio */
.fup-empty {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.fup-icon-big {
    font-size: 2.5rem;
    color: #003E91;
    line-height: 1;
}

.fup-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fup-action {
    color: #003E91;
    font-weight: 600;
    font-size: 0.9375rem;
}

.fup-hint {
    color: #6B7280;
    font-size: 0.8125rem;
}

.fup-allowed {
    color: #9CA3AF;
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 4px;
}

/* Estado con archivo seleccionado */
.fup-selected {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    pointer-events: none;
}

.fup-icon {
    font-size: 1.75rem;
    color: #003E91;
    flex-shrink: 0;
    line-height: 1;
}

.fup-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fup-filename {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1F2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fup-size {
    font-size: 0.8125rem;
    color: #6B7280;
}

.fup-remove {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #9CA3AF;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.125rem;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
    pointer-events: auto;
    z-index: 2;
}

.fup-remove:hover {
    background-color: rgba(209, 52, 56, 0.1);
    color: #D13438;
}

/* Mensaje de error */
.fup-error {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 6px;
    color: #B91C1C;
    font-size: 0.8125rem;
}

.fup-error i {
    font-size: 1rem;
    flex-shrink: 0;
}
