/*
Theme Name: Talent Developments — Online School (Reference A & B Edition)
Theme URI: https://k12.lmssys.com
Author: Talent Developments Design & Engineering
Description: Native WordPress LMS, ERP, HRMS & Responsible AI theme implementing Section 20 Reference A (ONLINE SCHOOL / School Command Centre) and Reference B (ONLINE SCHOOL / Welcome back, Aisha!) with pixel-faithful visual design, WCAG 2.2 AA accessibility, and Arabic/Urdu RTL support.
Version: 2.0.0
License: GPLv2 or later
Text Domain: td-online-school
*/

:root {
  --td-primary: #5B2CCB;
  --td-primary-dark: #43209A;
  --td-primary-light: #7B52E1;
  --td-primary-soft: #EFE9FF;
  --td-text: #171039;
  --td-text-muted: #5E5682;
  --td-canvas: #F8F6FF;
  --td-surface: #FFFFFF;
  --td-sidebar: #F2ECFF;
  --td-border: #E5DEF8;
  --td-mint: #E6F8F0;
  --td-mint-text: #0F6A4B;
  --td-peach: #FFF1E6;
  --td-peach-text: #9A4212;
  --td-pink: #FDECF3;
  --td-pink-text: #941E5E;
  --td-lavender: #EFE9FF;
  --td-lavender-text: #43209A;
  --td-danger: #E0245E;
  --td-radius-card: 18px;
  --td-radius-sm: 12px;
  --td-sidebar-w: 245px;
  --td-topbar-h: 68px;
  --td-shadow: 0 4px 20px rgba(34, 21, 87, 0.05);
  --td-font: 'Poppins', 'Noto Sans Arabic', 'Noto Nastaliq Urdu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 80% 0%, #F4EFFF 0%, #F9F8FF 55%, #F5F2FF 100%);
  color: var(--td-text);
  font-family: var(--td-font);
  font-size: 13.5px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

a {
  color: var(--td-primary);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--td-primary);
  outline-offset: 2px;
}

/* =========================================================================
   APP SHELL & SIDEBAR (245px Lavender Sidebar + 68px White Header)
   ========================================================================= */
.td-shell {
  display: flex;
  min-height: 100vh;
}

.td-sidebar {
  width: var(--td-sidebar-w);
  min-width: var(--td-sidebar-w);
  background: linear-gradient(180deg, #F5F0FF 0%, #EFE7FF 65%, #E7DCFF 100%);
  border-inline-end: 1px solid var(--td-border);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
}

.td-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px 16px;
  margin-bottom: 8px;
}

.td-brand-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.td-brand-title {
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  color: #1E144F;
  line-height: 1.15;
}

.td-brand-sub {
  font-size: 11px;
  color: var(--td-text-muted);
  display: block;
  font-weight: 500;
  margin-top: 2px;
}

.td-nav-group {
  margin-bottom: 10px;
}

.td-nav-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4A3E78;
}

.td-nav-group-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #DCD1F6;
}

.td-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 13px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: #2A2153;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: start;
  cursor: pointer;
  transition: all 0.16s ease;
  margin-bottom: 2px;
}

.td-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #4D3B8C;
}

.td-nav-item:hover {
  background: rgba(91, 44, 203, 0.09);
  color: var(--td-primary-dark);
}

.td-nav-item.is-active {
  background: linear-gradient(90deg, #5627C6 0%, #441E9E 100%);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(86, 39, 198, 0.28);
}

.td-nav-item.is-active svg {
  color: #FFFFFF;
}

.td-nav-group-superadmin {
  background: rgba(91, 44, 203, 0.06);
  border: 1px dashed #CDBDF6;
  border-radius: 12px;
  padding: 6px;
  margin-top: 4px;
}

.td-sidebar-illustration {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

/* =========================================================================
   MAIN COLUMN & 68px TOP BAR
   ========================================================================= */
.td-main-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.td-topbar {
  height: var(--td-topbar-h);
  min-height: var(--td-topbar-h);
  background: #FFFFFF;
  border-bottom: 1px solid var(--td-border);
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.td-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.td-top-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.td-top-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #2A2153;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.td-top-tab svg {
  width: 17px;
  height: 17px;
  color: #4D3B8C;
}

.td-top-tab:hover {
  background: #F4EFFF;
}

.td-top-tab.is-active {
  background: linear-gradient(90deg, #5B2CCB 0%, #4821A6 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(91, 44, 203, 0.24);
}

.td-top-tab.is-active svg {
  color: #FFFFFF;
}

.td-top-divider {
  width: 1px;
  height: 24px;
  background: var(--td-border);
}

.td-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F6F3FF;
  border: 1px solid #EAE3FA;
  border-radius: 999px;
  padding: 8px 16px;
  width: 100%;
  max-width: 440px;
}

.td-search-box svg {
  width: 16px;
  height: 16px;
  color: #6B6190;
  flex-shrink: 0;
}

.td-search-box input {
  border: none;
  background: transparent;
  color: var(--td-text);
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  outline: none;
}

.td-search-box input::placeholder {
  color: #847BA6;
}

.td-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.td-notif-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #2A2153;
}

.td-notif-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #E52E5D;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.td-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.td-avatar-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5B2CCB, #EC6EAD);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.td-avatar-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--td-text);
  line-height: 1.2;
}

