/* P11a: Private Knowledge Vault — upload UI styles */

/* ─── Panel ────────────────────────────────────────────────────────────────── */

.vu-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

/* ─── Drop zone ─────────────────────────────────────────────────────────────── */

.vu-drop-zone {
    border: 2px dashed rgba(108, 99, 255, 0.35);
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(108, 99, 255, 0.03);
}

.vu-drop-zone:hover,
.vu-drop-zone.vu-drag-over {
    border-color: rgba(108, 99, 255, 0.7);
    background: rgba(108, 99, 255, 0.07);
}

.vu-drop-icon {
    font-size: 32px;
    color: rgba(108, 99, 255, 0.6);
    margin-bottom: 8px;
    line-height: 1;
}

.vu-drop-label {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--ip-text, #e0e0e0);
}

.vu-drop-hint {
    margin: 0;
    font-size: 11px;
    color: var(--ip-text-muted, #888);
}

/* Hidden native file input behind the "browse" label */
.vu-file-input {
    display: none;
}

.vu-file-label {
    color: var(--vc-primary, #6c63ff);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(108, 99, 255, 0.35);
    text-underline-offset: 2px;
}

/* ─── Quota bar ─────────────────────────────────────────────────────────────── */

.vu-quota-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.vu-quota-text {
    font-size: 11px;
    color: var(--ip-text-muted, #888);
    flex: 1;
}

.vu-quota-upgrade {
    font-size: 11px;
    color: var(--vc-primary, #6c63ff);
    text-decoration: none;
    white-space: nowrap;
}

.vu-quota-upgrade:hover { text-decoration: underline; }

.vu-quota-fill-track {
    width: 80px;
    height: 4px;
    background: rgba(150, 145, 175, 0.15);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.vu-quota-fill-bar {
    height: 100%;
    background: var(--vc-primary, #6c63ff);
    border-radius: 2px;
    transition: width 0.3s;
}

/* Warn when >80% used */
.vu-quota-fill-bar[style*="width:8"],
.vu-quota-fill-bar[style*="width:9"],
.vu-quota-fill-bar[style*="width:100%"] {
    background: #f59e0b;
}

/* ─── Document list ──────────────────────────────────────────────────────────── */

.vu-doc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
}

.vu-doc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(150, 145, 175, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: var(--ip-text, #e0e0e0);
}

.vu-doc-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.vu-doc-size {
    color: var(--ip-text-muted, #888);
    white-space: nowrap;
}

.vu-doc-status {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: 500;
    background: rgba(150, 145, 175, 0.15);
    color: var(--ip-text-muted, #888);
    border: 1px solid rgba(150, 145, 175, 0.2);
}

.vu-doc-status[data-status="queued"]     { background: rgba(150,145,175,.1); color: #9090b0; }
.vu-doc-status[data-status="uploading"]  { background: rgba(108,99,255,.15); color: #a9a3ff; border-color: rgba(108,99,255,.3); }
.vu-doc-status[data-status="processing"] { background: rgba(245,158,11,.12); color: #fbbf24; border-color: rgba(245,158,11,.3); }
.vu-doc-status[data-status="ready"]      { background: rgba(34,197,94,.12);  color: #4ade80; border-color: rgba(34,197,94,.3); }
.vu-doc-status[data-status="error"]      { background: rgba(239,68,68,.12);  color: #f87171; border-color: rgba(239,68,68,.3); }

/* ─── First-upload modal (overlay built in JS; these styles target inner card) */

#vu-onboard-overlay button:hover {
    filter: brightness(1.1);
}
