/* Safety Vault — dashboard tab styles */

/* ── Full-width card ─────────────────────────────────── */
.vault-card--full { grid-column: 1 / -1; }

/* ── Inline secret row ───────────────────────────────── */
.vault-secret-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 60%;
    overflow: hidden;
}

.vault-secret-inline .vault-secret-blur,
.vault-secret-inline .vault-secret-visible {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: #a5b4fc;
}

.vault-action-btn-sm {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 4px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.vault-action-btn-sm:hover { opacity: 1; }



/* ── Lock Screen ─────────────────────────────────────────── */
.vault-lock-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.vault-lock-card {
    background: linear-gradient(135deg, rgba(15,15,25,0.95) 0%, rgba(20,20,35,0.95) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 48px 52px;
    width: 380px;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
}

.vault-lock-icon {
    width: 88px;
    height: 88px;
    background: radial-gradient(circle, rgba(251,191,36,0.12) 0%, transparent 70%);
    border: 1px solid rgba(251,191,36,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #fbbf24;
    animation: vault-pulse 3s ease-in-out infinite;
}

@keyframes vault-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.15); }
    50% { box-shadow: 0 0 0 12px rgba(251,191,36,0); }
}

.vault-lock-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.vault-lock-sub {
    color: rgba(200,204,212,0.5);
    font-size: 0.85rem;
    margin: 0 0 28px;
}

.vault-pin-field {
    margin-bottom: 16px;
    position: relative;
}

.vault-pin-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    color: #f0f0f0;
    font-size: 1rem;
    padding: 13px 16px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    letter-spacing: 0.1em;
    font-family: monospace;
}

.vault-pin-input:focus {
    border-color: rgba(251,191,36,0.4);
    box-shadow: 0 0 0 3px rgba(251,191,36,0.07);
}

.vault-pin-field.error .vault-pin-input {
    border-color: rgba(239,68,68,0.5);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

.vault-pin-error {
    margin-top: 8px;
    color: #ef4444;
    font-size: 0.78rem;
    text-align: left;
}

.vault-unlock-btn {
    width: 100%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.15s;
}

.vault-unlock-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.vault-unlock-btn:active { transform: translateY(0); }

/* ── Vault Header ─────────────────────────────────────────── */
.vault-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(16,185,129,0.07);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: 8px;
    margin-bottom: 24px;
}

.vault-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.vault-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16,185,129,0.6);
    animation: vault-blink 2s ease-in-out infinite;
}

@keyframes vault-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.vault-status-label { color: #10b981; font-weight: 600; }
.vault-status-meta  { color: rgba(200,204,212,0.4); font-size: 0.78rem; }

.vault-lock-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(200,204,212,0.5);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    transition: all 0.2s;
}

.vault-lock-btn:hover { color: #ef4444; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); }

/* ── Vault Grid ─────────────────────────────────────────── */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}

/* ── Vault Cards ─────────────────────────────────────────── */
.vault-card {
    background: rgba(15,15,25,0.7);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 22px;
    backdrop-filter: blur(10px);
}

.vault-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.vault-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vault-card-icon--amber  { background: rgba(251,191,36,0.12);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.vault-card-icon--blue   { background: rgba(59,130,246,0.12);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.vault-card-icon--green  { background: rgba(16,185,129,0.12);  color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.vault-card-icon--purple { background: rgba(139,92,246,0.12);  color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); }

.vault-card-title { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.vault-card-sub   { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ── Secret box ─────────────────────────────────────────── */
.vault-secret-box {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1rem;
    letter-spacing: 0.12em;
}

.vault-secret-blur {
    filter: blur(6px);
    transition: filter 0.3s;
    user-select: none;
    color: #fbbf24;
    font-weight: 600;
}

.vault-secret-visible {
    filter: none;
    color: #fbbf24;
    font-weight: 600;
}

.vault-secret-actions { display: flex; gap: 6px; flex-shrink: 0; }

.vault-action-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    color: rgba(200,204,212,0.6);
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}
.vault-action-btn:hover { background: rgba(255,255,255,0.1); color: #f0f0f0; }

.vault-card-note {
    font-size: 0.72rem;
    color: rgba(251,191,36,0.5);
    line-height: 1.5;
}

/* ── Info grid / cmd box ─────────────────────────────────── */
.vault-info-grid { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.vault-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.vault-info-row span { color: var(--text-muted); }
.vault-info-row code {
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.78rem;
    color: #a5b4fc;
}

.vault-cmd-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 10px 12px;
}

.vault-cmd-box code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #6ee7b7;
    display: block;
}
