/* Shared RTL workspace: navigation stays separate from the working canvas. */
body:has(.tk-sidebar) { --sidebar-width: 250px; background: #f5f7f9; padding-inline-start: var(--sidebar-width) !important; }
.tk-sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sidebar-width); z-index: 240; display: flex; flex-direction: column; padding: 34px 20px 20px; background: #fff; border-inline-end: 1px solid #e7ecef; overflow-y: auto; }
.tk-sidebar .tk-brand { padding: 0 6px 30px; gap: 12px; }
.tk-sidebar .tk-brand__mark svg { width: 43px; height: 43px; }
.tk-sidebar .tk-brand__text strong { font-size: 1.5rem; }
.tk-sidebar .tk-brand__text small { font-size: .62rem; margin-top: 8px; }
.tk-sidebar-label { color: #91a0aa; font-size: .72rem; padding: 18px 14px 12px; }
.tk-sidebar .tk-nav { display: flex; flex-direction: column; gap: 8px; margin: 0; overflow: visible; flex: 0 0 auto; order: 0; }
.tk-sidebar .tk-nav a { padding: 14px; font-size: .9rem; border-radius: 12px; gap: 12px; }
.tk-sidebar .tk-nav a svg { width: 21px; height: 21px; flex-shrink: 0; }
.tk-sidebar .tk-nav a span { white-space: normal; line-height: 1.7; }
.tk-sidebar .tk-nav a[aria-current] { color: #08796c; background: #e7f5f0; font-weight: 800; box-shadow: inset -3px 0 #229d89; }
.tk-sidebar-note { margin-top: auto; padding: 22px 16px; border-radius: 16px; background: #f0f7f5; position: relative; }
.tk-sidebar-note span { font-weight: 800; color: #236457; font-size: .88rem; }
.tk-sidebar-note p { color: #70837d; font-size: .77rem; line-height: 1.9; margin: 8px 0 15px; }
.tk-sidebar-note a { color: #247664; font-size: .75rem; text-decoration: none; }
.tk-sidebar-footer { padding-top: 22px; text-align: center; color: #97a3aa; font-size: .65rem; }
body:has(.tk-sidebar) .tk-topbar { min-height: 86px; padding: 16px 32px; background: #ffffffed; box-shadow: none; gap: 16px; }
.tk-page-location { display: flex; flex-direction: column; gap: 4px; margin-inline-end: auto; }
.tk-page-location small { color: #93a0a8; font-size: .68rem; }
.tk-page-location strong { color: #243f4c; font-size: .92rem; }
.tk-sidebar-toggle, .tk-sidebar-close { display: none; }
.tk-sidebar-backdrop { display: none; }
body:has(.tk-sidebar) main.page-wrap, body:has(.tk-sidebar) main.sx-wrap { padding: 30px 32px 56px; max-width: 1600px; margin-inline: auto; }
.tk-welcome-hero, body:has(.tk-sidebar) .dashboard-hero { background: #103e42; background-image: radial-gradient(ellipse at 0% 100%, #29665b 0%, transparent 65%); color: #fff; border: 0; border-radius: 22px; box-shadow: none; position: relative; overflow: hidden; margin-bottom: 28px; }
.tk-welcome-hero { padding: 36px 38px; min-height: 230px; align-items: center; gap: 25px; }
.tk-welcome-hero::before, .dashboard-hero::before { content: ''; position: absolute; width: 340px; height: 340px; border: 1px solid #ffffff12; border-radius: 50%; inset-inline-end: -80px; top: -170px; pointer-events: none; box-shadow: 0 0 0 45px #ffffff04, 0 0 0 90px #ffffff03; }
.tk-hero-eyebrow { display: inline-block; font-size: .73rem; color: #b9ded2; letter-spacing: .02em; margin-bottom: 12px; }
.tk-welcome-hero h1 { color: #fff; font-size: clamp(1.5rem, 2.5vw, 2.1rem); margin: 0 0 12px; }
.tk-welcome-hero p { color: #c7dcd8; font-size: .88rem; line-height: 1.9; max-width: 550px; }
.tk-hero-caption { font-size: .71rem; color: #b9d7ce; margin-top: 22px; display: flex; gap: 8px; align-items: center; }
.tk-hero-caption span { width: 6px; height: 6px; border-radius: 50%; background: #83c6a4; }
.tk-welcome-hero .tk-pagehead__actions { position: relative; flex-direction: column; align-items: stretch; min-width: 160px; }
.tk-welcome-hero .btn { background: #ffffff10; border: 1px solid #ffffff30; color: #fff; justify-content: center; }
.tk-welcome-hero .btn:first-child { background: #e8cf97; color: #28463b; border-color: #e8cf97; }
body:has(.tk-sidebar) .dashboard-hero__inner { padding: 32px 38px; }
body:has(.tk-sidebar) .dashboard-hero__title { color: white; font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
body:has(.tk-sidebar) .dashboard-hero__lead { color: #d0e2dc; }
body:has(.tk-sidebar) .dashboard-hero__badge { background: #ffffff14; color: #bde1d5; border-color: #ffffff20; }
body:has(.tk-sidebar) .dashboard-hero__icon-ring { background: #ffffff0c; border-color: #ffffff20; color: #dfc78f; box-shadow: none; }
body:has(.tk-sidebar) .stat-card { border: 1px solid #e6ecee; border-radius: 16px; box-shadow: 0 3px 12px #183c4603; padding: 22px; text-align: start; }
body:has(.tk-sidebar) .stat-number { font-size: 2rem; line-height: 1.25; margin-bottom: 10px; }
body:has(.tk-sidebar) .stat-label { color: #788892; font-size: .8rem; }
body:has(.tk-sidebar) .filters-card, body:has(.tk-sidebar) .table-card { border: 1px solid #e6ecee; box-shadow: none; }
body:has(.tk-sidebar) .admin-main-tabs { margin-bottom: 24px; }
@media (max-width: 1200px) { body:has(.tk-sidebar) { --sidebar-width: 222px; } .tk-sidebar { padding-inline: 14px; } body:has(.tk-sidebar) .tk-context { max-width: 180px; } }
@media (max-width: 1000px) {
  body:has(.tk-sidebar) { padding-inline-start: 0 !important; --sidebar-width: 270px; }
  .tk-sidebar { transform: translateX(100%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  .tk-sidebar-open .tk-sidebar { transform: none; visibility: visible; }
  .tk-sidebar-toggle, .tk-sidebar-close { display: grid; }
  .tk-sidebar-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 28px; height: 28px; font-size: 22px; }
  .tk-sidebar-open { overflow: hidden; }
  .tk-sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: #102e3a66; backdrop-filter: blur(3px); z-index: 230; border: 0; }
}
@media (max-width: 600px) {
  body:has(.tk-sidebar) .tk-topbar { min-height: 72px; padding: 12px 16px; flex-wrap: nowrap; }
  body:has(.tk-sidebar) .tk-actions { margin: 0; width: auto; }
  body:has(.tk-sidebar) .tk-context, body:has(.tk-sidebar) .tk-user__meta { display: none; }
  body:has(.tk-sidebar) main.page-wrap, body:has(.tk-sidebar) main.sx-wrap { padding: 20px 16px 40px; }
  .tk-welcome-hero { padding: 28px 24px; flex-direction: column; align-items: stretch; }
  .tk-welcome-hero .tk-pagehead__actions { flex-direction: row; flex-wrap: wrap; }
  .tk-welcome-hero .btn { flex: 1; font-size: .8rem; }
  body:has(.tk-sidebar) .dashboard-hero__inner { padding: 28px 24px; }
  body:has(.tk-sidebar) .stat-card { padding: 18px; }
}
/* School artwork remains the focal point; the shade anchors the RTL copy. */
.tk-psych-subnav { display: grid; gap: 4px; margin: 10px 16px 28px 0; padding-inline-start: 14px; border-inline-start: 1px solid #d7e5df; }
.tk-psych-subnav a { color: #607b75; font-size: .75rem; text-decoration: none; padding: 7px 0; }
.tk-psych-subnav a:hover { color: #0b6a5f; }
.tk-psych-entry { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border: 1px solid #dce7e3; border-radius: 16px; background: #fff; margin-bottom: 24px; text-decoration: none; color: #285853; }
.tk-psych-entry > span:nth-child(2) { flex: 1; }
.tk-psych-entry strong, .tk-psych-entry small { display: block; }
.tk-psych-entry small { color: #728a84; font-size: .77rem; margin-top: 6px; }
.tk-psych-entry__icon { display: grid; place-items: center; background: #edf5f1; width: 44px; height: 44px; border-radius: 12px; font-size: 26px; }
.tk-welcome-hero, body:has(.tk-sidebar) .dashboard-hero {
  background-color: #083c51;
  background-image: linear-gradient(270deg, rgba(4,32,45,.94) 0%, rgba(4,36,50,.82) 32%, rgba(4,36,50,.3) 66%, rgba(4,36,50,.14)), url('../images/hindhero.png');
  background-size: cover;
  background-position: center, center 48%;
  border-radius: 24px;
  border: 1px solid #ffffff25;
  box-shadow: 0 16px 36px #103e421a;
  isolation: isolate;
}
.tk-welcome-hero { min-height: 330px; padding: 42px; align-items: flex-end; }
.tk-welcome-hero::before, body:has(.tk-sidebar) .dashboard-hero::before { display: none; }
.tk-welcome-hero::after, body:has(.tk-sidebar) .dashboard-hero::after {
  content: ''; display: block; position: absolute; inset-inline-start: 42px; top: 0; width: 64px; height: 3px; background: #edcf91; border-radius: 0 0 4px 4px;
}
.tk-welcome-hero > div, body:has(.tk-sidebar) .dashboard-hero__inner { position: relative; z-index: 1; }
.tk-hero-eyebrow { padding: 7px 12px; border: 1px solid #ffffff35; border-radius: 999px; background: #073b4b80; color: #f3e3bf; font-size: .7rem; margin-bottom: 20px; backdrop-filter: blur(8px); }
.tk-welcome-hero h1 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.5; text-shadow: 0 3px 18px #00192355; }
.tk-welcome-hero p { color: #e3edee; max-width: 460px; line-height: 2; }
.tk-hero-caption { color: #e8ddc2; margin-top: 24px; }
.tk-hero-caption span { background: #edcf91; box-shadow: 0 0 0 4px #edcf9118; }
.tk-welcome-hero .tk-pagehead__actions { min-width: 164px; gap: 10px; }
.tk-welcome-hero .btn { min-height: 46px; background: #062d41a6; backdrop-filter: blur(12px); border-color: #ffffff55; box-shadow: 0 4px 14px #00192322; transition: background .2s ease, transform .2s ease; }
.tk-welcome-hero .btn:first-child { background: #f0d79e; border-color: #f0d79e; color: #193e45; }
.tk-welcome-hero .btn:hover { transform: translateY(-2px); background: #0c4659; }
.tk-welcome-hero .btn:first-child:hover { background: #ffe8b9; }
body:has(.tk-sidebar) .dashboard-hero__inner { padding: 42px; min-height: 330px; display: flex; align-items: center; }
body:has(.tk-sidebar) .dashboard-hero__layout { width: 100%; }
body:has(.tk-sidebar) .dashboard-hero__text { max-width: 580px; text-align: start; }
body:has(.tk-sidebar) .dashboard-hero__title { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.5; }
body:has(.tk-sidebar) .dashboard-hero__visual { display: none; }
body:has(.tk-sidebar) .dashboard-hero__lead { color: #e3edee; }
body:has(.tk-sidebar) .dashboard-hero__badge { color: #f0d79e; background: #073b4b80; border: 1px solid #ffffff35; }
@media (max-width: 600px) {
  .tk-welcome-hero, body:has(.tk-sidebar) .dashboard-hero {
    background-image: linear-gradient(0deg, #04202d 0%, rgba(4,36,50,.96) 46%, rgba(4,36,50,.12) 100%), url('../images/hindhero.png');
    background-size: cover, auto 340px;
    background-repeat: no-repeat;
    background-position: center, center top;
    border-radius: 20px;
  }
  .tk-welcome-hero { min-height: 440px; padding: 125px 24px 26px; justify-content: flex-end; gap: 22px; }
  .tk-welcome-hero::after, body:has(.tk-sidebar) .dashboard-hero::after { inset-inline-start: 24px; }
  .tk-hero-eyebrow { margin-bottom: 12px; }
  .tk-welcome-hero h1 { font-size: 1.8rem; }
  .tk-welcome-hero p { font-size: .83rem; }
  .tk-hero-caption { margin-top: 18px; font-size: .67rem; }
  body:has(.tk-sidebar) .dashboard-hero__inner { padding: 150px 24px 30px; }
}
@media (prefers-reduced-motion: reduce) { .tk-sidebar, .tk-welcome-hero .btn { transition: none; } }
@media print { body:has(.tk-sidebar) { padding: 0 !important; } .tk-sidebar, .tk-topbar, .tk-sidebar-backdrop { display: none !important; } .tk-welcome-hero { color: #111; background: #fff; } .tk-welcome-hero h1, .tk-welcome-hero p { color: #111; } }
