@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    --clay-bg: #f1f3ff;
    --clay-surface: #f9faff;
    --clay-primary: #6656e8;
    --clay-primary-dark: #4938c5;
    --clay-primary-soft: #e7e3ff;
    --clay-success: #35b990;
    --clay-warning: #f4b942;
    --clay-danger: #ef6578;
    --clay-ink: #292747;
    --clay-muted: #8889a6;
    --clay-line: #e4e6f5;
    --clay-sidebar: #3d3567;
    --clay-shadow: 10px 10px 22px rgba(89, 83, 145, .14), -8px -8px 20px rgba(255, 255, 255, .9), inset 1px 1px 1px rgba(255, 255, 255, .78);
    --clay-shadow-sm: 5px 5px 12px rgba(89, 83, 145, .13), -4px -4px 10px rgba(255, 255, 255, .85), inset 1px 1px 1px rgba(255, 255, 255, .75);
    --sidebar-width: 278px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--clay-ink);
    background: radial-gradient(circle at 92% 8%, rgba(255, 196, 186, .48), transparent 24rem), radial-gradient(circle at 36% 92%, rgba(184, 227, 216, .45), transparent 28rem), var(--clay-bg);
    font-family: 'DM Sans', sans-serif;
    font-size: .94rem;
}
a { color: var(--clay-primary); text-decoration: none; }
a:hover { color: var(--clay-primary-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }

.app-sidebar {
    position: fixed;
    inset: 18px auto 18px 18px;
    z-index: 1040;
    display: flex;
    width: var(--sidebar-width);
    overflow: hidden;
    flex-direction: column;
    padding: 22px 18px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 30px;
    background: linear-gradient(155deg, #504780 0%, var(--clay-sidebar) 52%, #332c59 100%);
    box-shadow: 14px 16px 30px rgba(57, 49, 99, .24), inset 2px 2px 2px rgba(255,255,255,.14), inset -2px -2px 3px rgba(27,22,55,.2);
    transition: width .25s ease, transform .25s ease;
}
.brand { display: flex; align-items: center; gap: 13px; min-height: 54px; padding: 0 7px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 15px;
    color: #453a7b;
    background: linear-gradient(145deg, #fff7e5, #ffd58c);
    box-shadow: 5px 6px 12px rgba(24,18,57,.25), inset 2px 2px 3px rgba(255,255,255,.78);
}
.brand-copy { display: flex; min-width: 0; flex-direction: column; white-space: nowrap; }
.brand-copy strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; }
.brand-copy small { color: rgba(255,255,255,.58); font-size: .72rem; }
.sidebar-caption { margin: 34px 12px 12px; color: rgba(255,255,255,.46); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-nav { overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.sidebar-menu, .sidebar-submenu { margin: 0; padding: 0; list-style: none; }
.sidebar-item { margin: 5px 0; }
.sidebar-link {
    position: relative;
    display: flex;
    min-height: 49px;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    overflow: hidden;
    border-radius: 16px;
    color: rgba(255,255,255,.72);
    font-weight: 600;
    white-space: nowrap;
    transition: .18s ease;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateX(2px); }
.sidebar-link-icon { display: inline-flex; width: 31px; height: 31px; flex: 0 0 31px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,.08); }
.sidebar-item.is-active > .sidebar-link { color: #493e78; background: linear-gradient(145deg, #fff, #ecebff); box-shadow: 5px 7px 12px rgba(25,19,57,.28), inset 2px 2px 3px #fff; }
.sidebar-item.is-active > .sidebar-link .sidebar-link-icon { color: #fff; background: linear-gradient(145deg, #8071f4, #5a49dd); box-shadow: 3px 4px 8px rgba(70,53,177,.26); }
.sidebar-arrow { margin-left: auto; font-size: .65rem; transition: transform .2s ease; }
.has-children.is-open > .sidebar-link .sidebar-arrow { transform: rotate(180deg); }
.sidebar-submenu { display: none; margin: 4px 0 8px 18px; padding-left: 13px; border-left: 1px solid rgba(255,255,255,.13); }
.has-children.is-open > .sidebar-submenu { display: block; }
.sidebar-submenu .sidebar-link { min-height: 41px; font-size: .86rem; }
.sidebar-submenu .sidebar-link-icon { width: 25px; height: 25px; flex-basis: 25px; font-size: .65rem; }
.sidebar-help { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.07); }
.sidebar-help-icon { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; border-radius: 12px; color: #41376f; background: #ffd991; }
.sidebar-help div { display: flex; min-width: 0; flex-direction: column; }
.sidebar-help strong { font-size: .79rem; white-space: nowrap; }
.sidebar-help small { color: rgba(255,255,255,.5); font-size: .68rem; line-height: 1.35; }

.app-main { min-height: 100vh; margin-left: calc(var(--sidebar-width) + 36px); transition: margin .25s ease; }
.app-topbar { display: flex; height: 88px; align-items: center; gap: 14px; padding: 17px 30px 10px; }
.topbar-button {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 15px;
    color: var(--clay-primary);
    background: var(--clay-surface);
    box-shadow: var(--clay-shadow-sm);
}
.topbar-copy { flex-direction: column; line-height: 1.35; }
.topbar-copy small { color: var(--clay-muted); font-size: .73rem; }
.topbar-copy strong { font-size: .9rem; }
.profile-button { display: flex; align-items: center; gap: 10px; padding: 6px 11px 6px 7px; border: 1px solid rgba(255,255,255,.75); border-radius: 18px; color: var(--clay-ink); background: var(--clay-surface); box-shadow: var(--clay-shadow-sm); }
.profile-avatar { display: inline-flex; width: 40px; height: 40px; flex: 0 0 40px; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #ff9f8d, #f17475); box-shadow: 3px 4px 8px rgba(202,92,99,.25); font-weight: 800; }
.profile-avatar-sm { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; }
.profile-copy { flex-direction: column; min-width: 105px; text-align: left; line-height: 1.3; }
.profile-copy strong { max-width: 145px; overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { color: var(--clay-muted); font-size: .67rem; }
.profile-chevron { color: var(--clay-muted); font-size: .62rem; }
.clay-dropdown { min-width: 235px; margin-top: 10px !important; padding: 10px; border: 1px solid #fff; border-radius: 18px; background: #fff; box-shadow: 8px 10px 25px rgba(67,59,113,.18); }
.dropdown-user { display: flex; align-items: center; gap: 10px; padding: 7px; }
.dropdown-user div { display: flex; min-width: 0; flex-direction: column; }
.dropdown-user strong, .dropdown-user small { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-user strong { font-size: .8rem; }
.dropdown-user small { color: var(--clay-muted); font-size: .68rem; }
.clay-dropdown .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 11px; font-size: .82rem; }

.app-content { min-height: calc(100vh - 145px); padding: 22px 30px 35px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.page-eyebrow { display: block; margin-bottom: 6px; color: var(--clay-primary); font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.page-heading h1 { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.55rem, 2.2vw, 2.2rem); font-weight: 800; letter-spacing: -.045em; }
.page-heading-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.8); border-radius: 17px; color: var(--clay-primary); background: var(--clay-primary-soft); box-shadow: var(--clay-shadow-sm); }
.app-footer { display: flex; justify-content: space-between; padding: 17px 30px 24px; color: var(--clay-muted); font-size: .75rem; }

.clay-card, .card { border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: rgba(249,250,255,.9); box-shadow: var(--clay-shadow); }
.card-header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; padding: 20px 24px; border: 0; background: transparent; }
.card-header h2, .card-header h3, .card-header h4 { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 800; }
.card-header p { margin: 5px 0 0; color: var(--clay-muted); font-size: .78rem; }
.card-body { padding: 24px; }
.card-footer { padding: 17px 24px; border: 0; background: transparent; }
.card-actions { display: flex; align-items: center; gap: 9px; }
.btn { border: 0; border-radius: 13px; padding: .68rem 1rem; font-size: .81rem; font-weight: 700; box-shadow: 3px 4px 9px rgba(70,66,115,.13), inset 1px 1px 1px rgba(255,255,255,.34); transition: transform .16s ease, box-shadow .16s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 4px 6px 12px rgba(70,66,115,.17); }
.btn:active { transform: translateY(1px); box-shadow: inset 2px 2px 5px rgba(50,45,91,.14); }
.btn-primary { background: linear-gradient(145deg, #7768f4, #5947d8); }
.btn-success { background: linear-gradient(145deg, #49cda5, #28a37f); }
.btn-warning { color: #70521d; background: linear-gradient(145deg, #ffd777, #edaf31); }
.btn-danger { background: linear-gradient(145deg, #f47c8d, #df5369); }
.btn-clay-light, .btn-light { color: #65647d; background: #eef0fa; }
.btn-icon { display: inline-flex; width: 37px; height: 37px; align-items: center; justify-content: center; padding: 0; }
.btn-sm { padding: .5rem .72rem; border-radius: 11px; font-size: .74rem; }

.form-label, .form-check-label { color: #52516b; font-size: .79rem; font-weight: 700; }
.form-control, .form-select { min-height: 46px; border: 1px solid #e0e2f0; border-radius: 13px; color: var(--clay-ink); background-color: #f5f6fc; box-shadow: inset 3px 3px 7px rgba(94,90,136,.09), inset -3px -3px 7px rgba(255,255,255,.85); font-size: .85rem; }
.form-control:focus, .form-select:focus { border-color: #a89ef8; background-color: #fff; box-shadow: 0 0 0 .22rem rgba(102,86,232,.13), inset 2px 2px 5px rgba(94,90,136,.06); }
.form-control::placeholder { color: #b0b0c2; }
.form-text { color: var(--clay-muted); font-size: .72rem; }
.form-check-input { width: 1.15em; height: 1.15em; margin-top: .16em; border-color: #c8c7dc; }
.form-check-input:checked { border-color: var(--clay-primary); background-color: var(--clay-primary); }
.form-section { padding: 20px; border: 1px solid rgba(255,255,255,.88); border-radius: 18px; background: rgba(239,241,251,.72); box-shadow: inset 2px 2px 6px rgba(91,86,136,.06), inset -2px -2px 6px rgba(255,255,255,.85); }
.form-section + .form-section { margin-top: 18px; }
.form-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.form-section-title span { display: inline-flex; width: 33px; height: 33px; align-items: center; justify-content: center; border-radius: 11px; color: var(--clay-primary); background: var(--clay-primary-soft); }
.form-section-title h3 { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .9rem; font-weight: 800; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

.clay-table { margin: 0 !important; color: var(--clay-ink); }
.clay-table > thead > tr > th { padding: 15px 18px; border: 0; color: #85859d; background: #edeffa; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.clay-table > thead > tr > th:first-child { border-radius: 13px 0 0 13px; }
.clay-table > thead > tr > th:last-child { border-radius: 0 13px 13px 0; }
.clay-table > tbody > tr > td { padding: 16px 18px; border-color: #e9eaf4; vertical-align: middle; font-size: .82rem; }
.clay-table > tbody > tr:last-child > td { border-bottom: 0; }
.clay-table > tbody > tr:hover > td { background: rgba(235,233,255,.42); }
.table-user { display: flex; align-items: center; gap: 10px; }
.table-avatar { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #8e80fa, #6451de); font-size: .72rem; font-weight: 800; box-shadow: 3px 4px 8px rgba(76,61,180,.18); }
.table-primary { font-weight: 700; }
.table-secondary { display: block; margin-top: 2px; color: var(--clay-muted); font-size: .71rem; }
.table-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.badge { padding: .5em .75em; border-radius: 9px; font-size: .66rem; font-weight: 800; }
.badge-soft-primary { color: #5847ca; background: #e4e0ff; }
.badge-soft-success { color: #238364; background: #d8f4e9; }
.badge-soft-secondary { color: #77768e; background: #e9e9f1; }
.code-pill { display: inline-block; padding: 5px 8px; border-radius: 8px; color: #5c4cd0; background: #eae7ff; font-size: .72rem; }
.dt-container .dt-search { margin: 0 0 16px; }
.dt-container .dt-search label { font-size: 0; }
.dt-container .dt-search input { width: min(100%, 270px); min-height: 42px; margin: 0 !important; padding: 8px 13px 8px 38px; border: 1px solid #e0e2f0; border-radius: 13px; background: #f1f2fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238889a6' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 13px center; box-shadow: inset 2px 2px 5px rgba(94,90,136,.07); font-size: .78rem; }
.dt-container .dt-search input:focus { outline: 0; border-color: #a89ef8; box-shadow: 0 0 0 .2rem rgba(102,86,232,.12); }
.pagination { gap: 5px; margin-bottom: 0; }
.page-link { min-width: 35px; border: 0; border-radius: 10px !important; color: var(--clay-primary); background: #eef0fa; text-align: center; box-shadow: 2px 3px 7px rgba(81,75,126,.1); }
.active > .page-link, .page-link.active { background: var(--clay-primary); }

.clay-alert { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding: 14px 44px 14px 14px; border: 1px solid rgba(255,255,255,.78); border-radius: 17px; box-shadow: var(--clay-shadow-sm); }
.clay-alert .alert-icon { display: inline-flex; width: 35px; height: 35px; flex: 0 0 35px; align-items: center; justify-content: center; border-radius: 11px; color: #fff; }
.clay-alert > div { display: flex; flex-direction: column; font-size: .78rem; }
.clay-alert strong { margin-bottom: 2px; font-size: .81rem; }
.alert-success { color: #226d58; background: #e3f7f0; }
.alert-success .alert-icon { background: var(--clay-success); }
.alert-danger { color: #92394a; background: #ffebee; }
.alert-danger .alert-icon { background: var(--clay-danger); }
.alert-warning { color: #87631c; background: #fff4d9; }
.alert-warning .alert-icon { background: var(--clay-warning); }
.alert-info { color: #4c409e; background: #ece9ff; }
.alert-info .alert-icon { background: var(--clay-primary); }
.clay-modal { border: 1px solid #fff; border-radius: 24px; background: var(--clay-surface); box-shadow: 14px 18px 40px rgba(49,42,89,.24); }
.clay-modal .modal-body { padding: 28px 24px 12px; }
.clay-modal .modal-footer { padding: 12px 20px 20px; }
.modal-danger-icon { display: inline-flex; width: 62px; height: 62px; align-items: center; justify-content: center; margin-bottom: 17px; border-radius: 20px; color: #fff; background: linear-gradient(145deg, #f68696, #df5268); box-shadow: 6px 7px 14px rgba(204,71,91,.25), inset 2px 2px 2px rgba(255,255,255,.3); font-size: 1.3rem; }
.clay-modal .modal-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; }
.clay-modal p { margin: 8px 0 0; color: var(--clay-muted); font-size: .78rem; line-height: 1.55; }
.note-editor.note-frame { border: 1px solid #dee0ef !important; border-radius: 15px; background: #f5f6fc; box-shadow: inset 2px 2px 6px rgba(94,90,136,.07); overflow: hidden; }
.note-editor .note-toolbar { padding: 8px !important; border: 0 !important; background: #eceefa !important; }
.note-editor .note-btn { border-radius: 8px; box-shadow: none; }
.note-editor .note-editable { background: #fafbff; }

.menu-tree-list { margin: 0; padding: 0; list-style: none; }
.menu-children { margin-left: 34px; }
.menu-tree-item.dragging { opacity: .42; }
.menu-tree-row { display: flex; min-height: 64px; align-items: center; gap: 12px; margin-bottom: 5px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.9); border-radius: 17px; background: #f4f5fc; box-shadow: 3px 4px 9px rgba(83,78,129,.09), inset 1px 1px 1px #fff; transition: .15s ease; }
.menu-drag-handle { color: #aaaac0; cursor: grab; }
.menu-drag-handle:active { cursor: grabbing; }
.menu-tree-icon { display: inline-flex; width: 37px; height: 37px; flex: 0 0 37px; align-items: center; justify-content: center; border-radius: 12px; color: var(--clay-primary); background: var(--clay-primary-soft); }
.menu-tree-content { min-width: 0; flex: 1; }
.menu-tree-content strong { display: block; font-size: .83rem; }
.menu-tree-content small { display: block; overflow: hidden; color: var(--clay-muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.menu-drop-zone { height: 7px; margin-bottom: 3px; border-radius: 5px; transition: .15s ease; }
.menu-drop-zone.drag-over { height: 13px; background: #8a7cf3; }
.menu-drop-end { min-height: 8px; margin-bottom: 4px; padding: 3px 10px; border: 1px dashed transparent; border-radius: 9px; color: transparent; font-size: .7rem; transition: .15s ease; }
.menu-drop-end.drag-over { min-height: 34px; color: var(--clay-primary); border-color: var(--clay-primary); background: var(--clay-primary-soft); }
.menu-tree-row.drag-over { border-color: #9185ee; background: #ebe8ff; box-shadow: 0 0 0 3px rgba(102,86,232,.12); }

.dashboard-hero { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 40px); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 27px; background: linear-gradient(125deg, #6252da 0%, #7568e9 55%, #9c88f4 100%); box-shadow: 12px 14px 28px rgba(75,59,176,.22), inset 2px 2px 2px rgba(255,255,255,.2); }
.dashboard-hero::before, .dashboard-hero::after { position: absolute; content: ''; border-radius: 50%; background: rgba(255,255,255,.09); }
.dashboard-hero::before { width: 260px; height: 260px; top: -130px; right: -55px; }
.dashboard-hero::after { width: 130px; height: 130px; right: 120px; bottom: -80px; }
.dashboard-hero-copy { position: relative; z-index: 1; max-width: 600px; }
.dashboard-hero h2 { margin: 0 0 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.035em; }
.dashboard-hero p { max-width: 540px; margin: 0; color: rgba(255,255,255,.72); font-size: .86rem; line-height: 1.7; }
.dashboard-hero-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.1); font-size: .68rem; font-weight: 700; }
.stat-card { display: flex; min-height: 142px; align-items: center; gap: 17px; padding: 22px; }
.stat-icon { display: inline-flex; width: 58px; height: 58px; flex: 0 0 58px; align-items: center; justify-content: center; border-radius: 19px; font-size: 1.15rem; box-shadow: 5px 6px 12px rgba(71,65,119,.15), inset 2px 2px 2px rgba(255,255,255,.62); }
.stat-icon-purple { color: #5745c7; background: #ded9ff; }
.stat-icon-green { color: #218666; background: #cdf2e5; }
.stat-icon-orange { color: #a86727; background: #ffe0b4; }
.stat-copy { display: flex; flex-direction: column; }
.stat-copy small { color: var(--clay-muted); font-size: .73rem; font-weight: 600; }
.stat-copy strong { margin: 2px 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.65rem; font-weight: 800; }
.stat-copy span { color: #aaaabd; font-size: .67rem; }
.empty-state { padding: 44px 20px; color: var(--clay-muted); text-align: center; }

.login-page { display: flex; min-height: 100vh; align-items: center; padding: 28px 0; overflow: hidden; }
.login-shell { position: relative; z-index: 1; }
.login-panel { display: flex; min-height: 640px; overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: 32px; background: rgba(249,250,255,.86); box-shadow: 18px 20px 42px rgba(71,64,121,.18), -10px -10px 25px rgba(255,255,255,.75); backdrop-filter: blur(12px); }
.login-visual { position: relative; display: flex; width: 48%; flex-direction: column; justify-content: space-between; padding: 44px; overflow: hidden; color: #fff; background: linear-gradient(145deg, #4b417b, #6b5ddd); }
.login-visual::before, .login-visual::after { position: absolute; content: ''; border-radius: 50%; background: rgba(255,255,255,.09); }
.login-visual::before { width: 330px; height: 330px; top: -135px; right: -140px; }
.login-visual::after { width: 210px; height: 210px; left: -75px; bottom: -75px; }
.login-brand, .login-message, .login-steps { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 13px; }
.login-brand strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.02rem; }
.login-brand small { display: block; color: rgba(255,255,255,.55); font-size: .7rem; }
.login-message h1 { margin-bottom: 14px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 800; line-height: 1.2; letter-spacing: -.045em; }
.login-message p { max-width: 390px; margin: 0; color: rgba(255,255,255,.66); line-height: 1.7; }
.login-steps { display: flex; gap: 8px; }
.login-steps span { width: 28px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.2); }
.login-steps span:first-child { width: 48px; background: #ffd992; }
.login-form-panel { display: flex; width: 52%; align-items: center; justify-content: center; padding: 42px; }
.login-form-wrap { width: 100%; max-width: 390px; }
.login-form-wrap h2 { margin: 0 0 7px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.55rem; font-weight: 800; letter-spacing: -.035em; }
.login-form-wrap > p { margin-bottom: 27px; color: var(--clay-muted); font-size: .82rem; }
.login-input-group { position: relative; }
.login-input-group > i { position: absolute; z-index: 2; top: 15px; left: 15px; color: #aaaac0; }
.login-input-group .form-control { padding-left: 42px; }
.password-toggle { position: absolute; z-index: 3; top: 7px; right: 8px; width: 34px; height: 34px; border: 0; color: #aaaac0; background: transparent; }
.login-footnote { margin-top: 25px; color: #aaaabd; font-size: .68rem; text-align: center; }

.sidebar-overlay { display: none; }
body.sidebar-collapsed .app-sidebar { width: 82px; }
body.sidebar-collapsed .app-main { margin-left: 118px; }
body.sidebar-collapsed .brand-copy, body.sidebar-collapsed .sidebar-caption, body.sidebar-collapsed .sidebar-link > span:not(.sidebar-link-icon), body.sidebar-collapsed .sidebar-arrow, body.sidebar-collapsed .sidebar-help { display: none; }
body.sidebar-collapsed .sidebar-link { justify-content: center; padding-inline: 7px; }
body.sidebar-collapsed .sidebar-submenu { display: none; }

@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(calc(-100% - 28px)); }
    .app-main { margin-left: 0; }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 1035; width: 100%; height: 100%; border: 0; background: rgba(34,29,66,.38); backdrop-filter: blur(2px); }
    body.sidebar-mobile-open { overflow: hidden; }
    body.sidebar-mobile-open .app-sidebar { transform: translateX(0); }
    body.sidebar-mobile-open .sidebar-overlay { display: block; }
}
@media (max-width: 767.98px) {
    .app-topbar { height: 76px; padding: 14px 18px 7px; }
    .app-content { padding: 18px 18px 30px; }
    .app-footer { padding-inline: 18px; }
    .page-heading { margin-bottom: 20px; }
    .page-heading-icon { width: 45px; height: 45px; }
    .card-header { align-items: flex-start; gap: 15px; padding: 19px; }
    .card-header.has-actions { flex-direction: column; }
    .card-actions { width: 100%; flex-wrap: wrap; }
    .card-actions .btn { flex: 1; }
    .card-body { padding: 19px; }
    .menu-children { margin-left: 15px; }
    .menu-tree-row { flex-wrap: wrap; gap: 9px; }
    .menu-tree-content { width: calc(100% - 82px); }
    .menu-tree-row > .badge { margin-left: 58px; }
    .table-actions { flex-wrap: wrap; }
    .login-page { padding: 16px; }
    .login-panel { min-height: auto; border-radius: 25px; }
    .login-visual { display: none; }
    .login-form-panel { width: 100%; padding: 34px 23px; }
}
@media (max-width: 575.98px) {
    .app-sidebar { inset-block: 10px; left: 10px; width: min(278px, calc(100vw - 36px)); }
    .app-footer { flex-direction: column; gap: 4px; }
    .profile-button { padding-right: 7px; }
    .profile-chevron { display: none; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .btn { width: 100%; }
    .dashboard-hero { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
