/* XREX belge yükleme ve hukuk inceleme alanı */
.upload-zone {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1.5px dashed color-mix(in srgb, var(--accent) 42%, var(--border));
    border-radius: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, var(--surface-2)), var(--surface-2));
    color: var(--text);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.upload-zone:hover,
.upload-zone:focus-visible {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(26,115,232,.10);
}
.upload-zone.is-dragging {
    border-color: var(--accent);
    border-style: solid;
    background: var(--grad-soft);
    box-shadow: 0 0 0 4px rgba(26,115,232,.12), 0 14px 30px rgba(26,115,232,.14);
    transform: translateY(-1px);
}
.upload-zone.is-busy { opacity: .72; pointer-events: none; }
.upload-zone-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--surface);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    font-size: 17px;
}
.upload-zone-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.upload-zone-copy strong { font-size: 13.5px; font-weight: 700; }
.upload-zone-copy span { color: var(--text-faint); font-size: 11.5px; line-height: 1.45; }
.upload-zone-btn,
.upload-clear-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 11px;
    min-height: 38px;
    padding: 8px 13px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background .15s ease, transform .12s ease;
}
.upload-zone-btn:hover,
.upload-clear-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.upload-zone-btn:active,
.upload-clear-btn:active { transform: scale(.97); }
.upload-zone-btn i { margin-right: 6px; }
.upload-status {
    display: none;
    margin: 0 2px 9px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.45;
}
.upload-status.show { display: flex; align-items: center; gap: 7px; }
.upload-status.error { color: var(--red); }
.upload-status.ok { color: var(--green); }
.upload-status i { width: 15px; text-align: center; }
.attachment-list {
    max-width: 780px;
    margin: 0 auto 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.attachment-pill {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 7px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}
.attachment-pill > i {
    grid-row: span 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--grad-soft);
    color: var(--accent);
    font-size: 12px;
}
.attachment-meta { min-width: 0; display: grid; gap: 2px; }
.attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 650; }
.attachment-size { color: var(--text-faint); font-size: 10.5px; }
.attachment-pill select {
    grid-column: 2 / 3;
    width: 100%;
    min-height: 30px;
    padding: 5px 7px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 11px;
}
.attachment-pill > button {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-faint);
    font-size: 13px;
}
.attachment-pill > button:hover { background: var(--red-bg); color: var(--red); }
.input-wrap { box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.input-wrap:focus-within { box-shadow: 0 10px 30px rgba(26,115,232,.12), 0 0 0 3px rgba(26,115,232,.08); }
#attachBtn { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
#attachBtn:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
#sendBtn { background: var(--grad); box-shadow: 0 7px 16px rgba(82,105,225,.24); }
#sendBtn:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 9px 20px rgba(82,105,225,.30); }
#sendBtn:disabled { background: var(--surface-3); box-shadow: none; }
@media (max-width: 680px) {
    .upload-zone { align-items: flex-start; flex-wrap: wrap; padding: 12px; }
    .upload-zone-copy { flex-basis: calc(100% - 58px); }
    .upload-zone-btn { width: 100%; margin-left: 56px; }
    .attachment-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .upload-zone, .upload-zone-btn, .upload-clear-btn { transition: none; }
}
