
:root{--bg:#12121c;--card:#1c1c2a;--card2:#252535;--purple:#7c3aed;--purple2:#6d28d9;--green:#22c55e;--red:#ef4444;--text:#e5e7eb;--muted:#9ca3af;--border:#2d2d44}
*{margin:0;padding:0;box-sizing:border-box;font-family:Inter,sans-serif}
body{background:var(--bg);color:var(--text)}
.app{display:flex;min-height:100vh}
.sidebar{width:260px;background:#181825;border-right:1px solid var(--border);padding:20px 12px;position:sticky;top:0;height:100vh;overflow-y:auto}
.logo{font-size:26px;font-weight:700;display:flex;align-items:center;gap:10px;margin-bottom:24px}
.logo-icon{background:var(--purple);width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:800}
.sidebar nav{display:flex;flex-direction:column;gap:6px}
.sidebar nav a{padding:12px 14px;border-radius:12px;text-decoration:none;color:var(--muted);display:flex;gap:10px;align-items:center;transition:.2s}
.sidebar nav a.active,.sidebar nav a:hover{background:var(--purple);color:white}
.sidebar-footer{margin-top:30px;padding:12px;background:var(--card);border-radius:12px}
.badge{background:#22c55e22;color:var(--green);padding:4px 8px;border-radius:6px;font-size:12px}
.topbar{display:flex;justify-content:space-between;align-items:center;background:var(--purple2);padding:14px 24px;border-radius:0 0 16px 16px;margin:-1px -1px 20px -1px;position:sticky;top:0;z-index:10}
.search{background:#1c1c2a;border:1px solid var(--border);padding:10px 14px;border-radius:12px;width:360px;color:white;outline:none}
.main{flex:1;padding:0 20px 20px 20px}
.content{max-width:1400px;margin:auto}
.card{background:var(--card);border:1px solid var(--border);border-radius:20px;padding:20px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}
.stat{padding:20px;border-radius:16px;background:var(--card2);border:1px solid var(--border)}
.stat h3{font-size:13px;color:var(--muted)} .stat p{font-size:28px;font-weight:700;margin-top:8px}
.stat.green{border-left:4px solid var(--green)} .stat.red{border-left:4px solid var(--red)} .stat.purple{border-left:4px solid var(--purple)}
.grid2{display:grid;grid-template-columns:350px 1fr;gap:20px}
.table{width:100%;border-collapse:collapse;margin-top:12px}
.table th{color:var(--muted);font-size:13px;text-align:left;padding:12px;border-bottom:1px solid var(--border)}
.table td{padding:14px 12px;border-bottom:1px solid var(--border);font-size:14px}
.badge-due{padding:6px 10px;border-radius:8px;font-size:12px;font-weight:600}
.due-red{background:#ef444422;color:#ef4444} .due-green{background:#22c55e22;color:#22c55e}
.btn{background:var(--purple);color:white;border:none;padding:12px 18px;border-radius:12px;font-weight:600;cursor:pointer;width:100%}
.btn-green{background:var(--green)}
.input{background:var(--card2);border:1px solid var(--border);padding:12px;border-radius:12px;color:white;width:100%;margin:8px 0 14px 0}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.product-card{background:var(--card2);border:1px solid var(--border);border-radius:16px;padding:14px;text-align:center;cursor:pointer}
.product-card:hover{border-color:var(--purple)}
.bill-panel{background:var(--card);border:1px solid var(--border);border-radius:20px;padding:20px;position:sticky;top:90px}
@media(max-width:900px){.app{flex-direction:column}.sidebar{width:100%;height:auto;position:relative}.grid2,.stats{grid-template-columns:1fr}.topbar{flex-direction:column;gap:10px}.search{width:100%}}
