:root { --vault-surface: #f6f8fb; }
body { background: var(--vault-surface); color: #172033; }
.vault-bg { background: radial-gradient(circle at top, #eef4ff 0, #f6f8fb 45%, #eef1f6 100%); }
.vault-card { border-radius: 1.25rem; }
.vault-logo { width: 64px; height: 64px; border-radius: 18px; display:grid; place-items:center; background:#0d6efd; color:white; font-weight:800; font-size:1.25rem; }
.dashboard-card, .file-card, .category-card { border-radius: 1rem; transition: transform .15s ease, box-shadow .15s ease; }
.dashboard-card:hover, .category-card:hover { transform: translateY(-3px); box-shadow: 0 .75rem 1.5rem rgba(23,32,51,.10)!important; }
.file-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.category-icon { font-size: 2.25rem; line-height: 1; }
.empty-state { border-radius: 1rem; }
.image-preview { width: 100%; height: 210px; object-fit: cover; background: #e9ecef; }
.min-w-0 { min-width: 0; }


body {
    background: #f8fafc;
    color: #1e293b;
}


main h1 {
    color: #1e293b;
    letter-spacing: -0.5px;
}

main .lead {
    color: #64748b !important;
}

/* =========================
   Dashboard
   ========================= */

.dashboard-page {
    background: #f4f7fb;
    min-height: 100vh;
}

.dashboard-header h1 {
    font-weight: 700;
    color: #1e293b;
}

.dashboard-header p {
    color: #64748b;
}


/* Dashboard cards */

.dashboard-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12) !important;
    }


    /* Colored top accent */

    .dashboard-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
    }


    /* Documents */

    .dashboard-card.documents::before {
        background: #3b82f6;
    }

    .dashboard-card.documents .dashboard-icon {
        background: #dbeafe;
        color: #2563eb;
    }


    /* Images */

    .dashboard-card.images::before {
        background: #8b5cf6;
    }

    .dashboard-card.images .dashboard-icon {
        background: #ede9fe;
        color: #7c3aed;
    }


    /* Passwords */

    .dashboard-card.passwords::before {
        background: #10b981;
    }

    .dashboard-card.passwords .dashboard-icon {
        background: #d1fae5;
        color: #059669;
    }


/* Icon */

.dashboard-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 28px;
    margin-bottom: 22px;
}


/* Numbers */

.dashboard-count {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}


/* Card title */

.dashboard-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #334155;
}


/* Description */

.dashboard-card-description {
    color: #64748b;
    font-size: 0.9rem;
}


/* Arrow */

.dashboard-arrow {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    transition: 0.2s ease;
}

.dashboard-card:hover .dashboard-arrow {
    transform: translateX(3px);
}

/*-----------------------------------------------------*/
/* =========================
   Navbar
   ========================= */

.vault-navbar {
    background: linear-gradient( 90deg, #f5f8ff 0%, #f7f5ff 50%, #f4fbf9 100% );
    border-bottom: 1px solid #e4e9f2;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}


/* Brand */

.vault-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1e293b;
}

    .vault-brand:hover {
        color: #2563eb;
    }


/* Vault icon */

.brand-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 17px;
}


/* User */

.user-info {
    color: #64748b;
}

.user-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ede9fe;
    color: #7c3aed;
    font-size: 13px;
}


/* Logout */

.vault-logout-btn {
    background: white;
    border: 1px solid #dbe2ea;
    color: #475569;
    padding: 7px 13px;
    border-radius: 9px;
    transition: all 0.2s ease;
}

    .vault-logout-btn:hover {
        background: #fee2e2;
        border-color: #fecaca;
        color: #dc2626;
    }
