/* FadiTec Projects v0.7.2 | Scrollable logo and navigation + day/night branding. */
:root { --nav-width:238px; }
/* The logo scrolls with the navigation; the account stays visible below. */
.sidebar { width:var(--nav-width);height:100dvh;max-height:100dvh;overflow:hidden;min-height:0;padding:0;gap:0;display:flex;flex-direction:column;background:#fff;color:#293e47;border-inline-start:1px solid #e5ebee;box-shadow:inset 1px 0 0 #f1f4f6;}
.side-brand{margin-inline:-11px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;flex-direction:row;position:relative;padding:12px 15px 14px;gap:0;border-bottom:1px solid #edf0f3;min-height:140px;}
.side-brand-mark{height:112px;width:100%;max-width:210px;min-width:0;padding:3px;background:transparent;border:0;border-radius:0;overflow:hidden;display:grid;place-items:center;transition:opacity .18s ease;}
.side-brand-mark .brand-image{height:106px;width:100%;max-width:100%;object-fit:contain;object-position:center;display:block;}
.side-brand-mark .brand-image-dark{display:none;}
.side-scroll-wrap{position:relative;flex:1 1 auto;min-height:0;overflow:hidden;isolation:isolate;}
.side-scroll{height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ccd7dc transparent;padding:0 11px 15px;scroll-behavior:smooth;}
.side-scroll::-webkit-scrollbar{width:5px;}
.side-scroll::-webkit-scrollbar-track{background:transparent;}
.side-scroll::-webkit-scrollbar-thumb{background:#cbd7dc;border-radius:99px;}
.side-scroll::-webkit-scrollbar-thumb:hover{background:#9cabb2;}
.side-scroll:focus-visible{outline:2px solid #d52b36;outline-offset:-3px;border-radius:8px;}
.side-scroll-wrap:before,.side-scroll-wrap:after{content:"";position:absolute;inset-inline:0;height:16px;z-index:2;pointer-events:none;opacity:0;transition:opacity .18s;}
.side-scroll-wrap:before{top:0;background:linear-gradient(to bottom,rgba(36,55,66,.12),transparent);}
.side-scroll-wrap:after{bottom:0;background:linear-gradient(to top,rgba(36,55,66,.10),transparent);}
.side-scroll-wrap.can-scroll-up:before,.side-scroll-wrap.can-scroll-down:after{opacity:1;}
.side-nav-group{padding:3px 0 12px;}
.side-nav-group+.side-nav-group{border-top:1px solid #eff2f4;padding-top:10px;}
.nav-kicker{margin:8px 12px 7px;color:#8a9ca4;font-size:10.5px;letter-spacing:0;font-weight:750;}
.side-nav{gap:3px;}
.side-nav .nav-link{min-height:44px;padding:10px 12px;border-radius:10px;gap:12px;color:#526771;font-size:12.5px;font-weight:650;border:1px solid transparent;line-height:1.5;}
.side-nav .nav-link>i:first-child,.side-nav .nav-link>.svg-inline--fa:first-child{font-size:15px;width:18px;color:#8c9ca4;}
.side-nav .nav-link:hover{background:#f1f5f6;color:#223d48;}
.side-nav .nav-link:hover>i:first-child{color:#476772;}
.side-nav .nav-link.active{background:#d31c28;color:#fff;border-color:#d31c28;box-shadow:0 3px 12px rgba(211,28,40,.12);}
.side-nav .nav-link.active>i:first-child,.side-nav .nav-link.active>.svg-inline--fa:first-child{color:#fff;}
.side-nav-label{flex:1;min-width:0;}
.side-nav-counter{background:#ffe7e9;color:#c51a29;padding:1px 7px;font-size:10px;line-height:18px;border-radius:99px;font-weight:800;}
.side-nav .nav-link.active .side-nav-counter{background:#ffffff30;color:#fff;}
.nav-active-indicator{width:5px;height:5px;margin-inline-start:auto;margin-right:0;}
.side-bottom{margin-top:0;flex:0 0 auto;background:inherit;border-top:1px solid #edf0f3;padding:11px 13px 14px;}
.side-account{border:0;padding:0;gap:10px;min-height:44px;}
.side-avatar{background:#eaf1f4;color:#3b626e;}
.account-copy strong{font-size:12px;color:#253b44;}
.account-copy small{font-size:10px;color:#81949e;}
.side-logout{height:35px;width:35px;border-radius:10px;background:#f3f6f7;color:#617783;}
.side-logout:hover{background:#ffe8e9;color:#b71926;}
.sidebar-mobile-close{color:#536a75;background:#f0f4f5;z-index:5;}
.sidebar-mobile-close:hover{background:#e5ebed;}
/* Dark theme: using the separate uploaded nighttime logo. */
html[data-theme="dark"]{color-scheme:dark;--ink:#edf3f6;--mute:#9dabb5;--bg:#14212a;--surface:#1d2b34;--line:#344650;--sidebar:#1b2a33;--sidebar-hover:#2b414c;--shadow:0 4px 25px rgba(0,0,0,.11);--bs-body-bg:#14212a;--bs-body-color:#edf3f6;--bs-border-color:#344650;--bs-secondary-color:#b5c3ca;}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink);}
html[data-theme="dark"] .sidebar{background:#1b2932;color:#e7f0f4;border-inline-start-color:#31434d;box-shadow:inset 1px 0 0 #ffffff0b;}
html[data-theme="dark"] .side-brand{border-bottom-color:#30414b;}
html[data-theme="dark"] .side-brand-mark{background:transparent;border:0;}
html[data-theme="dark"] .side-brand-mark .brand-image-light{display:none;}
html[data-theme="dark"] .side-brand-mark .brand-image-dark{display:block;}
html[data-theme="dark"] .nav-kicker{color:#91a9b4;}
html[data-theme="dark"] .side-nav-group+.side-nav-group{border-color:#30414b;}
html[data-theme="dark"] .side-nav .nav-link{color:#c1d0d7;}
html[data-theme="dark"] .side-nav .nav-link>i:first-child{color:#a4b9c2;}
html[data-theme="dark"] .side-nav .nav-link:hover{background:#2c414d;color:#fff;}
html[data-theme="dark"] .side-nav .nav-link.active{color:#fff;background:#d31c28;}
html[data-theme="dark"] .side-nav .nav-link.active>i:first-child{color:#fff;}
html[data-theme="dark"] .side-scroll{scrollbar-color:#4f6773 transparent;}
html[data-theme="dark"] .side-scroll::-webkit-scrollbar-thumb{background:#4f6773;}
html[data-theme="dark"] .side-scroll-wrap:before{background:linear-gradient(to bottom,rgba(0,0,0,.35),transparent);}
html[data-theme="dark"] .side-scroll-wrap:after{background:linear-gradient(to top,rgba(0,0,0,.35),transparent);}
html[data-theme="dark"] .side-bottom{border-top-color:#30414b;}
html[data-theme="dark"] .side-avatar{background:#344a57;color:#e4f0f4;}
html[data-theme="dark"] .account-copy strong{color:#eaf1f5;}
html[data-theme="dark"] .account-copy small{color:#9eb4be;}
html[data-theme="dark"] .side-logout{color:#b7c8d0;background:#293d48;}
html[data-theme="dark"] .side-logout:hover{color:#fff;background:#3a535e;}
html[data-theme="dark"] .sidebar-mobile-close{background:#344852;color:#fff;}
/* Global quick switch and appearance settings. */
.theme-quick-toggle{flex:0 0 auto;display:grid;place-items:center;border:1px solid #e5eaee;background:#fff;color:#627a84;border-radius:11px;width:40px;height:40px;cursor:pointer;transition:.18s;}
.theme-quick-toggle:hover{color:#cf2030;border-color:#ecc3c6;background:#fff7f7;}
.theme-when-dark{display:none;}
html[data-theme="dark"] .theme-when-dark{display:inline-block;}
html[data-theme="dark"] .theme-when-light{display:none;}
.settings-stack{display:flex;flex-direction:column;gap:18px;}
.settings-section-title{align-items:flex-start;}
.settings-section-title>div{min-width:0;flex:1;}
.settings-section-title h2{font-size:17px;}
.setting-section-description{font-size:12px;color:#8597a0;margin:7px 0 0;line-height:1.8;font-weight:400;}
.settings-section-icon{width:40px;height:40px;display:grid;place-items:center;flex:none;background:#fff2f2;border-radius:12px;color:#d21c28;font-size:17px;}
.branding-variants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.branding-variant{min-width:0;border:1px solid #e4eaee;border-radius:16px;background:#fbfcfd;padding:17px;}
.branding-variant-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px;}
.branding-variant-title{display:flex;align-items:center;gap:9px;}
.branding-variant-title>i,.branding-variant-title>.svg-inline--fa{color:#c72734;font-size:19px;}
.branding-variant-title strong,.branding-variant-title small{display:block;}
.branding-variant-title strong{font-size:13px;color:#263a42;}
.branding-variant-title small{color:#8598a1;font-size:10.5px;}
.branding-current-badge{background:#ebf1f3;color:#627884;padding:5px 9px;border-radius:99px;font-size:10px;line-height:1.5;white-space:nowrap;}
.branding-logo-stage{height:164px;border:1px dashed #d4e0e5;background:#f2f5f7;border-radius:14px;display:flex;align-items:center;justify-content:center;padding:16px;margin-bottom:15px;}
.branding-logo-stage img{height:100%;width:100%;max-height:133px;max-width:100%;object-fit:contain;}
.branding-variant-dark .branding-logo-stage{background:#1b2932;border-color:#3d5560;}
.branding-variant .form-label{display:block;font-size:11.5px;margin-bottom:7px;}
.branding-variant .form-control{padding:9px;font-size:11.5px;min-height:43px;}
.branding-variant .form-text{display:block;line-height:1.7;}
.branding-remove-option{display:flex;align-items:center;gap:8px;font-size:11px;color:#677e88;margin-top:12px;cursor:pointer;}
.branding-remove-option input{accent-color:#d21c28;height:16px;width:16px;}
.branding-form-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:20px;padding-top:17px;border-top:1px solid #e9eef1;}
.branding-form-footer span{color:#81939b;font-size:11px;}
.branding-form-footer span i{margin-inline-end:4px;}
.appearance-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.appearance-choice{position:relative;border:1px solid #e1e8ec;background:#fbfcfd;display:flex;flex-direction:column;align-items:flex-start;text-align:right;padding:14px 15px;min-height:122px;border-radius:13px;cursor:pointer;transition:.16s;}
.appearance-choice:hover{background:#f8f9fa;border-color:#d7c0c3;}
.appearance-choice.is-selected{border-color:#cf6570;background:#fff7f7;box-shadow:inset 0 0 0 1px #e7b9be;}
.appearance-icon{height:30px;width:30px;border-radius:9px;background:#e9f0f3;color:#527782;display:grid;place-items:center;margin-bottom:9px;}
.appearance-choice strong{font-size:12px;color:#2a3d45;}
.appearance-choice small{font-size:10.5px;color:#87979e;margin-top:1px;}
.appearance-selected{position:absolute;top:14px;inset-inline-end:14px;color:#c9212f;opacity:0;}
.appearance-choice.is-selected .appearance-selected{opacity:1;}
/* Match form surfaces with theme and maintain sufficient text contrast. */
html[data-theme="dark"] .main-wrapper,html[data-theme="dark"] .page-content{background:var(--bg);}
html[data-theme="dark"] .topbar{background:#1b2a33;border-bottom-color:#32434d;box-shadow:none;}
html[data-theme="dark"] .topbar-breadcrumb strong{color:#e8f0f3;}
html[data-theme="dark"] .topbar-breadcrumb>span{color:#9fb1bd;}
html[data-theme="dark"] .topbar-search{background:#223540;border-color:#344a55;color:#b8c8d1;}
html[data-theme="dark"] .topbar-search input{color:#f2f7fa;}
html[data-theme="dark"] .topbar-search kbd{background:#30444d;border-color:#425762;color:#cbd7dd;}
html[data-theme="dark"] .user-chip{border-color:#354850;}
html[data-theme="dark"] .user-copy strong{color:#f0f5f7;}
html[data-theme="dark"] .user-copy small{color:#9baeb9;}
html[data-theme="dark"] .theme-quick-toggle,html[data-theme="dark"] .topbar-notification-bell{background:#263842;color:#cedee5;border-color:#39505b;}
html[data-theme="dark"] .theme-quick-toggle:hover,html[data-theme="dark"] .topbar-notification-bell:hover{background:#354b57;color:#fff;}
html[data-theme="dark"] .notification-bell-count{border-color:#1b2a33;}
html[data-theme="dark"] .user-chip .avatar{background:#3c4952;color:#fff;}
html[data-theme="dark"] .content-card,html[data-theme="dark"] .stats-row .stat-card,html[data-theme="dark"] .dashboard-panel,html[data-theme="dark"] .toolbar-card,html[data-theme="dark"] .table-card,html[data-theme="dark"] .project-card,html[data-theme="dark"] .category-edit-card,html[data-theme="dark"] .kanban-task,html[data-theme="dark"] .kanban-column,html[data-theme="dark"] .detail-stat,html[data-theme="dark"] .task-attachment-card,html[data-theme="dark"] .notification-dropdown,html[data-theme="dark"] .dropdown-menu,html[data-theme="dark"] .insight-card{background:#20313b;color:#e8f1f5;border-color:#334853;box-shadow:none;}
html[data-theme="dark"] .dashboard-focus,html[data-theme="dark"] .filter-form,html[data-theme="dark"] .profile-summary,html[data-theme="dark"] .form-help,html[data-theme="dark"] .project-logo-upload,html[data-theme="dark"] .task-upload-form,html[data-theme="dark"] .comment-compose,html[data-theme="dark"] .task-assignee-person{background:#243640;border-color:#374e58;color:#e8f1f5;}
html[data-theme="dark"] .section-title h2,html[data-theme="dark"] .page-heading h1,html[data-theme="dark"] .dashboard-panel h2,html[data-theme="dark"] .project-card h3,html[data-theme="dark"] .stats-row .stat-number,html[data-theme="dark"] .detail-stat strong,html[data-theme="dark"] .task-title-link,html[data-theme="dark"] .project-card strong,html[data-theme="dark"] .settings-section-title h2,html[data-theme="dark"] .category-edit-heading strong,html[data-theme="dark"] .work-item-content strong,html[data-theme="dark"] .recent-project-top strong,html[data-theme="dark"] .task-assignee-person strong{color:#eef4f7;}
html[data-theme="dark"] .page-heading p,html[data-theme="dark"] .section-kicker,html[data-theme="dark"] .setting-section-description,html[data-theme="dark"] .form-text,html[data-theme="dark"] .table-subline,html[data-theme="dark"] .work-date,html[data-theme="dark"] .dashboard-panel small{color:#a5b9c4;}
html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select,html[data-theme="dark"] textarea.form-control,html[data-theme="dark"] .filter-search input{background-color:#1a2932;border-color:#3c505c;color:#edf5f8;}
html[data-theme="dark"] .form-control::placeholder,html[data-theme="dark"] .filter-search input::placeholder{color:#8fa5b1;}
html[data-theme="dark"] .form-label{color:#d8e5eb;}
html[data-theme="dark"] .form-control:focus,html[data-theme="dark"] .form-select:focus{background:#1a2932;color:#fff;border-color:#cf6570;}
html[data-theme="dark"] .table,html[data-theme="dark"] .project-table{--bs-table-bg:transparent;--bs-table-color:#e6eff4;--bs-table-border-color:#374c56;color:#e6eff4;}
html[data-theme="dark"] .table tr,html[data-theme="dark"] .project-table tr{border-color:#394e58;}
html[data-theme="dark"] .work-item,html[data-theme="dark"] .recent-project,html[data-theme="dark"] .notification-entry,html[data-theme="dark"] .comment-row,html[data-theme="dark"] .activity-item{border-color:#334954;}
html[data-theme="dark"] .work-item:hover,html[data-theme="dark"] .recent-project:hover{background:#293e49;}
html[data-theme="dark"] .notification-dropdown-head,html[data-theme="dark"] .notification-dropdown-item,html[data-theme="dark"] .notification-dropdown-footer{background:#20313b;border-color:#344a55;color:#dce9ee;}
html[data-theme="dark"] .notification-dropdown-item.is-unread{background:#392d36;}
html[data-theme="dark"] .notification-dropdown-item:hover,html[data-theme="dark"] .notification-dropdown-footer:hover{background:#2e424c;}
html[data-theme="dark"] .branding-variant,html[data-theme="dark"] .appearance-choice{background:#243640;border-color:#3c505c;}
html[data-theme="dark"] .branding-variant-title strong,html[data-theme="dark"] .appearance-choice strong{color:#e9f1f5;}
html[data-theme="dark"] .branding-variant-title small,html[data-theme="dark"] .appearance-choice small,html[data-theme="dark"] .branding-remove-option{color:#a1b6c0;}
html[data-theme="dark"] .branding-logo-stage{background:#2d424c;border-color:#4a606b;}
html[data-theme="dark"] .branding-variant-dark .branding-logo-stage{background:#19272f;}
html[data-theme="dark"] .branding-current-badge{background:#394d56;color:#d0dde3;}
html[data-theme="dark"] .branding-form-footer{border-color:#3a5059;}
html[data-theme="dark"] .appearance-choice:hover{background:#2e414b;}
html[data-theme="dark"] .appearance-choice.is-selected{background:#3e2b34;border-color:#ce7078;}
html[data-theme="dark"] .appearance-icon{background:#3a505b;color:#d0dfe5;}
html[data-theme="dark"] .branding-form-footer span{color:#a7bac4;}
html[data-theme="dark"] .btn-light{background:#324650;border-color:#425966;color:#e2ebef;}
html[data-theme="dark"] .btn-outline-primary{background:transparent;}
html[data-theme="dark"] .alert{color:#ecf1f4;}
@media(max-width:1199px){:root{--nav-width:222px;}}
@media(max-width:991px){
 :root{--nav-width:254px;}
 .sidebar{right:-270px;width:var(--nav-width);position:fixed;top:0;height:100dvh;transition:right .2s ease;}
 .sidebar.open{right:0;}
 .side-brand{min-height:129px;padding:13px 46px 14px 12px;}
 .side-brand-mark{height:100px;max-width:175px;}
 .side-brand-mark .brand-image{height:96px;}
 .sidebar-mobile-close{display:grid;place-items:center;position:absolute;left:12px;right:auto;inset-inline-start:auto;inset-inline-end:12px;top:26px;}
}
@media(max-width:767px){
 .branding-variants{grid-template-columns:1fr;}
 .branding-logo-stage{height:140px;}
 .settings-section-title h2{font-size:15px;}
 .appearance-options{gap:8px;}
 .appearance-choice{min-height:112px;padding:11px;}
 .appearance-choice small{font-size:9.5px;}
 .theme-quick-toggle{height:38px;width:38px;}
}
@media(max-width:480px){
 .appearance-options{grid-template-columns:1fr;}
 .appearance-choice{min-height:68px;display:grid;grid-template-columns:32px 1fr;column-gap:10px;align-content:center;}
 .appearance-icon{grid-row:span 2;margin:0;}
 .appearance-selected{inset-inline-end:12px;top:19px;}
 .branding-form-footer .btn{width:100%;}
}
@media(prefers-reduced-motion:reduce){.side-scroll{scroll-behavior:auto;}}
