/* ==========================================================================
   AegisVault - Modern Cybersecurity Dark Theme & Glassmorphism Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #07090E;
    --bg-secondary: #0D111A;
    --bg-tertiary: #131A27;
    --bg-card: rgba(19, 26, 39, 0.75);
    --bg-card-hover: rgba(26, 36, 54, 0.85);
    --bg-input: rgba(10, 14, 23, 0.8);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(16, 185, 129, 0.3);
    --border-focus: #10B981;

    /* Accent & Semantic Colors */
    --primary: #10B981;
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.25);
    --accent-cyan: #06B6D4;
    --accent-indigo: #6366F1;
    --accent-purple: #8B5CF6;
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.12);

    /* Typography */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Shadows & Glassmorphism */
    --glass-blur: blur(16px);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px var(--primary-glow);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --trans-fast: 0.15s ease;
    --trans-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------
   Reset & Base Styles
   ---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle Animated Ambient Background */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.mono {
    font-family: var(--font-mono);
}

/* ----------------------------------------------------
   Layout & Container
   ---------------------------------------------------- */
.app-container {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* ----------------------------------------------------
   Lock Screen & Setup Wizard
   ---------------------------------------------------- */
.auth-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    backdrop-filter: var(--glass-blur);
    background: rgba(7, 9, 14, 0.85);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: var(--glass-blur);
    position: relative;
    animation: authSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.logo-badge {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.15));
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.logo-badge svg {
    width: 32px;
    height: 32px;
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #FFF;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-badge-2fa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.input-icon svg {
    width: 18px;
    height: 18px;
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--trans-fast);
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.input-action-btn {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--trans-fast);
}

.input-action-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.totp-input {
    letter-spacing: 0.35em;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    text-align: center;
    padding-left: 14px;
}

.btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: var(--trans-fast);
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-weight: 500;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--trans-fast);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Setup Steps inside Modal */
.setup-step {
    margin-bottom: 24px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.qr-container {
    background: #FFFFFF;
    padding: 16px;
    border-radius: var(--radius-lg);
    width: fit-content;
    margin: 16px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.manual-key-box {
    background: var(--bg-input);
    border: 1px dashed var(--border-accent);
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 10px;
}

.manual-key-text {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    word-break: break-all;
    user-select: all;
}

/* ----------------------------------------------------
   Main Dashboard Layout
   ---------------------------------------------------- */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.2));
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.sidebar-brand h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFF;
    letter-spacing: -0.01em;
}

.sidebar-brand span {
    font-size: 0.7rem;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    padding: 8px 12px;
    margin-top: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
    transition: var(--trans-fast);
}

.nav-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item svg {
    width: 18px;
    height: 18px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border-left: 3px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.nav-badge {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.nav-item.active .nav-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-lock {
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #F87171;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--trans-fast);
}

.btn-lock:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #FFF;
}

/* ----------------------------------------------------
   Main Content Area
   ---------------------------------------------------- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
}

.topbar {
    height: 68px;
    padding: 0 28px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 17, 26, 0.6);
    backdrop-filter: var(--glass-blur);
    z-index: 5;
}

.topbar-search {
    width: 380px;
    position: relative;
}

.topbar-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.topbar-search input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.topbar-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-add-entry {
    padding: 9px 18px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFF;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    transition: var(--trans-fast);
}

.btn-add-entry:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ----------------------------------------------------
   Split View: Item List & Details Panel
   ---------------------------------------------------- */
.vault-workspace {
    flex: 1;
    display: grid;
    grid-template-columns: 380px 1fr;
    overflow: hidden;
}

/* Item List Column */
.items-column {
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    background: rgba(13, 17, 26, 0.3);
    overflow: hidden;
}

.items-column-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.items-column-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.items-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.vault-item-card {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--trans-fast);
    position: relative;
}

.vault-item-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.vault-item-card.active {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
}

.vault-item-card.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.item-icon svg {
    width: 20px;
    height: 20px;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.item-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-favorite-btn {
    color: var(--text-muted);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--trans-fast);
}

.item-favorite-btn.favorited {
    color: #F59E0B;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Detail View Column */
.details-column {
    flex: 1;
    overflow-y: auto;
    padding: 28px 36px;
    background: var(--bg-primary);
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 28px;
}

.detail-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-big-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.15));
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.detail-big-icon svg {
    width: 28px;
    height: 28px;
}

.detail-title-group h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFF;
}

.detail-category-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    margin-top: 4px;
    display: inline-block;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: var(--glass-blur);
}

.detail-card-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-field {
    margin-bottom: 16px;
}

.detail-field:last-child {
    margin-bottom: 0;
}

.field-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.field-value-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.95rem;
}

.field-value-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.field-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-btn {
    padding: 6px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--trans-fast);
    display: flex;
    align-items: center;
}

.field-btn:hover {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
}

/* ----------------------------------------------------
   Tools: Password Generator & Security Audit
   ---------------------------------------------------- */
.tool-view-wrapper {
    padding: 32px;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.generator-result-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
}

.generator-display {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--accent-cyan);
    word-break: break-all;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.generator-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.slider {
    flex: 1;
    accent-color: var(--primary);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.custom-checkbox input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.strength-meter-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 10px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Security Audit Cards */
.audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-card-number {
    font-size: 2rem;
    font-weight: 700;
}

/* ----------------------------------------------------
   Modals
   ---------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    padding: 28px;
    position: relative;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFF;
}

.modal-close-btn {
    color: var(--text-muted);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--trans-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

/* ----------------------------------------------------
   Toast Notifications
   ---------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: #FFF;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-success {
    border-color: rgba(16, 185, 129, 0.4);
    background: #0E2A20;
    color: #6EE7B7;
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.4);
    background: #2D1418;
    color: #FCA5A5;
}

/* ----------------------------------------------------
   Responsive Adjustments
   ---------------------------------------------------- */
@media (max-width: 900px) {
    .vault-workspace {
        grid-template-columns: 1fr;
    }
    .details-column {
        display: none;
    }
    .details-column.mobile-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 100;
        background: var(--bg-primary);
    }
    .sidebar {
        width: 70px;
    }
    .sidebar-brand, .nav-item-left span, .nav-badge, .nav-section-title {
        display: none;
    }
    .topbar-search {
        width: 220px;
    }
}