.td-avatar-sub {
  font-size: 11.5px;
  color: var(--td-text-muted);
  display: block;
}

.td-select-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--td-border);
  background: #F7F4FF;
  color: var(--td-text);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================================
   MAIN WORKSPACE CONTAINER
   ========================================================================= */
.td-content {
  padding: 22px 26px 32px;
  max-width: 1585px;
  width: 100%;
  margin: 0 auto;
}

.td-card {
  background: var(--td-surface);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-card);
  padding: 18px 20px;
  box-shadow: var(--td-shadow);
}

.td-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.td-page-title {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  color: #171039;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.td-page-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: #5E5682;
  font-weight: 400;
}

/* =========================================================================
   4 PASTEL KPI CARDS (Reference A & Reference B)
   ========================================================================= */
.td-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.td-kpi-card {
  border-radius: 16px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 14px rgba(23, 16, 57, 0.04);
}

.td-kpi-card.is-lavender {
  background: linear-gradient(135deg, #F3EEFF 0%, #EAE1FF 100%);
}
.td-kpi-card.is-mint {
  background: linear-gradient(135deg, #E8FAF2 0%, #D9F5E8 100%);
}
.td-kpi-card.is-peach {
  background: linear-gradient(135deg, #FFF3E8 0%, #FFE8D4 100%);
}
.td-kpi-card.is-pink {
  background: linear-gradient(135deg, #FDEEF5 0%, #FBDCEB 100%);
}

.td-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.td-kpi-card.is-lavender .td-kpi-icon {
  background: #E2D5FF;
  color: #5B2CCB;
}
.td-kpi-card.is-mint .td-kpi-icon {
  background: #C8F0DF;
  color: #0E8A5F;
}
.td-kpi-card.is-peach .td-kpi-icon {
  background: #FFE0C2;
  color: #D96B27;
}
.td-kpi-card.is-pink .td-kpi-icon {
  background: #F8C9DF;
  color: #C9336E;
}

.td-kpi-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #3B3263;
  display: block;
}

.td-kpi-value {
  font-size: 27px;
  font-weight: 800;
  color: #171039;
  line-height: 1.15;
  display: block;
}

/* =========================================================================
   REFERENCE A: 3 DOMAIN PILLAR CARDS (LMS, ERP, HRMS)
   ========================================================================= */
.td-tri-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.td-pillar-card {
  background: #FFFFFF;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-card);
  padding: 18px 20px;
  box-shadow: var(--td-shadow);
  display: flex;
  flex-direction: column;
}

.td-pillar-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.td-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #EFE9FF;
  color: var(--td-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.td-pillar-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--td-text);
}

.td-pillar-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--td-text-muted);
}

