﻿/* ── Field (MudField yerine native fieldset/legend) ─────────────── */
.laf-bin-field {
    width: 100%;
    margin: 0;
    padding: 4px 8px 8px 8px;
    border: 1px solid var(--mud-palette-lines-inputs, rgba(0, 0, 0, .23));
    border-radius: var(--mud-default-borderradius, 4px);
    min-inline-size: auto;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .laf-bin-field:hover:not(.laf-bin-field-disabled):not(.laf-bin-field-focused) {
        border-color: var(--mud-palette-text-primary, rgba(0, 0, 0, .87));
    }

.laf-bin-field-legend {
    margin-left: 4px;
    padding: 0 6px;
    font-size: .75rem;
    line-height: 1;
    color: var(--mud-palette-text-secondary, rgba(0, 0, 0, .6));
    transition: color .2s ease;
}

.laf-bin-field-focused {
    border-color: var(--mud-palette-primary, #594ae2);
    box-shadow: 0 0 0 1px var(--mud-palette-primary, #594ae2);
}

    .laf-bin-field-focused .laf-bin-field-legend {
        color: var(--mud-palette-primary, #594ae2);
    }

.laf-bin-field-disabled {
    opacity: .6;
    pointer-events: none;
}

/* ── Container & states ─────────────────────────────────────────── */
.laf-bin-container {
    width: 100%;
}

.laf-bin-center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* ── Dosya bilgisi (HasFile) ────────────────────────────────────── */
.laf-bin-fileinfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 48px;
    height: 100%;
    gap: 8px;
    overflow: hidden;
}

.laf-bin-fileicon svg {
    width: 64px;
    height: 64px;
    display: block;
    fill: var(--mud-palette-text-primary, currentColor);
}

.laf-bin-filename {
    text-align: center;
    word-break: break-all;
    line-height: 1.2;
    font-size: 1rem;
    color: var(--mud-palette-text-primary, rgba(0, 0, 0, .87));
}

.laf-bin-filesize {
    font-size: .75rem;
    color: var(--mud-palette-text-secondary, rgba(0, 0, 0, .6));
}

/* ── Boş durum / dropzone ───────────────────────────────────────── */
.laf-bin-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    height: 100%;
    cursor: pointer;
    border-radius: 4px;
    transition: background .15s ease;
}

    .laf-bin-dropzone.laf-drag-over {
        background: rgba(var(--mud-palette-primary-rgb), .08);
        outline: 2px dashed var(--mud-palette-primary);
        outline-offset: -6px;
    }

.laf-bin-hints {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: .28;
}

    .laf-bin-hints .laf-bin-hint svg {
        width: 36px;
        height: 36px;
        display: block;
        fill: var(--mud-palette-text-primary, currentColor);
    }

.laf-bin-placeholder {
    text-align: center;
    font-size: .75rem;
    opacity: .7;
    color: var(--mud-palette-text-secondary, rgba(0, 0, 0, .6));
}

.laf-bin-sizehint {
    font-size: .75rem;
    opacity: .7;
    color: var(--mud-palette-text-secondary, rgba(0, 0, 0, .6));
}

/* ── Action overlay (MudStack + MudFab yerine) ──────────────────── */
.laf-bin-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    opacity: 0;
    transition: opacity .2s ease;
}

.laf-bin-container:hover .laf-bin-actions,
.laf-bin-field-focused .laf-bin-actions {
    opacity: 1;
}
