/* Yapistirilabilir dosya alani.
   Hem musteri paneli (Bootstrap) hem de yonetim ekrani icin ayni gorunum. */

.pu-zone {
    position: relative;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    padding: 14px;
    transition: border-color .15s ease, background .15s ease;
}

.pu-zone.pu-over {
    border-color: #2563eb;
    background: #eff6ff;
}

/* Bootstrap ve yonetim ekrani display kurallari [hidden]'i ezebiliyor;
   gizlenen bolum gercekten gizlensin. */
.pu-zone [hidden] {
    display: none !important;
}

/* Gercek input yerinde kalir; form onu ayni ad ve dosyayla gonderir. */
.pu-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pu-drop {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}

.pu-icon {
    font-size: 22px;
    line-height: 1;
}

.pu-text {
    font-size: .84rem;
    color: #64748b;
}

.pu-text b {
    color: #334155;
}

.pu-pick {
    background: none;
    border: none;
    padding: 0;
    color: #2563eb;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.pu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.pu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
}

.pu-more {
    text-align: center;
    font-size: .8rem;
    color: #94a3b8;
    padding-top: 2px;
}

.pu-thumb {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 18px;
}

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

.pu-info {
    min-width: 0;
    flex: 1 1 auto;
}

.pu-name {
    font-size: .84rem;
    font-weight: 600;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pu-size {
    font-size: .76rem;
    color: #94a3b8;
}

.pu-remove {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #be123c;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.pu-remove:hover {
    background: #fff1f2;
    border-color: #fecdd3;
}

.pu-error:empty {
    display: none;
}

.pu-error {
    margin-top: 8px;
    font-size: .78rem;
    color: #be123c;
}

/* Yonetim ekranindaki alan satiri dar; alan tasmasin. */
.form-row .pu-zone,
.aligned .pu-zone {
    max-width: 520px;
}