.td-mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.td-mini-stat {
  background: #F6F2FF;
  border-radius: 13px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.td-mini-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E6DCFF;
  color: var(--td-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.td-mini-stat-label {
  font-size: 11.5px;
  color: #4A4173;
  font-weight: 600;
  display: block;
}

.td-mini-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #171039;
  line-height: 1.15;
}

.td-subject-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.td-subject-mini-card {
  border-radius: 13px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.td-subject-mini-card.is-math { background: #E9F8EF; }
.td-subject-mini-card.is-sci  { background: #EAF5FF; }
.td-subject-mini-card.is-eng  { background: #FFF2E6; }

.td-subject-mini-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #171039;
}

/* Fee Collection Bar Chart in ERP Pillar */
.td-erp-chart-box {
  background: #FBF9FF;
  border: 1px solid #EFEAFD;
  border-radius: 13px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.td-chart-grid {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 104px;
  padding-top: 8px;
}

.td-chart-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 86px;
  font-size: 10px;
  color: #79709C;
  padding-bottom: 16px;
}

.td-chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  border-bottom: 1px solid #E5DEF8;
  padding-bottom: 4px;
}

.td-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.td-chart-bar {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #B598F9 0%, #C7B2FC 100%);
}

.td-chart-bar.is-highlight {
  background: linear-gradient(180deg, #5627C6 0%, #3E1A96 100%);
}

.td-chart-lbl {
  font-size: 10.5px;
  color: #5E5682;
  font-weight: 500;
}

/* HRMS Donut Chart */
.td-hrms-attendance-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.td-hrms-legend {
  flex: 1;
  background: #FBF9FF;
  border: 1px solid #EFEAFD;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.td-hrms-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.td-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-inline-end: 7px;
}

/* =========================================================================
   REFERENCE A & B: BOTTOM ROW (Schedule, Approvals, AI Assistant)
   ========================================================================= */
.td-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.td-schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #F8F5FF;
}

.td-approval-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F0EBFC;
}

.td-approval-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.td-ai-card {
  background: linear-gradient(145deg, #F6F1FF 0%, #EDE4FF 100%);
  border: 1px solid #DECFFB;
  border-radius: var(--td-radius-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.td-ai-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #DDD0FA;
  border-radius: 12px;
  padding: 6px 8px 6px 12px;
  margin: 12px 0;
}

.td-ai-input-wrap input {
  border: none;
  background: transparent;
  flex: 1;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--td-text);
  outline: none;
}

.td-ai-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #5B2CCB, #43209A);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.td-ai-chip-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.td-ai-chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #DFD3FA;
  background: rgba(255, 255, 255, 0.78);
  color: #2A2153;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.td-ai-chip:hover {
  background: #FFFFFF;
  border-color: var(--td-primary);
}

/* =========================================================================
   REFERENCE B: STUDENT WORKSPACE (Welcome back, Aisha!)
   ========================================================================= */
.td-student-top-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(320px, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.td-welcome-banner {
  background: linear-gradient(115deg, #F3EEFF 0%, #E7DCFF 58%, #DDD0FF 100%);
  border: 1px solid #DFD2FC;
  border-radius: 20px;
  padding: 22px 26px 0 28px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 178px;
}

.td-welcome-copy {
  padding-bottom: 22px;
  z-index: 2;
}

.td-welcome-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: #171039;
  letter-spacing: -0.015em;
}

.td-welcome-sub {
  margin: 0 0 18px;
  font-size: 15px;
  color: #4A4173;
}

.td-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.td-course-card {
  background: var(--td-surface);
  border: 1px solid var(--td-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--td-shadow);
}

.td-course-art {
  height: 110px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.td-course-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.td-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
}

.td-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #ECE6FA;
  overflow: hidden;
}

.td-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5B2CCB 0%, #43209A 100%);
}

/* Student Bottom 4-Column Row */
.td-student-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1.1fr 1fr;
  gap: 16px;
}

/* Calendar Widget */
.td-cal-grid {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 12.5px;
}

.td-cal-grid th {
  font-weight: 600;
  color: #6B6190;
  padding: 6px 2px;
  font-size: 11.5px;
}

.td-cal-grid td {
  padding: 6px 2px;
  color: #171039;
  font-weight: 500;
}

.td-cal-grid td.is-muted {
  color: #B4ACC9;
}

.td-cal-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border-radius: 8px;
  background: var(--td-primary);
  color: #FFFFFF;
  font-weight: 700;
}

/* =========================================================================
   BUTTONS, BADGES, TABLES & FORMS
   ========================================================================= */
.td-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.td-btn:hover {
  transform: translateY(-1px);
}

.td-btn-primary {
  background: linear-gradient(90deg, #5B2CCB 0%, #441E9E 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(91, 44, 203, 0.25);
}

.td-btn-secondary {
  background: #FFFFFF;
  color: var(--td-primary);
  border-color: #C7B6F5;
}

.td-btn-secondary:hover {
  background: #F6F2FF;
}

.td-btn-danger {
  background: var(--td-danger);
  color: #FFFFFF;
}

.td-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.td-badge-lavender { background: #EFE9FF; color: #5B2CCB; }
.td-badge-mint     { background: #E3F8EE; color: #0F7A56; }
.td-badge-peach    { background: #FFF0E2; color: #B85418; }
.td-badge-pink     { background: #FDE8F1; color: #D62865; }
.td-badge-live     { background: #FFE6EE; color: #E0245E; font-weight: 700; }

.td-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.td-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.td-table th,
.td-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--td-border);
  text-align: start;
}

.td-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--td-text-muted);
  background: var(--td-canvas);
}

.td-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.td-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.td-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--td-text);
}

.td-field input,
.td-field select,
.td-field textarea {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--td-border);
  background: var(--td-canvas);
  color: var(--td-text);
  font-family: inherit;
  font-size: 13px;
}

.td-alert {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--td-border);
  background: var(--td-lavender);
  color: var(--td-lavender-text);
  font-size: 12.5px;
  margin-bottom: 14px;
}

/* Responsive Breakpoints */
@media (max-width: 1280px) {
  .td-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .td-tri-grid,
  .td-course-grid,
  .td-student-top-layout,
  .td-student-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .td-shell {
    flex-direction: column;
  }
  .td-sidebar {
    width: 100%;
    height: auto;
    position: static;
  }
  .td-sidebar-illustration {
    display: none;
  }
  .td-form-grid,
  .td-kpi-grid {
    grid-template-columns: 1fr;
  }
}
