/* ============================================================
   DRUO Drag-and-Drop Zone
   ============================================================ */

/* Prevent body scroll while modal is open */
body.druo-dz-modal-open {
    overflow: hidden;
}

/* ------------------------------------------------------------
   Full-screen drag overlay (shown while dragging over a zone)
   ------------------------------------------------------------ */
#druo-dz-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99998;
    display: none;
    place-items: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: druo-dz-fade-in 0.15s ease;
}

#druo-dz-overlay.druo-dz-visible {
    display: grid;
}

@keyframes druo-dz-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.druo-dz-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 64px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    max-width: 420px;
    width: 90%;
    border: 2px dashed #4f46e5;
    animation: druo-dz-card-pop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes druo-dz-card-pop {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.druo-dz-icon {
    margin: 0 auto 20px;
    width: 56px;
    height: 56px;
    color: #4f46e5;
}

.druo-dz-icon svg {
    width: 100%;
    height: 100%;
}

.druo-dz-helper-text {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.druo-dz-accept-hint {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   Full-screen Dromo modal (shown after a valid file is dropped)
   ------------------------------------------------------------ */
#druo-dz-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    display: none;
    flex-direction: column;
}

#druo-dz-modal.druo-dz-visible {
    display: flex;
}

#druo-dz-modal-container {
    flex: 1;
    width: 100%;
    overflow: hidden;
}

.druo-dz-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.druo-dz-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.druo-dz-close svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* ------------------------------------------------------------
   Toast notification
   ------------------------------------------------------------ */
.druo-dz-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #1f2937;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    white-space: nowrap;
    max-width: 90vw;
    white-space: normal;
    text-align: center;
}

.druo-dz-toast.druo-dz-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
