/* ===============================
   DEMOBANK PRO ADMIN UI
================================= */

:root {
    --sidebar-width: 260px;
    --navbar-height: 60px;
    --bg: #f4f6f8;
    --sidebar-bg: #0f172a;
    --primary: #004080;
    --text: #1e293b;
}

/* RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* ===============================
   WRAPPER
================================= */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===============================
   SIDEBAR (PRO STYLE)
================================= */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
}

/* Sidebar links */
.admin-sidebar a {
    display: block;
    padding: 10px 12px;
    margin: 6px 0;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}

.admin-sidebar a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* ===============================
   MAIN AREA
================================= */
.admin-main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
}

/* ===============================
   NAVBAR (GLASS PRO STYLE)
================================= */
.admin-navbar {
    height: var(--navbar-height);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 900;
}

/* ===============================
   CONTENT AREA
================================= */
.admin-content {
    padding: 25px;
}

/* ===============================
   CARDS (MODERN BANK STYLE)
================================= */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

/* ===============================
   TABLES (CLEAN UI)
================================= */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background: #f1f5f9;
    text-align: left;
    padding: 12px;
    font-size: 13px;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* ===============================
   BUTTONS (MODERN)
================================= */
.btn, .btn-small {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.btn {
    background: var(--primary);
    color: white;
}

.btn-small {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-small.success {
    background: #16a34a;
    color: #fff;
}

.btn-small.warn {
    background: #f59e0b;
    color: #fff;
}

.btn-small.danger {
    background: #dc2626;
    color: #fff;
}

/* ===============================
   STAT CARDS (BANK DASHBOARD)
================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-card {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.stat-card h3 {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.stat-card p {
    font-size: 22px;
    margin: 6px 0 0;
    font-weight: bold;
    color: var(--primary);
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 900px) {
    .admin-sidebar {
        width: 220px;
    }

    .admin-main {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }
}


/* ===============================
   FINTECH UPGRADES
================================= */

/* SIDEBAR COLLAPSE */
.admin-sidebar {
    transition: all 0.3s ease;
}

.admin-sidebar.collapsed {
    width: 70px;
}

.admin-sidebar.collapsed a {
    font-size: 0;
    text-align: center;
}

.admin-sidebar.collapsed a::before {
    content: "•";
    font-size: 18px;
}

/* MAIN SHIFT ON COLLAPSE */
.admin-main {
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* NAVBAR */
.admin-navbar {
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* MENU BUTTON */
.menu-toggle {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* SEARCH BAR */
.nav-search {
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
}

/* RIGHT SIDE */
.nav-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* USER BADGE */
.admin-user {
    background: #004080;
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* ACTIVE SIDEBAR LINK */
.admin-sidebar a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* SMOOTH CARD HOVER */
.card {
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
}

/* MOBILE */
@media (max-width: 768px) {

    .admin-sidebar {
        position: fixed;
        left: -260px;
        z-index: 1000;
    }

    .admin-sidebar.show {
        left: 0;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }
}