@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{--purple:#6327ef;--purple2:#7845fa;--navy:#101a36;--ink:#172345;--muted:#77819b;--line:#e7eaf4;--bg:#f4f5ff;--white:#fff}*{box-sizing:border-box}body{margin:0;background:linear-gradient(135deg,#f4f2ff,#f7f8ff 55%,#eef3ff);font-family:Inter,Arial,sans-serif;color:var(--ink);font-size:13px}.app{display:flex;min-height:100vh}.sidebar{width:220px;flex-shrink:0;background:linear-gradient(180deg,#111a36,#0c1530);color:#e7ebff;padding:24px 15px;display:flex;flex-direction:column;min-height:100vh}.brand{display:flex;align-items:center;gap:12px;color:white;text-decoration:none;padding:0 9px 34px}.brand-icon{background:linear-gradient(135deg,#8d4bff,#5521df);width:35px;height:35px;border-radius:10px;display:grid;place-items:center;font-size:20px;box-shadow:0 5px 18px #4b25c866}.brand b{display:block;font-size:15px;letter-spacing:.1px}.brand small{display:block;color:#99a7d4;font-size:10px;margin-top:3px}.sidebar nav{display:grid;gap:7px;margin-bottom:26px}.sidebar nav a{display:flex;align-items:center;gap:12px;text-decoration:none;color:#c9d2ef;padding:12px 11px;border-radius:9px;font-size:12px;transition:.2s}.sidebar nav a:hover,.sidebar nav a.active{color:white;background:linear-gradient(100deg,#6845f6,#365df1);box-shadow:0 5px 14px #3020b866}.sidebar nav a:first-letter{font-size:16px}.nav-label{color:#7180ac;font-size:10px;letter-spacing:1.4px;margin:2px 11px 10px}.sidebar-foot{margin-top:auto;color:#6f7da6;font-size:10px;padding:15px 8px 0;line-height:1.5}.main{min-width:0;flex:1;padding:0 27px 30px}.topbar{height:66px;display:flex;align-items:center;justify-content:space-between;gap:20px}.search{height:37px;border:1px solid #e5e8f5;background:#fff;border-radius:11px;display:flex;align-items:center;gap:12px;padding:0 15px;color:#8c95ad;width:min(52%,520px);box-shadow:0 3px 12px #303b6410}.search:first-letter{font-size:20px}.search span{font-size:11px}.user{display:flex;align-items:center;gap:10px}.bell{font-size:20px;color:#1d2948;margin-right:8px}.avatar{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:linear-gradient(135deg,#7241f4,#3921d9);color:#fff;font-size:10px;font-weight:700}.welcome{font-size:11px;font-weight:600}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:12px 0 22px}.page-heading h1{font-size:25px;letter-spacing:-.8px;margin:0 0 7px;font-weight:800}.page-heading p{margin:0;color:var(--muted);font-size:12px}.date,.muted{color:var(--muted);font-size:11px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.stat,.panel{background:rgba(255,255,255,.94);border:1px solid #e9ebf5;border-radius:13px;box-shadow:0 5px 17px #25336508}.stat{padding:16px 17px;min-width:0}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#5c6683;font-size:11px;margin-bottom:7px;gap:6px}.stat strong{display:block;font-size:19px;letter-spacing:-.5px;white-space:nowrap}.stat-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;font-size:16px;font-weight:700}.blue{background:#e8efff;color:#2865ed}.green{background:#e4f9ed;color:#17a86c}.red{background:#ffe9ed;color:#ef4964}.purple{background:#efe8ff;color:#7040ee}.stat em{display:inline-block;font-size:10px;font-style:normal;font-weight:700;margin-top:8px;padding:4px 6px;border-radius:6px}.positive{background:#e6f9ee;color:#16965c}.negative{background:#fff0f1;color:#e8485c}.dashboard-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:14px;margin-bottom:20px}.panel{padding:17px;min-width:0}.panel h2,.panel-title h2,.import-card h2{font-size:14px;margin:0;font-weight:750;letter-spacing:-.2px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.panel-title select,select,input{font:inherit;color:var(--ink);border:1px solid #e4e7f1;background:#fff;border-radius:8px;padding:9px 10px;min-width:0}select{font-size:10px}.bar-chart{height:175px;display:flex;align-items:flex-end;justify-content:space-around;gap:9px;padding:12px 7px 0;background:repeating-linear-gradient(to bottom,transparent 0,transparent 39px,#edf0f8 40px)}.bar-group{height:100%;flex:1;display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-direction:column;position:relative}.bar-group i,.bar-group b{display:block;width:42%;max-width:14px;border-radius:4px 4px 0 0;background:linear-gradient(#7344f5,#5526e8);margin-top:auto}.bar-group b{background:linear-gradient(#fa70b0,#e94391)}.bar-group small{font-size:9px;color:#8790a9;margin-top:8px}.legend{display:flex;justify-content:center;gap:18px;margin-top:12px;color:#69748e;font-size:10px}.dot{display:inline-block;width:8px;height:8px;border-radius:3px;margin-right:6px;background:#7141f5}.income{background:#7042f5}.expense{background:#f05ba4}.donut-wrap{display:flex;align-items:center;justify-content:space-around;gap:16px;min-height:210px}.donut{width:142px;height:142px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#377cf6 0 28%,#7446ed 28% 46%,#ef5599 46% 58%,#ff963d 58% 73%,#f5c343 73% 83%,#20b99b 83% 100%);position:relative}.donut:before{content:"";position:absolute;width:91px;height:91px;border-radius:50%;background:white}.donut>div{position:relative;text-align:center;display:grid;gap:4px}.donut b{font-size:10px;color:#64708c}.donut strong{font-size:14px}.legend-list{list-style:none;margin:0;padding:0;display:grid;gap:12px;min-width:110px;flex:1;font-size:10px;color:#6d7791}.legend-list li{display:flex;align-items:center;white-space:nowrap}.legend-list li b{margin-left:auto;color:#2d3857;font-size:10px}.c1{background:#397af5}.c2{background:#7650ef}.c3{background:#ee559a}.c4{background:#ff963d}.c5{background:#f5c343}.c6{background:#22b99b}.section-heading{font-size:15px;margin:0 0 13px}.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border:0;border-radius:10px;background:linear-gradient(110deg,#6b2cf2,#4c20e7);color:white;padding:12px 17px;font:600 12px Inter,Arial,sans-serif;cursor:pointer;box-shadow:0 5px 12px #5929e92b;transition:transform .15s,box-shadow .15s}.primary-button:hover{transform:translateY(-1px);box-shadow:0 8px 18px #5929e940}.tracker-tools{display:grid;grid-template-columns:1.5fr 1fr;gap:14px;margin-bottom:17px}.import-card{display:grid;grid-template-columns:45px 1fr;gap:13px;align-items:start;padding:19px;border-radius:13px;color:#fff;background:linear-gradient(120deg,#7650f8,#4c2bea);box-shadow:0 7px 20px #5d37ed30}.import-card h2{font-size:15px;margin:0 0 7px}.import-card p{font-size:11px;line-height:1.5;color:#e5dcff;margin:0 0 12px}.upload-icon{font-size:28px}.dropzone{min-height:66px;border:1px dashed #d9d0ff;border-radius:9px;background:#ffffffde;color:#5a2de9;display:flex;align-items:center;justify-content:center;gap:12px;text-align:center;padding:10px;font-size:19px;cursor:pointer}.dropzone span{font-size:10px}.dropzone small{display:block;font-size:9px;color:#8189a2;margin-top:4px}.dropzone input{display:none}.file-status{margin-top:8px!important}.filters h2{margin-bottom:12px}.filter-row{display:flex;gap:10px;margin-bottom:10px}.filter-row label{display:grid;gap:5px;flex:1;min-width:0;color:#68738f;font-size:10px}.filter-row input,.filter-row select{width:100%;font-size:10px}.filters>.primary-button{width:100%;padding:10px}.table-panel{margin-bottom:16px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left;font-size:10px}thead{background:#f2f4fb}th{font-weight:700;color:#46516f;padding:12px 10px}td{padding:13px 10px;border-bottom:1px solid #edf0f7;color:#46516f}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafaff}.tag{display:inline-block;padding:4px 7px;border-radius:5px;font-size:9px}.teal{background:#d8f6f2;color:#138b85}.pink{background:#ffe4eb;color:#e4496a}.green-tag{background:#ddf8e8;color:#19975d}.orange{background:#fff0dc;color:#d77b19}.purple-tag{background:#f2e4ff;color:#9c3bc4}.blue-tag{background:#e2edff;color:#3b69d9}.amount{font-weight:700}.down{color:#e8495e}.up{color:#159d61}.month-control{display:flex;align-items:center;gap:8px}.month-control button:not(.primary-button){border:1px solid var(--line);background:white;border-radius:8px;padding:8px 11px;color:#53607f;cursor:pointer}.month-control strong{font-size:11px;padding:0 5px}.budget-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:14px}.budget-grid>.panel{padding:20px}.budget-grid h2{margin-bottom:20px}.budget-item{position:relative;margin-bottom:20px;padding-right:34px}.budget-item>div:first-child{display:flex;justify-content:space-between;gap:10px;margin-bottom:9px}.budget-item span{font-size:11px;font-weight:650}.budget-item small{font-size:10px;color:#6d7893}.progress{height:8px;background:#edf0f7;border-radius:8px;overflow:hidden}.progress i{display:block;height:100%;border-radius:8px}.budget-item .percent{position:absolute;right:0;bottom:0;font-weight:700;color:#65708a}.right-stack{display:grid;gap:14px;align-content:start}.compact{min-height:155px}.compact .donut{width:120px;height:120px}.compact .donut:before{width:76px;height:76px}.compact .donut strong{font-size:12px}.compact .legend-list{gap:9px}.alerts h2{margin-bottom:12px}.alerts p{margin:0;padding:10px 0;border-top:1px solid #edf0f7;display:grid;gap:5px;font-size:11px}.alerts p b{font-size:11px}.alerts p small{color:#7c86a0;font-size:10px}.line-chart{height:190px;position:relative;background:repeating-linear-gradient(to bottom,transparent 0,transparent 44px,#edf0f8 45px)}.line-chart svg{width:100%;height:165px;overflow:visible}.axis-labels{display:flex;justify-content:space-between;color:#7d87a0;font-size:9px}.investment-grid{grid-template-columns:1.25fr 1fr}dialog{border:0;border-radius:15px;box-shadow:0 20px 80px #101a3650;width:min(480px,calc(100% - 30px));padding:23px;color:var(--ink)}dialog::backdrop{background:#0b143c70;backdrop-filter:blur(3px)}dialog form>label{display:grid;gap:7px;margin:14px 0;color:#64708c;font-size:11px}dialog input,dialog select{width:100%;padding:11px;font-size:12px}.close{border:0;background:#f1efff;border-radius:7px;width:30px;height:30px;font-size:20px;color:#6841e8;cursor:pointer}dialog .primary-button{width:100%;margin-top:8px}.file-status{font-size:10px}.empty{color:#78829b;padding:20px;text-align:center}@media(max-width:1050px){.sidebar{width:190px}.main{padding:0 18px 25px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.budget-grid,.tracker-tools{grid-template-columns:1fr}.donut-wrap{justify-content:flex-start;gap:35px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.app{display:block}.sidebar{width:100%;min-height:0;padding:13px 12px}.brand{padding:0 5px 12px}.sidebar nav{display:flex;overflow-x:auto;gap:5px;margin-bottom:10px}.sidebar nav a{white-space:nowrap;padding:10px 9px}.sidebar nav a span{display:inline}.nav-label,.sidebar-foot,.sidebar nav:nth-of-type(2){display:none}.main{padding:0 12px 22px}.topbar{height:55px}.search{width:60%;padding:0 10px}.search span{font-size:9px}.welcome{display:none}.page-heading{align-items:flex-start;flex-wrap:wrap;margin:15px 0}.page-heading h1{font-size:21px}.stats{gap:9px}.stat{padding:13px}.stat strong{font-size:16px}.stat-top{font-size:10px}.stat-icon{width:27px;height:27px}.date{display:none}.panel{padding:14px}.donut-wrap{gap:15px;justify-content:space-between}.donut{width:120px;height:120px}.donut:before{width:76px;height:76px}.donut strong{font-size:12px}.legend-list{min-width:100px}.quick-actions{gap:8px}.quick-actions .primary-button{padding:12px 8px;font-size:10px}.month-control{flex-wrap:wrap}.month-control .primary-button{padding:10px}.filter-row{gap:7px}.import-card{padding:14px;grid-template-columns:30px 1fr}.table-panel{padding:12px}.budget-grid>.panel{padding:15px}}
/* Entry management controls */
.entry-actions{display:flex;gap:6px;align-items:center;margin-top:8px}
.entry-actions button,.row-actions button{border:1px solid #e1e5f2;background:#f7f8ff;color:#5631d9;border-radius:6px;padding:5px 8px;font:600 10px Inter,Arial,sans-serif;cursor:pointer}
.entry-actions .entry-delete,.row-actions .entry-delete{background:#fff0f2;color:#d83d57;border-color:#ffd8df}
.row-actions{display:flex;gap:5px}
.budget-item{padding-bottom:2px}
.entry-actions button:hover,.row-actions button:hover{filter:brightness(.97);transform:translateY(-1px)}
@media(max-width:650px){.entry-actions button,.row-actions button{padding:6px;font-size:10px}}
