/* RESET */
*{ margin:0; padding:0; box-sizing:border-box; font-family:'Inter',sans-serif; }
body{ background:#eef3f9; color:#1a1a1a; overflow-x:hidden; }

/* APP LAYOUT */
.app{ display:flex; min-height:100vh; }

/* SIDEBAR */
.sidebar{
    position:fixed;
    width:280px;
    height:100vh;
    background:linear-gradient(180deg,#001b38,#003b73);
    padding:20px;
    overflow-y:auto;
    color:white;
    transition:0.3s;
}
.sidebar .logo{ display:flex; align-items:center; gap:10px; margin-bottom:30px; }
.sidebar .logo img{ width:50px; height:50px; object-fit:contain; }
.sidebar .logo h2{ font-size:22px; font-weight:600; }
.sidebar .menu-title{ font-size:12px; color:#9db8d8; margin:20px 0 10px; text-transform:uppercase; }
.sidebar .menu-item{
    display:flex; align-items:center; gap:10px;
    padding:12px; border-radius:12px; cursor:pointer; transition:0.3s; margin-bottom:10px;
    color:white; text-decoration:none;
}
.sidebar .menu-item.active{ background:white; color:#003366; font-weight:600; }
.sidebar .menu-item:hover{ background:rgba(255,255,255,0.1); transform:translateX(4px); }
.sidebar .icon{ font-size:18px; }

/* MAIN CONTENT */
.main{ flex:1; margin-left:280px; padding:20px; transition:0.3s; }
.content{ margin-top:20px; }

/* TOPBAR */
.topbar{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:15px; margin-bottom:20px; }
.topbar .search input{ padding:12px 16px; border:none; border-radius:12px; box-shadow:0 4px 15px rgba(0,0,0,0.05); outline:none; width:300px; }
.topbar .profile{ display:flex; align-items:center; gap:12px; background:white; padding:8px 12px; border-radius:12px; box-shadow:0 4px 15px rgba(0,0,0,0.05); }
.topbar .profile img{ width:40px; height:40px; border-radius:50%; }

/* ACTION BAR */
.action-bar{ display:flex; gap:12px; overflow-x:auto; margin-bottom:20px; }
.action{ display:flex; flex-direction:column; align-items:center; padding:12px 16px; background:white; border-radius:16px; min-width:100px; box-shadow:0 5px 15px rgba(0,0,0,0.05); text-decoration:none; color:#1a1a1a; }
.action:hover{ transform:translateY(-3px); }
.action-icon{ width:50px; height:50px; border-radius:12px; background:linear-gradient(135deg,#003366,#0059b3); display:flex; align-items:center; justify-content:center; color:white; font-size:22px; margin-bottom:8px; }

/* HERO & ACCOUNTS */
.hero{ background:linear-gradient(135deg,#003366,#0059b3); border-radius:20px; padding:30px; color:white; margin-bottom:25px; position:relative; }
.hero h1{ font-size:28px; margin-bottom:8px; }
.hero p{ color:#dbe9ff; line-height:1.5; }
.accounts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:15px; margin-top:20px; }
.account-card{ background:rgba(255,255,255,0.12); border-radius:16px; padding:20px; color:#dbe9ff; transition:0.3s; }
.account-card:hover{ transform:translateY(-3px); }
.account-top{ display:flex; justify-content:space-between; margin-bottom:15px; font-size:14px; }
.account-card h2{ font-size:26px; margin-bottom:10px; }
.account-bottom{ display:flex; justify-content:space-between; font-size:14px; }
.positive{ color:#7dffb1; }

/* GRID */
.grid{ display:grid; grid-template-columns:2fr 1fr; gap:20px; margin-top:20px; }

/* TRANSACTIONS */
.transactions{ background:white; border-radius:16px; padding:20px; box-shadow:0 5px 20px rgba(0,0,0,0.05); }
.transactions h2{ color:#003366; margin-bottom:15px; }
.transaction{ display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid #eee; }
.transaction:last-child{ border-bottom:none; }
.transaction-left h4{ margin-bottom:4px; font-size:15px; }
.transaction-left span{ color:#777; font-size:13px; }
.credit{ color:#1db954; font-weight:600; }
.debit{ color:#dc3545; font-weight:600; }

/* RIGHT COLUMN */
.right-column{ display:flex; flex-direction:column; gap:15px; }

/* CREDIT */
.credit-box{ background:linear-gradient(135deg,#001f3f,#004d99); color:white; border-radius:16px; padding:20px; }
.credit-box h3{ margin-bottom:10px; font-size:16px; }
.credit-box h1{ font-size:32px; margin-bottom:6px; }
.credit-box p{ font-size:14px; }

/* LOAN */
.loan-box{ background:white; border-radius:16px; padding:20px; box-shadow:0 5px 20px rgba(0,0,0,0.05); }
.loan-item{ display:flex; flex-direction:column; gap:8px; background:#f5f9ff; border-radius:12px; padding:12px; }
.loan-item h4{ font-size:15px; color:#003366; }
.loan-item p{ font-size:13px; color:#555; line-height:1.4; }
.loan-item button{ padding:10px 14px; border:none; border-radius:8px; background:#003366; color:white; cursor:pointer; align-self:flex-start; }

/* RESPONSIVE */
@media(max-width:1024px){
    .main{ margin-left:0; padding:15px; }
    .sidebar{ transform:translateX(-100%); position:fixed; z-index:999; }
    .sidebar.active{ transform:translateX(0); }
    .menu-toggle{ display:block; font-size:24px; cursor:pointer; margin-bottom:10px; }
}

@media(max-width:768px){
    .topbar{ flex-direction:column; align-items:stretch; }
    .search input{ width:100%; }
    .grid{ grid-template-columns:1fr; }
    .accounts{ grid-template-columns:1fr; }
    .action-bar{ overflow-x:auto; }
}