/* Daybook's colorful visual theme. Layout and responsive rules live in styles.css. */
:root{--green:#6450d8;--ink:#292641;--muted:#77748e;--line:#ece9f5;--bg:#f6f5fb}
body{background:radial-gradient(ellipse at 95% 0%,#e9e4ff 0,transparent 40%),var(--bg)}
.sidebar{background:#25213e;border:0;color:#fff;padding-top:31px}
.brand{color:#fff}.brand-icon{color:#b7a7ff}.brand-dot{color:#f8bd82}
.workspace{padding:13px 10px;background:#ffffff08;border:1px solid #ffffff0d;border-radius:12px;margin:30px 0}
.workspace small{color:#a5a0bf}.avatar,.profile{background:linear-gradient(135deg,#e3d8ff,#ffcdb4);color:#594585}
.nav-label{color:#8f88aa}.nav-item{color:#b8b2ce;border-radius:10px;padding:14px 13px;margin-bottom:9px}
.nav-item:hover{background:#ffffff0c;color:white}.nav-item.active{background:linear-gradient(100deg,#7860e8,#6250ce);color:#fff;box-shadow:0 5px 20px #100b3533}
.nav-item.active span{color:#e0d6ff}.sidebar-note{background:linear-gradient(145deg,#3a3056,#43315a);border:1px solid #ffffff0e;border-radius:16px;padding:21px 17px}
.sidebar-note>span{color:#f8c98e}.sidebar-note h3{color:#f8edff;font-size:20px}.sidebar-note p{color:#bdb0d0}.note-art{color:#a383d02b}
.local-status{color:#c1b9d5}.local-status i{background:#81ddbd;box-shadow:0 0 9px #81ddbd44}.local-status small{color:#8f86a9}
header{background:#ffffff90;border-color:#eae5f2;backdrop-filter:blur(12px);color:#88819c}.breadcrumb b{color:#615477}.breadcrumb span{color:#c7bfd9}
.profile{box-shadow:0 0 0 4px white}.page{padding-top:32px}
.page-heading{position:relative;padding:27px 30px;border:1px solid #e7defa;border-radius:20px;background:radial-gradient(circle at 80% 0%,#efd8f280,transparent 40%),linear-gradient(115deg,#eee7ff,#f4edff 55%,#ffede2);overflow:hidden;isolation:isolate;margin-bottom:27px}
.page-heading:after{content:'';position:absolute;right:72px;top:-85px;width:270px;height:270px;border:36px solid #ac91e80d;border-radius:50%;z-index:-1;pointer-events:none}
.eyebrow{color:#8b66bc;letter-spacing:1.8px}h1{font-size:32px;color:#362650;font-weight:800}h1 span{color:#e9a26c}.page-heading p{color:#8b779e;line-height:1.7}
.primary{background:linear-gradient(110deg,#8062e7,#6550d6);border-color:transparent;border-radius:10px;box-shadow:0 5px 14px #7860d82b;padding:13px 19px;font-weight:600}
.primary:hover{transform:translateY(-2px);box-shadow:0 8px 20px #7860d83d}.primary:active{transform:translateY(0)}
.period-control{background:white;border:1px solid var(--line);border-radius:10px;padding:5px;gap:10px}.period-control button{border:0;background:#f4f0fd;color:#7962b0;border-radius:6px}.period-control strong{color:#5e526f}
.period-caption{color:#9b91ac}.period-bar>.text-button{background:#fff;border:1px solid #e6def4;padding:10px 13px;border-radius:9px;color:#7c66ac}
.stats{gap:20px}.stat{position:relative;overflow:hidden;border-radius:17px;padding:23px 25px;box-shadow:0 6px 22px #34295506;min-height:174px}
.stat:after{content:'';position:absolute;width:145px;height:145px;right:-65px;bottom:-70px;border:24px solid #ffffff18;border-radius:50%;pointer-events:none}
.stat:nth-child(1){background:linear-gradient(120deg,#7960df,#a178e7);border-color:transparent;color:#fff;box-shadow:0 8px 22px #8461dc26}
.stat:nth-child(1) .stat-top,.stat:nth-child(1) small{color:#eee4ff}.stat:nth-child(1) .stat-icon{background:#ffffff24;color:#fff}
.stat:nth-child(2){background:linear-gradient(120deg,#fff0df,#ffdfce);border-color:#f6dcca;color:#985937}.stat:nth-child(2) .stat-top{color:#a5684d}.stat:nth-child(2) small{color:#ac7c65}.stat:nth-child(2) .stat-icon{background:#ffffff90;color:#cd8259}
.stat:nth-child(3){background:linear-gradient(120deg,#e0f3ee,#d5efea);border-color:#cce7de;color:#2a7768}.stat:nth-child(3) .stat-top{color:#4d8c7f}.stat:nth-child(3) small{color:#568c7d}.stat:nth-child(3) .stat-icon{background:#ffffff80;color:#408b77}
.stat>strong{font-size:34px;font-weight:800;margin:12px 0}.stat-top{font-size:12px;font-weight:500}.stat-icon{width:34px;height:34px;border-radius:11px;font-size:20px}.stat small{font-size:11px}.budget-foot button{color:#286f60;font-weight:600}.progress{background:#b7d9cb;height:5px;margin-top:14px}.progress>div{border-radius:8px}
.panel{border-radius:17px;box-shadow:0 5px 24px #30244c04;overflow:hidden}.panel-heading{padding:25px 25px 0}h2{font-size:15px;font-weight:800;color:#413653}.panel-heading p{font-size:11px;color:#9a90a7}.legend{color:#8f7ba7;background:#f6f1fd;border:1px solid #ece3f8;padding:7px 9px;border-radius:6px}.legend i{background:#9b75e6}
.trend .panel-heading h2:before,.categories .panel-heading h2:before{content:'';display:inline-block;width:4px;height:14px;border-radius:4px;background:#aa89ed;vertical-align:-2px;margin-right:8px}.categories .panel-heading h2:before{background:#edae84}.categories>.panel-heading>.subtle{color:#b48acc;background:#f5edfc;border-radius:9px;padding:7px 11px}
.donut{filter:drop-shadow(0 5px 7px #72518b0c)}.donut-label{color:#65537e}.donut-label small{color:#a391b1}.category-item{color:#80718f;font-size:11px}.category-item b{color:#6e5a86}.category-item i{width:8px;height:8px;border-radius:3px}.category-list{min-width:0}
.count{color:#8b63c1;border-color:#e9dff7;background:#f0e8fc;font-size:10px;border-radius:6px}.transactions .panel-heading h2{font-size:16px}.search{background:#faf8fe;border-color:#eae3f4;border-radius:9px}.search span{color:#aa91c6}.search input{color:#5f4d79}.search input::placeholder{color:#b0a2bd}.search:focus-within{outline:2px solid #d8c7f4;outline-offset:1px}.table-controls select{border-color:#eae3f4;border-radius:9px;background:#fcfaff;color:#8b789e}
th{background:#f8f5fc;color:#a08bb6;border-color:#eee8f6}td{border-color:#f0ebf7;color:#93849f}.expense-name{color:#5c4770}.expense-name small{color:#ac9db8}.expense-icon{border-radius:10px;width:35px;height:35px;font-size:17px}.pill{border-radius:6px;font-size:10px;font-weight:500;padding:5px 9px}td.amount{color:#64517c;font-size:12px}.row-actions button{color:#ac93c6;border-radius:5px}.row-actions button:hover{background:#f0e7fc;color:#7954a5}tbody tr:hover{background:#fcfaff}
.empty{background:radial-gradient(ellipse at 50% 60%,#f5effc,transparent 65%);padding:30px 15px}.empty>div{color:#ad85da;background:#f0e5ff;display:grid;place-items:center;width:48px;height:48px;margin:auto;border-radius:15px;transform:rotate(-6deg);box-shadow:5px 5px 0 #fbe9df}.empty h3{color:#77608e;margin-top:18px}.empty p{color:#a28eaf}.empty button{color:#9161bd;background:#f2e8fc;border:1px solid #e9d8f9;padding:10px 15px;border-radius:8px}.table-footer{border-top:1px solid #f2edf8;color:#b1a2bd}footer{color:#ada0bc}footer span{color:#9881b1}
dialog{border-radius:20px;border-color:#e9dff7;background:linear-gradient(140deg,#faf7ff,white 50%);box-shadow:0 25px 100px #30204c40}dialog::backdrop{background:#261b405e;backdrop-filter:blur(5px)}.dialog-heading h2{color:#57406f}.close{color:#a28cb8}form>label,.form-row>label{color:#82718e}form label input,form label select,form textarea{border-color:#e4d9f1;border-radius:9px;color:#604b78;outline-color:#b096df;background:#ffffffc9}.secondary{border-color:#e6dcf0;border-radius:9px;color:#9680a8}.subtle{color:#a997b7}.toast{background:linear-gradient(110deg,#8062de,#6450ba);box-shadow:0 6px 25px #6550ba33;border:1px solid #a28be8;border-radius:11px}
button:focus-visible,a:focus-visible{outline-color:#c2a5f3}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #b69adf;outline-offset:2px}
@media(min-width:1450px){.page{padding-top:38px}}
@media(max-width:1150px){.page-heading{padding:24px}.page-heading h1{font-size:27px}.stat{padding:20px}.stat>strong{font-size:30px}.legend{font-size:8px;padding:6px}.panel-heading{gap:5px}}
@media(max-width:760px){.sidebar{padding:16px 20px}.brand{color:#fff}.nav-item{padding:10px 6px;margin:0;border-radius:8px}.page{padding-top:20px}.page-heading{padding:21px 18px;flex-wrap:wrap;gap:16px;border-radius:16px}.page-heading h1{font-size:25px}.page-heading p{max-width:100%;font-size:11px}.page-heading>.primary{margin-top:0;padding:11px 15px;font-size:11px}.page-heading:after{right:-100px;top:-30px}.stats{gap:12px}.stat{padding:16px;min-height:156px;border-radius:14px}.stat>strong{font-size:28px}.stat small{font-size:10px}.stat:last-child{min-height:144px}.stat-top{font-size:11px}.panel-heading{padding:20px 18px 0}.panel-heading p{font-size:10px}.category-content{gap:25px}.period-control{gap:4px}.period-bar{gap:8px}.period-bar>.text-button{font-size:10px;padding:10px}.header-right{color:#9c8caf}.breadcrumb b{color:#7c6691}.chart{padding-left:12px;padding-right:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Dark surfaces with readable text, retaining the colorful accents. */
:root{color-scheme:dark;--green:#b9a3ff;--ink:#f1edf9;--muted:#bcb3cd;--line:#3a324c;--bg:#141220}
body{background:radial-gradient(ellipse at 95% 0%,#30204466,transparent 45%),var(--bg);color:var(--ink)}
.sidebar{background:#191625;border-right:1px solid #342d43}.workspace{background:#252032;border-color:#3a314b}.workspace small{color:#bdb3d0}
.nav-label{color:#b7aaca}.nav-item{color:#c9bfd9}.nav-item:hover{background:#332a45}.nav-item.active{background:linear-gradient(100deg,#7256ce,#5842a1);color:#fff}
.sidebar-note{background:linear-gradient(145deg,#30253f,#382643);border-color:#51405f}.sidebar-note p{color:#d0c1dd}.local-status{color:#cbbfdc}.local-status small{color:#b0a2c1}
header{background:#1b1727df;border-color:#393045;color:#c4b6d5}.breadcrumb b,.header-right{color:#cbbdde}.breadcrumb span{color:#9d8bb3}.profile{box-shadow:0 0 0 4px #2c243c}
.page-heading{background:radial-gradient(circle at 80% 0%,#62366055,transparent 50%),linear-gradient(115deg,#302342,#2b223c 55%,#402a36);border-color:#544065}
.eyebrow{color:#ccb1f6}h1{color:#faf3ff}h1 span{color:#ffc292}.page-heading p{color:#d1bfdf}.page-heading:after{border-color:#c5a0ff0b}
.primary{background:linear-gradient(110deg,#8160df,#6d4fc6);color:#fff}.text-button{color:#cbb0ff}
.period-control{background:#252031;border-color:#473a59}.period-control button{background:#3a2c50;color:#e2cfff}.period-control strong{color:#e5d9f1}.period-caption{color:#b9a8ca}.period-bar>.text-button{background:#2b223a;border-color:#4a3a60;color:#dec9fb}
.stat:nth-child(1){background:linear-gradient(120deg,#50358e,#7150ac);border-color:#8763bd;box-shadow:0 8px 22px #0002}
.stat:nth-child(2){background:linear-gradient(120deg,#422c27,#50312f);border-color:#70483f;color:#ffcfb3}.stat:nth-child(2) .stat-top,.stat:nth-child(2) small{color:#f1c1a8}.stat:nth-child(2) .stat-icon{background:#784b3e;color:#ffdab6}
.stat:nth-child(3){background:linear-gradient(120deg,#203c38,#24463e);border-color:#3b6b5d;color:#b7f4db}.stat:nth-child(3) .stat-top,.stat:nth-child(3) small{color:#b0dfce}.stat:nth-child(3) .stat-icon{background:#386153;color:#c3fce1}.budget-foot button{color:#c4ffe8}.progress{background:#172e28}
.panel{background:#211c2e;border-color:#3c324d;box-shadow:0 6px 24px #00000012}h2,.transactions .panel-heading h2{color:#eee3fb}.panel-heading p{color:#bcaaca}.legend{background:#30243f;border-color:#503764;color:#d1b6ea}.legend i{background:#c099ff}.categories>.panel-heading>.subtle{color:#dfb4fa;background:#3c2b4d}
.donut:before{background:#211c2e}.donut-label{color:#eadbff}.donut-label small{color:#bfa9d2}.category-item{color:#cdbbdd}.category-item b{color:#e3d2f5}
.count{color:#e0c5ff;border-color:#62447e;background:#402c56}.search{background:#191522;border-color:#4a3a5d}.search input{color:#f1e3fc}.search input::placeholder{color:#b9a5ca}.search span{color:#c5a4e3}.search:focus-within{outline-color:#aa7be0}.table-controls select{background:#2a2038;border-color:#513c67;color:#e1cdec}
th{background:#2b2239;color:#cfb7e6;border-color:#443452}td{border-color:#3a2d49;color:#cbb7db}.expense-name{color:#f0e0fc}.expense-name small{color:#bda7ce}td.amount{color:#e9d4ff}.row-actions button{color:#cdb0e6}.row-actions button:hover{background:#49325e;color:#fff}tbody tr:hover{background:#2d233b}
.empty{background:radial-gradient(ellipse at 50% 60%,#37254d88,transparent 70%)}.empty>div{color:#d9b5ff;background:#402b58;box-shadow:5px 5px 0 #54362f}.empty h3{color:#e4c9fa}.empty p{color:#c3accf}.empty button{color:#e0bdff;background:#3b2852;border-color:#674280}.table-footer{border-color:#3a2d49;color:#baa5ca}footer,footer span{color:#baa6cc}
dialog{background:linear-gradient(140deg,#30223f,#211b2d 65%);border-color:#62467c;color:#f1e5fa;box-shadow:0 25px 100px #0008}dialog::backdrop{background:#090610b3}.dialog-heading h2{color:#f0dcff}.close{color:#d8bdea}form>label,.form-row>label{color:#ddc7ee}form label input,form label select,form textarea{background:#1b1525;color:#f5e8ff;border-color:#634b77}form input::placeholder,form textarea::placeholder{color:#b69fc8}.secondary{background:#33243f;border-color:#6b4c7d;color:#ebd2fa}.subtle{color:#c0a7d2}
.chart svg line{stroke:#443552}.chart svg text{fill:#c3afd3}.chart svg polyline{stroke:#c29afa}.chart svg circle{fill:#c29afa;stroke:#211c2e}
::selection{background:#805ab6;color:#fff}
.install-app{position:fixed;right:22px;bottom:22px;z-index:5;background:#7652c9;color:white;border:1px solid #b396e9;border-radius:12px;padding:14px 20px;min-height:48px;box-shadow:0 6px 25px #0005;font-weight:600}
.install-app[hidden]{display:none}
@media(max-width:760px){input,select,textarea,form label input,form label select,form textarea{font-size:16px}.nav-item{min-height:44px}.period-control button{min-width:36px;min-height:36px}.row-actions button{min-width:36px;min-height:40px}.install-app{bottom:max(16px,env(safe-area-inset-bottom));right:16px}dialog{max-height:90dvh;overflow-y:auto}footer{padding-bottom:76px}}
