:root {
    --LoginSystemBgColor:#F47A20;
}
/* ================================
   royalUpload.css - v1.0
   ================================ */

.royal-upload {
    position: relative;
    width: 100%;
}

/* ── INPUT ── */
.royal-upload__input {
    display: none !important;
}

/* ── DROPZONE ── */
.royal-upload__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 20px;
    border: 2px dashed #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    background: #fafafa;
}

.royal-upload__dropzone:hover,
.royal-upload.dragover .royal-upload__dropzone {
    border-color: var(--LoginSystemBgColor, #4f46e5);
    background: rgba(79, 70, 229, 0.03);
}

.royal-upload.dragover .royal-upload__dropzone {
    transform: scale(1.01);
}

.royal-upload__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--LoginSystemBgColor, #4f46e5);
    transition: transform 0.25s ease;
}

.royal-upload__dropzone:hover .royal-upload__icon,
.royal-upload.dragover .royal-upload__icon {
    transform: translateY(-4px);
}

.royal-upload__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.royal-upload__sub {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-top: 2px;
}

.royal-upload__meta {
    font-size: 12px;
    color: #d1d5db;
    margin-top: 4px;
}

/* ── LİSTE ── */
.royal-upload__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* ── KART — GENEL ── */
.royal-upload__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    overflow: hidden;
    position: relative;
}

.royal-upload__card.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── KART — RESİM ── */
.royal-upload__card.is-image {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    width: 100%;
    flex-shrink: 0;
}

.royal-upload__card.is-image .royal-upload__thumb {
    width: 100%;
    height: 200px;
    border-radius: 10px 10px 0 0;
    background: #f3f4f6 center / cover no-repeat;
    position: relative;
    flex-shrink: 0;
}

/* Hover overlay */
.royal-upload__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.royal-upload__card.is-image:hover .royal-upload__overlay {
    opacity: 1;
}

.royal-upload__card.is-image .royal-upload__card-remove {
    position: static;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.royal-upload__card.is-image .royal-upload__card-remove:hover {
    background: rgba(239, 68, 68, 0.7);
    transform: scale(1.1);
}

/* Bilgi şeridi */
.royal-upload__card.is-image .royal-upload__card-info {
    padding: 7px 10px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 10px 10px;
}

/* ── KART — DOSYA (resim değil) ── */
.royal-upload__card:not(.is-image) .royal-upload__thumb {
    width: 100%;
    height: 200px;
    border-radius: 10px 10px 0 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #6b7280;
}

.royal-upload__card:not(.is-image) .royal-upload__overlay {
    display: flex;
}

.royal-upload__card:not(.is-image) .royal-upload__card-remove {
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.royal-upload__card:not(.is-image) .royal-upload__card-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.royal-upload__card:not(.is-image) {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    width: 100%;
}
.royal-upload__card:not(.is-image) .royal-upload__card-info {
    padding: 7px 10px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* ── KART BİLGİ ── */
.royal-upload__card-info {
    flex: 1;
    min-width: 0;
}

.royal-upload__card-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.royal-upload__card-size {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}