/*!
 * hcg-file-drop - vanilla JS drag-and-drop file upload widget
 * Version: 1.0.0
 * Default styles for the drag-and-drop file upload widget.
 * Edit freely or override these rules from your own stylesheet.
 * License: MIT
 */

.hcg-dragdrop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: background .15s, border-color .15s, opacity .15s;
    user-select: none;
    outline: none;
}

.hcg-dragdrop-zone:focus-visible {
    box-shadow: 0 0 0 3px #c7d2fe;
}

.hcg-dragdrop-zone--active {
    border-color: #6366f1;
    background: #eef2ff;
}

.hcg-dragdrop-zone--disabled {
    cursor: not-allowed;
    opacity: .55;
    pointer-events: none;
}

.hcg-dragdrop-hint {
    margin: 0;
    font-size: .92rem;
    color: #64748b;
    pointer-events: none;
}

.hcg-dragdrop-input {
    display: none;
}

.hcg-dragdrop-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.hcg-dragdrop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: .85rem;
}

.hcg-dragdrop-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1f2937;
    font-weight: 500;
}

.hcg-dragdrop-meta {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: .76rem;
    font-family: "Fira Code", monospace;
}

.hcg-dragdrop-remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: .9rem;
    padding: 0 2px;
    flex-shrink: 0;
    line-height: 1;
}
