/* ==========================================================
   1. DESIGN TOKENS
========================================================== */

:root {
  /* Brand */
  --blue-900: #10294d;
  --blue-800: #173863;
  --blue-700: #1e4a82;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #73a8ff;

  /* Layout */
  --login-background: #173f73;
  --sidebar-background: #112850;
  --page-background: #f1f5f9;
  --surface: #ffffff;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* Border */
  --border: #dbe3ef;
  --border-soft: #edf1f5;

  /* Status */
  --success: #059669;
  --warning: #ea580c;
  --danger: #dc2626;

  /* UI */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);

  --shadow-md: 0 5px 15px rgba(15, 23, 42, 0.05);
}

/* ==========================================================
   2. RESET
========================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--text-primary);
  background: var(--page-background);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

/* ==========================================================
   3. LOGIN
========================================================== */

.login-page {
  display: grid;

  grid-template-columns:
    minmax(520px, 1.5fr)
    minmax(430px, 0.75fr);

  min-height: 100vh;
}

/* ----------------------------------------------------------
   Login Hero
---------------------------------------------------------- */

.login-hero {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 100vh;
  padding: 36px 36px 20px;

  overflow: hidden;

  color: #ffffff;
  background: var(--login-background);
}

.login-brand {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 31px;
  height: 31px;

  border-radius: 9px;

  color: #ffffff;
  background: #2878ff;
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-name strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand-name span {
  margin-top: 2px;

  color: #78adff;

  font-size: 8px;
}

.hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 580px;

  margin-top: auto;
  margin-bottom: auto;
}

.hero-content h1 {
  margin: 0 0 18px;

  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1.13;

  letter-spacing: -1.3px;
}

.hero-content h1 span {
  color: #70a9ff;
}

.hero-content p {
  max-width: 510px;
  margin: 0;

  color: #e0ebfa;

  font-size: 15px;
  line-height: 1.65;
}

/* ----------------------------------------------------------
   Login Feature Cards
---------------------------------------------------------- */

.feature-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 13px;

  margin-top: 32px;
}

.feature-card {
  min-height: 74px;
  padding: 14px;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(6px);
}

.feature-icon {
  margin-bottom: 10px;

  font-size: 18px;
}

.feature-card span {
  font-size: 11px;
  font-weight: 600;
}

.hero-footer {
  position: relative;
  z-index: 2;

  color: #72a6dc;

  font-size: 10px;
}

/* ----------------------------------------------------------
   Login Right
---------------------------------------------------------- */

.login-section {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100vh;

  padding: 34px 26px;

  background: var(--login-background);
}

.login-card {
  width: 100%;
  max-width: 440px;

  padding: 30px 30px 24px;

  border-radius: var(--radius-lg);

  background: #ffffff;

  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.15);
}

.login-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 25px;
}

.login-card-header h2 {
  margin: 0 0 3px;

  font-size: 21px;
  letter-spacing: -0.4px;
}

.login-card-header p {
  margin: 0;

  color: var(--text-secondary);

  font-size: 12px;
}

/* ----------------------------------------------------------
   Language
---------------------------------------------------------- */

.language-form,
.topbar-language-form {
  margin: 0;
}

.language-badge,
.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  border: 1px solid var(--border);

  color: #475569;
  background: #ffffff;

  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.language-badge {
  padding: 6px 9px;

  border-radius: 7px;

  font-size: 11px;
}

.language-button {
  padding: 8px 13px;

  border-radius: 10px;

  font-size: 13px;
}

.language-badge:hover,
.language-button:hover {
  color: var(--blue-600);

  border-color: #93b4f7;

  background: #f8fbff;
}

/* ----------------------------------------------------------
   Login Form
---------------------------------------------------------- */

.login-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 17px;
}

.form-group label {
  display: block;

  margin-bottom: 8px;

  color: #1e293b;

  font-size: 12px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  height: 43px;

  padding: 0 13px;

  border: 1px solid #ccd6e4;
  border-radius: 7px;

  color: #1e293b;
  background: #ffffff;

  outline: none;

  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus {
  border-color: #6d9df6;

  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-wrapper {
  position: relative;
}

.password-wrapper .form-control {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;

  top: 50%;
  right: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;

  color: #94a3b8;
  background: transparent;

  transform: translateY(-50%);
}

.forgot-wrapper {
  display: flex;
  justify-content: flex-end;

  margin: -4px 0 15px;
}

.forgot-wrapper a {
  color: var(--blue-600);

  font-size: 11px;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  width: 100%;
  height: 43px;

  border: 0;
  border-radius: 7px;

  color: #ffffff;

  background: linear-gradient(90deg, #87aaf8, #7da3f8);

  font-size: 12px;
  font-weight: 700;

  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.login-button:hover {
  background: linear-gradient(90deg, #729cf6, #6894f5);

  box-shadow: 0 7px 20px rgba(59, 130, 246, 0.22);

  transform: translateY(-1px);
}

.login-security {
  display: flex;
  align-items: center;

  gap: 8px;

  margin-top: 25px;
  padding: 11px 12px;

  border-radius: 8px;

  color: #64748b;
  background: #f6f8fb;

  font-size: 10px;
}

.security-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 16px;
  height: 16px;

  border: 1px solid #56c9a1;
  border-radius: 50%;

  color: #20aa7a;

  font-size: 9px;
}

.alert-error {
  margin-bottom: 17px;

  padding: 10px 12px;

  border: 1px solid #fecaca;
  border-radius: 7px;

  color: #b91c1c;
  background: #fef2f2;

  font-size: 11px;
}

.field-error {
  display: block;

  margin-top: 5px;

  color: var(--danger);

  font-size: 10px;
}

/* ==========================================================
   4. APPLICATION LAYOUT
========================================================== */

.dashboard-layout {
  display: grid;

  grid-template-columns: 260px minmax(0, 1fr);

  min-height: 100vh;

  background: var(--page-background);
}

/* ==========================================================
   5. SIDEBAR
========================================================== */

.sidebar {
  position: sticky;
  top: 0;

  display: flex;
  flex-direction: column;

  height: 100vh;

  padding: 22px 10px;

  color: #ffffff;
  background: var(--sidebar-background);
}

.sidebar-brand {
  display: flex;
  align-items: center;

  gap: 12px;

  padding: 0 12px 28px;
}

.sidebar-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border-radius: 11px;

  color: #ffffff;
  background: #2878ff;
}

.sidebar-brand-icon svg {
  width: 21px;
  height: 21px;
}

.sidebar-brand strong,
.sidebar-brand small {
  display: block;
}

.sidebar-brand strong {
  font-size: 17px;
}

.sidebar-brand small {
  color: #a9c7f5;

  font-size: 12px;
}

.sidebar-role {
  margin: 10px 12px 25px;

  padding: 11px 16px;

  border-radius: 10px;

  color: #66abff;

  background: rgba(255, 255, 255, 0.07);

  font-weight: 700;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;

  gap: 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;

  gap: 14px;

  padding: 14px 16px;

  border-radius: 10px;

  color: #bdcbe0;

  font-size: 15px;
  font-weight: 500;

  transition:
    color 0.2s,
    background 0.2s;
}

.sidebar-item:hover {
  color: #ffffff;

  background: rgba(255, 255, 255, 0.06);
}

.sidebar-item.active {
  color: #ffffff;

  background: #173e82;
}

.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 22px;
  height: 22px;

  color: #7ca0cf;
}

.menu-icon svg {
  width: 20px;
  height: 20px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-item.active .menu-icon {
  color: #55a5ff;
}

.sidebar-footer {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-top: auto;

  padding: 18px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: #bdcbe0;
}

/* ==========================================================
   6. TOPBAR
========================================================== */

.dashboard-main {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 70px;

  padding: 0 32px;

  border-bottom: 1px solid #dde4ee;

  background: #ffffff;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  padding: 0;

  border: 0;
  border-radius: 8px;

  color: #64748b;
  background: transparent;
}

.menu-toggle:hover {
  background: #f1f5f9;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.topbar-right {
  display: flex;
  align-items: center;

  gap: 18px;
}

.notification-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  padding: 0;

  border: 0;
  border-radius: 9px;

  color: #64748b;
  background: transparent;
}

.notification-button:hover {
  background: #f1f5f9;
}

.notification-button svg {
  width: 19px;
  height: 19px;
}

.user-profile {
  display: flex;
  align-items: center;

  gap: 10px;
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  color: #ffffff;
  background: #635bff;

  font-size: 13px;
  font-weight: 700;
}

.user-info strong,
.user-info span {
  display: block;
}

.user-info strong {
  color: #0f172a;

  font-size: 14px;
}

.user-info span {
  margin-top: 2px;

  color: #8492aa;

  font-size: 13px;
}

.logout-mini {
  display: grid;
  place-items: center;

  width: 32px;
  height: 32px;

  padding: 0;

  border: 1px solid #e0e6ee;
  border-radius: 8px;

  color: #64748b;
  background: #ffffff;
}

.logout-mini:hover {
  color: var(--danger);

  border-color: #fecaca;

  background: #fff5f5;
}

/* ==========================================================
   7. MAIN CONTENT
========================================================== */

.dashboard-content {
  padding: 32px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 28px;
}

.page-heading h1 {
  margin: 4px 0 6px;

  color: var(--text-primary);

  font-size: 28px;
  font-weight: 700;

  line-height: 1.2;

  letter-spacing: -0.5px;
}

.page-heading p {
  margin: 0;

  color: var(--text-secondary);

  font-size: 14px;
}

.page-eyebrow {
  color: var(--blue-600);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 1.2px;
}

.page-heading-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}

/* ==========================================================
   8. BUTTONS
========================================================== */

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 42px;

  padding: 10px 16px;

  border-radius: 9px;

  font-size: 13px;
  font-weight: 700;

  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.primary-action {
  border: 1px solid #1765f5;

  color: #ffffff;
  background: #1765f5;

  box-shadow: 0 4px 10px rgba(23, 101, 245, 0.18);
}

.primary-action:hover {
  background: #0f57db;
}

.secondary-action {
  border: 1px solid #cad5e3;

  color: #17304f;
  background: #ffffff;
}

.secondary-action:hover {
  border-color: #9fb2ca;

  background: #f8fafc;
}

.secondary-action.compact {
  min-height: 34px;

  padding: 7px 12px;

  font-size: 12px;
}

/* ==========================================================
   9. DASHBOARD STATISTICS
========================================================== */

.dashboard-stats {
  display: grid;

  grid-template-columns: repeat(6, minmax(0, 1fr));

  gap: 18px;

  margin-bottom: 32px;
}

.dashboard-stat-card {
  position: relative;

  display: flex;
  align-items: center;

  gap: 15px;

  min-height: 126px;

  padding: 20px;

  overflow: hidden;

  border: 1px solid #e0e7f0;
  border-radius: 15px;

  background: #ffffff;

  box-shadow: var(--shadow-sm), var(--shadow-md);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.dashboard-stat-card:hover {
  border-color: #ccd8e8;

  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);

  transform: translateY(-2px);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 54px;
  height: 54px;

  border-radius: 14px;
}

.stat-icon svg {
  width: 25px;
  height: 25px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-content {
  min-width: 0;
}

.stat-content .stat-label {
  display: block;

  overflow: hidden;

  margin-bottom: 5px;

  color: #64748b;

  font-size: 12px;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-content strong {
  display: block;

  margin: 0;

  color: #0f172a;

  font-size: 27px;
  font-weight: 700;

  letter-spacing: -0.7px;
}

.stat-content small {
  display: block;

  margin-top: 4px;

  color: #94a3b8;

  font-size: 10px;
}

.stat-icon.blue {
  color: #2563eb;
  background: #eff6ff;
}

.stat-icon.indigo {
  color: #4f46e5;
  background: #eef2ff;
}

.stat-icon.cyan {
  color: #0891b2;
  background: #ecfeff;
}

.stat-icon.purple {
  color: #9333ea;
  background: #faf5ff;
}

.stat-icon.orange {
  color: #ea580c;
  background: #fff7ed;
}

.stat-icon.green {
  color: #059669;
  background: #ecfdf5;
}

/* ==========================================================
   10. DASHBOARD PANELS
========================================================== */

.dashboard-row {
  display: grid;

  gap: 32px;

  margin-bottom: 32px;
}

.dashboard-row-main {
  grid-template-columns:
    minmax(0, 2fr)
    minmax(300px, 1fr);
}

.dashboard-row-bottom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-panel {
  overflow: hidden;

  border: 1px solid #e0e7f0;
  border-radius: 16px;

  background: #ffffff;

  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 78px;

  padding: 16px 22px;

  border-bottom: 1px solid #edf1f6;
}

.panel-title > h2 {
  margin: 0;

  font-size: 17px;
}

.panel-title a {
  color: #1667ff;

  font-size: 13px;
  font-weight: 600;
}

.panel-title-left {
  display: flex;
  align-items: center;

  gap: 12px;
}

.panel-title-left h2 {
  margin: 0 0 3px;

  color: #0f172a;

  font-size: 16px;
  font-weight: 700;
}

.panel-title-left p {
  margin: 0;

  color: #94a3b8;

  font-size: 11px;
}

.panel-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 36px;
  height: 36px;

  border-radius: 10px;
}

.panel-title-icon svg {
  width: 18px;
  height: 18px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-title-icon.blue {
  color: #2563eb;
  background: #eff6ff;
}

.panel-title-icon.purple {
  color: #9333ea;
  background: #faf5ff;
}

.panel-title-icon.orange {
  color: #ea580c;
  background: #fff7ed;
}

.panel-title-icon.green {
  color: #059669;
  background: #ecfdf5;
}

/* ==========================================================
   11. CHART
========================================================== */

.chart-area {
  display: flex;

  height: 260px;

  padding: 32px 32px 0;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 35px;

  padding-bottom: 30px;

  color: #8ba0bd;

  font-size: 12px;
}

.chart-body {
  position: relative;

  flex: 1;
}

.chart-grid-line {
  position: absolute;

  left: 0;
  right: 0;

  height: 1px;

  border-top: 1px dashed #e8edf5;
}

.chart-grid-line:nth-child(1) {
  top: 0;
}

.chart-grid-line:nth-child(2) {
  top: 25%;
}

.chart-grid-line:nth-child(3) {
  top: 50%;
}

.chart-grid-line:nth-child(4) {
  top: 75%;
}

.chart-grid-line:nth-child(5) {
  bottom: 30px;
}

.chart-columns {
  position: absolute;

  inset: 0;

  display: flex;
  justify-content: space-around;
}

.chart-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;

  width: 12%;

  color: #8ba0bd;

  font-size: 12px;
}

.bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;

  gap: 4px;

  width: 100%;
  height: 200px;
}

.bar {
  width: 12px;
  min-height: 3px;

  border-radius: 3px 3px 0 0;
}

.bar.aktif {
  background: #387ef2;
}

.bar.selesai {
  background: #10b981;
}

.bar.terlambat {
  background: #ef4444;
}

.chart-month > span {
  margin-top: 10px;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 22px;

  padding: 15px 20px 22px;
}

.legend-item {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  color: #64748b;

  font-size: 12px;
}

.legend-dot {
  display: inline-block;

  width: 8px;
  height: 8px;

  border-radius: 50%;
}

.blue-dot {
  background: #3b82f6;
}

.green-dot {
  background: #10b981;
}

.red-dot {
  background: #ef4444;
}

/* ==========================================================
   12. STAGE DISTRIBUTION
========================================================== */

.stage-list {
  padding: 22px;
}

.stage-item {
  margin-bottom: 18px;
}

.stage-item:last-child {
  margin-bottom: 0;
}

.stage-header {
  display: flex;
  justify-content: space-between;

  margin-bottom: 8px;
}

.stage-header span {
  color: #475569;

  font-size: 12px;
  font-weight: 500;
}

.stage-header strong {
  color: #64748b;

  font-size: 12px;
  font-weight: 700;
}

.stage-progress {
  overflow: hidden;

  height: 7px;

  border-radius: 999px;

  background: #edf1f6;
}

.stage-progress-fill {
  height: 100%;

  border-radius: 999px;

  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

/* ==========================================================
   13. ATTENTION
========================================================== */

.attention-title {
  position: relative;
}

.attention-count {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  border: 1px solid #ffbebe;
  border-radius: 50%;

  color: #ef4444;
  background: #fff7f7;

  font-size: 12px;
  font-weight: 700;
}

.attention-item {
  display: flex;
  align-items: center;

  gap: 15px;

  padding: 18px 22px;

  border-bottom: 1px solid #eef2f6;
}

.attention-item:last-child {
  border-bottom: 0;
}

.student-avatar,
.activity-avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  color: #ffffff;

  font-size: 13px;
  font-weight: 700;
}

.student-avatar {
  background: #f32b91;
}

.blue-avatar {
  background: #2684ff;
}

.attention-info {
  flex: 1;

  min-width: 0;
}

.attention-info strong,
.attention-info span {
  display: block;
}

.attention-info strong {
  margin-bottom: 4px;

  font-size: 14px;
}

.attention-info span {
  overflow: hidden;

  color: #617391;

  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================
   14. STATUS BADGES
========================================================== */

.status-pill,
.status-badge,
.role-badge,
.code-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
}

.status-pill {
  gap: 6px;

  padding: 5px 10px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
}

.status-dot {
  display: inline-block;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: currentColor;
}

.status-pill.waiting {
  color: #008d80;

  border: 1px solid #5ce0cc;

  background: #eafffb;
}

.status-pill.late {
  color: #ee2020;

  border: 1px solid #ffb7b7;

  background: #fff3f3;
}

/* ==========================================================
   15. ACTIVITY
========================================================== */

.activity-item {
  display: flex;
  align-items: center;

  gap: 15px;

  padding: 16px 22px;

  border-bottom: 1px solid #eef2f6;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-avatar {
  background: #5b5ef7;
}

.activity-info {
  min-width: 0;
}

.activity-info p {
  margin: 0 0 4px;

  color: #34445f;

  font-size: 13px;
  line-height: 1.5;
}

.activity-info > span {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  color: #8898b3;

  font-size: 11px;
}

.time-icon {
  display: inline-flex;
}

.time-icon svg {
  width: 12px;
  height: 12px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================
   16. EMPTY STATE
========================================================== */

.empty-dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 130px;

  padding: 25px;

  color: #94a3b8;

  font-size: 12px;

  text-align: center;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border-radius: 12px;

  color: #94a3b8;
  background: #f1f5f9;
}

.empty-icon svg {
  width: 21px;
  height: 21px;
}

.empty-icon.success {
  color: #059669;

  background: #ecfdf5;
}

.empty-page,
.empty-table {
  padding: 36px;

  color: #8291a8;

  text-align: center;
}

/* ==========================================================
   17. ADMIN SHARED CARDS
========================================================== */

.admin-card-grid,
.class-card-grid,
.rubric-card-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.entity-card,
.class-manage-card,
.rubric-card,
.form-panel,
.table-panel,
.preview-table-panel {
  border: 1px solid #dbe3ec;
  border-radius: 14px;

  background: #ffffff;

  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
}

/* ----------------------------------------------------------
   Entity Cards
---------------------------------------------------------- */

.entity-card {
  min-height: 174px;

  padding: 20px;
}

.entity-card-top,
.entity-bottom,
.rubric-card-head,
.class-card-title,
.preview-heading-actions,
.builder-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.entity-icon {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  border-radius: 10px;

  color: #1765f5;
  background: #eaf2ff;
}

.entity-icon svg {
  width: 19px;
  height: 19px;
}

.entity-card h3,
.rubric-card h3,
.class-manage-card h3 {
  margin: 14px 0 4px;

  color: #101828;

  font-size: 15px;
}

.entity-code,
.class-card-title small,
.rubric-card p {
  margin: 0;

  color: #6a7d99;

  font-size: 12px;
}

.entity-metric {
  margin-top: 16px;
}

.entity-metric strong,
.entity-metric span {
  display: block;
}

.entity-metric strong {
  font-size: 26px;
}

.entity-metric span {
  margin-top: 2px;

  color: #8798b5;

  font-size: 11px;
}

/* ==========================================================
   18. GENERIC BADGES
========================================================== */

.code-pill,
.status-badge,
.role-badge {
  padding: 4px 9px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
}

.code-pill {
  color: #405370;

  border: 1px solid #e0e6ee;

  background: #f1f5f9;
}

.status-badge {
  color: #17765a;

  border: 1px solid #a8ebcf;

  background: #ecfdf3;
}

.status-muted,
.status-tidak_aktif {
  color: #64748b;

  border-color: #dbe3ec;

  background: #f1f5f9;
}

.status-selesai {
  color: #0e7c55;

  background: #ecfdf3;
}

.status-draft {
  color: #81580b;

  border-color: #f2d68f;

  background: #fff8e7;
}

/* ==========================================================
   19. TOOLBAR / INPUT
========================================================== */

.toolbar-search {
  display: flex;

  margin-bottom: 18px;
}

.search-input,
.filter-select,
.admin-input,
.admin-select {
  width: 100%;
  min-height: 42px;

  padding: 9px 12px;

  border: 1px solid #d4deeb;
  border-radius: 9px;

  color: #10233f;
  background: #ffffff;

  outline: none;

  font-size: 13px;

  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.search-input {
  max-width: 330px;
}

.search-input:focus,
.filter-select:focus,
.admin-input:focus,
.admin-select:focus {
  border-color: #75a6fb;

  box-shadow: 0 0 0 3px rgba(23, 101, 245, 0.09);
}

textarea.admin-input {
  min-height: 92px;

  resize: vertical;
}

.admin-select-multiple {
  min-height: 120px;
}

/* ==========================================================
   20. TABLE
========================================================== */

.table-panel {
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;

  gap: 12px;

  padding: 18px;

  border-bottom: 1px solid #edf1f5;
}

.table-toolbar .filter-select {
  width: 170px;
}

.table-scroll {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;

  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 18px;

  border-bottom: 1px solid #edf1f5;

  text-align: left;
  vertical-align: middle;

  font-size: 12px;
}

.admin-table th {
  color: #5b6f8f;
  background: #fbfcfe;

  font-size: 10px;
  letter-spacing: 0.04em;

  text-transform: uppercase;
}

.admin-table tbody tr:hover {
  background: #fbfdff;
}

.person-cell {
  display: flex;
  align-items: center;

  gap: 10px;
}

.person-avatar {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  border-radius: 50%;

  color: #ffffff;
  background: #5a61ff;

  font-size: 10px;
  font-weight: 800;
}

.person-avatar.role-dosen {
  background: #0fb883;
}

.person-avatar.role-mahasiswa {
  background: #2f80ed;
}

.person-avatar.role-admin {
  background: #6c63ff;
}

.role-badge.role-admin {
  color: #7a24bd;

  border: 1px solid #eac9ff;

  background: #faf1ff;
}

.role-badge.role-dosen {
  color: #155bdd;

  border: 1px solid #bcd4ff;

  background: #eff5ff;
}

.role-badge.role-mahasiswa {
  color: #007a56;

  border: 1px solid #a7e9d2;

  background: #eafff6;
}

.mono-text {
  color: #5e7392;

  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ==========================================================
   21. FORM
========================================================== */

.form-panel {
  padding: 24px;
}

.narrow-form-panel {
  max-width: 780px;
}

.form-grid {
  display: grid;

  grid-template-columns: 1fr;

  gap: 18px;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field.full-span {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;

  margin-bottom: 7px;

  color: #172b4d;

  font-size: 12px;
  font-weight: 700;
}

.form-check-input {
  width: 18px;
  height: 18px;
}

.required {
  color: #ef4444;
}

.help-text {
  display: block;

  margin-top: 5px;

  color: #7a8da8;

  font-size: 11px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;

  gap: 10px;

  margin-top: 24px;
  padding-top: 18px;

  border-top: 1px solid #edf1f5;
}

.form-error-banner,
.flash-message {
  margin-bottom: 18px;

  padding: 12px 14px;

  border-radius: 9px;

  font-size: 12px;
}

.form-error-banner,
.flash-message.error {
  color: #a62a2a;

  border: 1px solid #ffcaca;

  background: #fff1f1;
}

.flash-message.success {
  color: #087253;

  border: 1px solid #a6e8cf;

  background: #ecfdf5;
}

/* ==========================================================
   22. CLASS MANAGEMENT
========================================================== */

.class-manage-card {
  padding: 18px;
}

.class-card-title h3 {
  margin-top: 0;
}

.class-info {
  margin: 18px 0;
}

.class-info p {
  display: grid;

  grid-template-columns: 105px minmax(0, 1fr);

  gap: 10px;

  margin: 9px 0;

  font-size: 12px;
}

.class-info p span {
  color: #8a9ab3;
}

.class-info p strong {
  color: #334662;

  font-weight: 600;
}

.class-counts {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  padding-top: 16px;

  border-top: 1px solid #edf1f5;
}

.class-counts div {
  text-align: center;
}

.class-counts strong,
.class-counts span {
  display: block;
}

.class-counts strong {
  font-size: 18px;
}

.class-counts span {
  margin-top: 4px;

  color: #8595ae;

  font-size: 11px;
}

/* ==========================================================
   23. RUBRIC
========================================================== */

.rubric-card {
  padding: 20px;
}

.rubric-card-head h3 {
  margin-top: 0;
}

.rubric-meta {
  display: grid;

  gap: 7px;

  margin-top: 15px;

  color: #7a8da8;

  font-size: 11px;
}

.rubric-meta strong {
  color: #425675;
}

.rubric-actions {
  margin-top: 18px;
}

.weight-indicator {
  display: inline-flex;
  align-items: center;

  min-height: 34px;

  padding: 7px 11px;

  border: 1px solid #f2d68f;
  border-radius: 8px;

  color: #7d5a14;
  background: #fff8e7;

  font-size: 12px;
}

.weight-indicator.weight-valid {
  color: #087253;

  border-color: #a6e8cf;

  background: #ecfdf5;
}

.rubric-main-form {
  margin-bottom: 18px;
}

/* ----------------------------------------------------------
   Criteria Builder
---------------------------------------------------------- */

.criteria-builder {
  display: grid;

  gap: 14px;
}

.criteria-form-card {
  padding: 20px;

  border: 1px solid #dbe3ec;
  border-radius: 14px;

  background: #ffffff;
}

.criteria-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 18px;
}

.criteria-form-head h3 {
  margin: 0;

  font-size: 15px;
}

.delete-check {
  color: #b42318;

  font-size: 11px;
}

.builder-actions {
  margin-top: 18px;
}

.builder-actions > div {
  display: flex;

  gap: 10px;
}

/* ----------------------------------------------------------
   Rubric Preview
---------------------------------------------------------- */

.preview-table-panel {
  overflow-x: auto;

  padding: 14px;
}

.rubric-preview-table {
  width: 100%;
  min-width: 980px;

  border-collapse: collapse;
}

.rubric-preview-table th,
.rubric-preview-table td {
  padding: 14px 12px;

  border-bottom: 1px solid #e8edf4;

  text-align: left;
  vertical-align: top;

  font-size: 11px;
  line-height: 1.45;
}

.rubric-preview-table th {
  color: #ffffff;
  background: #101b32;
}

.rubric-preview-table td:first-child strong,
.rubric-preview-table td:first-child small {
  display: block;
}

.rubric-preview-table td:first-child small {
  margin-top: 4px;

  color: #7487a2;
}

.score-four {
  background: #f0fcf7;
}

.score-three {
  background: #f1f6ff;
}

.score-two {
  background: #fffaf0;
}

.score-one {
  background: #fff4f4;
}

/* ==========================================================
   24. RESPONSIVE - LARGE TABLET
========================================================== */

@media (max-width: 1400px) {
  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================
   25. RESPONSIVE - TABLET
========================================================== */

@media (max-width: 1000px) {
  .login-page {
    grid-template-columns: 1fr 420px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .feature-grid {
    grid-template-columns: 1fr;

    max-width: 300px;
  }

  .feature-card {
    min-height: auto;
  }

  .dashboard-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .dashboard-row-main,
  .dashboard-row-bottom {
    grid-template-columns: 1fr;
  }

  .admin-card-grid,
  .class-card-grid,
  .rubric-card-grid {
    grid-template-columns: 1fr;
  }

  .form-grid.two-col {
    grid-template-columns: 1fr;
  }

  .form-field.full-span-mobile {
    grid-column: 1 / -1;
  }
}

/* ==========================================================
   26. RESPONSIVE - MOBILE
========================================================== */

@media (max-width: 760px) {
  .login-page {
    display: block;
  }

  .login-hero {
    display: none;
  }

  .login-section {
    min-height: 100vh;

    padding: 20px;

    background: var(--login-background);
  }

  .login-card {
    max-width: 430px;

    padding: 28px 22px;
  }

  /* Dashboard */

  .dashboard-layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .sidebar.sidebar-open {
    position: fixed;
    z-index: 1000;

    inset: 0 auto 0 0;

    display: flex;

    width: 250px;
  }

  .topbar {
    padding: 0 18px;
  }

  .user-info {
    display: none;
  }

  .dashboard-content {
    padding: 22px 16px;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Page */

  .page-heading,
  .page-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }

  /* Forms / Toolbar */

  .builder-actions,
  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-actions > div {
    width: 100%;
  }

  .primary-action,
  .secondary-action,
  .search-input,
  .table-toolbar .filter-select {
    width: 100%;
    max-width: none;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .primary-action,
  .form-actions .secondary-action {
    width: 100%;
  }

  /* Chart */

  .chart-area {
    padding-left: 15px;
    padding-right: 15px;
  }

  .chart-legend {
    flex-wrap: wrap;
  }

  /* Attention */

  .attention-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .attention-info {
    min-width: calc(100% - 60px);
  }

  .attention-item .status-pill {
    margin-left: 55px;
  }
}

/* ==========================================================
   27. RESPONSIVE - SMALL MOBILE
========================================================== */

@media (max-width: 500px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-card {
    min-height: 105px;
  }

  .dashboard-row {
    gap: 20px;
    margin-bottom: 20px;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .topbar-right {
    gap: 8px;
  }
}

/* ==========================================================
   BASE ICONS
========================================================== */

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-icon,
.menu-icon,
.sidebar-footer-icon,
.role-icon,
.topbar-icon,
.language-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 auto;
}

.sidebar-brand-icon svg {
  width: 21px;
  height: 21px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-icon svg {
  width: 20px;
  height: 20px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.role-icon {
  width: 18px;
  height: 18px;
}

.role-icon svg {
  width: 17px;
  height: 17px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-role {
  display: flex;

  align-items: center;

  gap: 9px;
}

.sidebar-footer-icon {
  width: 21px;
  height: 21px;
}

.sidebar-footer-icon svg {
  width: 20px;
  height: 20px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================
   TOPBAR ICON
========================================================== */

.topbar-icon {
  width: 22px;
  height: 22px;
}

.topbar-icon svg {
  width: 21px;
  height: 21px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================
   LANGUAGE ICON
========================================================== */

.language-icon {
  width: 16px;
  height: 16px;
}

.language-icon svg {
  width: 15px;
  height: 15px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================
   LOGOUT
========================================================== */

.logout-form {
  margin: 0;
}

.logout-mini svg {
  width: 16px;
  height: 16px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================
   NOTIFICATION
========================================================== */

.notification-button {
  position: relative;
}

.notification-button:hover {
  color: #2563eb;
}

/* jika nanti ada notifikasi baru */

.notification-button.has-notification::after {
  position: absolute;

  top: 7px;
  right: 7px;

  width: 6px;
  height: 6px;

  border: 2px solid #ffffff;
  border-radius: 50%;

  background: #ef4444;

  content: "";
}

/* ==========================================================
   INLINE SVG ACTION ICONS
========================================================== */

.action-icon,
.feature-icon,
.password-eye-icon,
.button-arrow-icon,
.account-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.action-icon {
  width: 17px;
  height: 17px;
}

.action-icon svg,
.button-arrow-icon svg {
  width: 16px;
  height: 16px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-action .action-icon,
.secondary-action .action-icon {
  color: currentColor;
}

.entity-icon svg {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 9px;
  color: #d7e8ff;
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye-icon {
  width: 18px;
  height: 18px;
}

.password-eye-icon svg {
  width: 17px;
  height: 17px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-arrow-icon {
  width: 17px;
  height: 17px;
}

.security-icon {
  border: 0;
  background: transparent;
}

.security-icon svg {
  width: 16px;
  height: 16px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================
   USER INITIAL PASSWORD NOTICE
========================================================== */

.account-info-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #bfd5ff;
  border-radius: 12px;
  color: #284a78;
  background: #f4f8ff;
}

.account-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #2563eb;
  background: #e6efff;
}

.account-info-icon svg {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-info-note strong {
  display: block;
  margin: 1px 0 4px;
  color: #183b69;
  font-size: 12px;
}

.account-info-note p {
  margin: 0;
  color: #5e7392;
  font-size: 11px;
  line-height: 1.55;
}

/* ==========================================================
   FAKULTAS TABLE
========================================================== */

.faculty-search-form {
  flex: 1;
  margin: 0;
}

.search-field {
  position: relative;

  width: 100%;
  max-width: 380px;
}

.search-field .search-input {
  max-width: none;

  padding-left: 40px;
}

.search-icon {
  position: absolute;

  top: 50%;
  left: 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 17px;
  height: 17px;

  color: #94a3b8;

  transform: translateY(-50%);

  pointer-events: none;
}

.search-icon svg {
  width: 17px;
  height: 17px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------
   Result Counter
---------------------------------------------------------- */

.table-result-count {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  min-height: 36px;

  padding: 7px 11px;

  border: 1px solid #e2e8f0;
  border-radius: 8px;

  color: #64748b;
  background: #f8fafc;

  font-size: 11px;
  font-weight: 600;

  white-space: nowrap;
}

.result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 16px;
  height: 16px;

  color: #64748b;
}

.result-icon svg {
  width: 15px;
  height: 15px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------
   Number
---------------------------------------------------------- */

.admin-table .table-number {
  width: 58px;

  text-align: center;
}

.row-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  border-radius: 8px;

  color: #64748b;
  background: #f1f5f9;

  font-size: 11px;
  font-weight: 700;
}

/* ----------------------------------------------------------
   Faculty Code
---------------------------------------------------------- */

.faculty-code {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  color: #334155;
}

.faculty-code strong {
  font-size: 12px;
  font-weight: 700;
}

.faculty-code-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 27px;
  height: 27px;

  border-radius: 7px;

  color: #64748b;
  background: #f1f5f9;
}

.faculty-code-icon svg {
  width: 14px;
  height: 14px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------
   Faculty Name
---------------------------------------------------------- */

.faculty-name-cell {
  display: flex;
  align-items: center;

  gap: 11px;

  min-width: 280px;
}

.faculty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 38px;
  height: 38px;

  border-radius: 10px;

  color: #2563eb;
  background: #eff6ff;
}

.faculty-icon svg {
  width: 19px;
  height: 19px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.faculty-name-info {
  min-width: 0;
}

.faculty-name-info strong,
.faculty-name-info span {
  display: block;
}

.faculty-name-info strong {
  margin-bottom: 3px;

  overflow: hidden;

  color: #0f172a;

  font-size: 13px;
  font-weight: 700;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.faculty-name-info span {
  color: #94a3b8;

  font-size: 10px;
}

/* ----------------------------------------------------------
   Study Program Count
---------------------------------------------------------- */

.study-program-count {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  color: #64748b;

  font-size: 11px;
}

.study-program-count strong {
  color: #0f172a;

  font-size: 13px;
}

.count-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 25px;
  height: 25px;

  border-radius: 7px;

  color: #7c3aed;
  background: #f5f3ff;
}

.count-icon svg {
  width: 14px;
  height: 14px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------
   Status
---------------------------------------------------------- */

.status-badge.status-active {
  color: #087253;

  border-color: #a6e8cf;

  background: #ecfdf5;
}

.status-badge.status-active .status-dot {
  background: #10b981;
}

.status-badge.status-muted .status-dot {
  background: #94a3b8;
}

/* ----------------------------------------------------------
   Empty Table
---------------------------------------------------------- */

.empty-table-cell {
  padding: 0 !important;
}

.empty-table-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 300px;

  padding: 35px;

  text-align: center;
}

.empty-table-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;

  margin-bottom: 4px;

  border-radius: 14px;

  color: #64748b;
  background: #f1f5f9;
}

.empty-table-icon svg {
  width: 25px;
  height: 25px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-table-state strong {
  color: #334155;

  font-size: 14px;
}

.empty-table-state > span:not(.empty-table-icon) {
  max-width: 360px;

  color: #94a3b8;

  font-size: 11px;
  line-height: 1.6;
}

.empty-table-state .primary-action {
  margin-top: 9px;
}

/* ----------------------------------------------------------
   Action Icon
---------------------------------------------------------- */

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 17px;
  height: 17px;
}

.action-icon svg {
  width: 16px;
  height: 16px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */

@media (max-width: 760px) {
  .faculty-search-form,
  .search-field {
    width: 100%;
    max-width: none;
  }

  .table-result-count {
    width: 100%;

    justify-content: center;
  }
}

/* ==========================================================
   PROGRAM STUDI TABLE
========================================================== */

.prodi-search-form {
  flex: 1;

  margin: 0;
}

/* ----------------------------------------------------------
   Code
---------------------------------------------------------- */

.prodi-code {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  color: #334155;
}

.prodi-code strong {
  color: #334155;

  font-size: 12px;
  font-weight: 700;
}

.prodi-code-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 27px;
  height: 27px;

  border-radius: 7px;

  color: #64748b;
  background: #f1f5f9;
}

.prodi-code-icon svg {
  width: 14px;
  height: 14px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------
   Program Studi
---------------------------------------------------------- */

.prodi-name-cell {
  display: flex;
  align-items: center;

  gap: 11px;

  min-width: 220px;
}

.prodi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 38px;
  height: 38px;

  border-radius: 10px;

  color: #7c3aed;
  background: #f5f3ff;
}

.prodi-icon svg {
  width: 19px;
  height: 19px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.prodi-name-info {
  min-width: 0;
}

.prodi-name-info strong,
.prodi-name-info span {
  display: block;
}

.prodi-name-info strong {
  margin-bottom: 3px;

  overflow: hidden;

  color: #0f172a;

  font-size: 13px;
  font-weight: 700;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.prodi-name-info span {
  color: #94a3b8;

  font-size: 10px;
}

/* ----------------------------------------------------------
   Fakultas Reference
---------------------------------------------------------- */

.faculty-reference {
  display: flex;
  align-items: center;

  gap: 9px;

  min-width: 210px;
}

.faculty-reference-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 30px;
  height: 30px;

  border-radius: 8px;

  color: #2563eb;
  background: #eff6ff;
}

.faculty-reference-icon svg {
  width: 15px;
  height: 15px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.faculty-reference div {
  min-width: 0;
}

.faculty-reference strong,
.faculty-reference span {
  display: block;
}

.faculty-reference strong {
  max-width: 190px;

  overflow: hidden;

  color: #475569;

  font-size: 11px;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.faculty-reference span {
  margin-top: 2px;

  color: #94a3b8;

  font-size: 10px;
}

/* ----------------------------------------------------------
   Degree
---------------------------------------------------------- */

.degree-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 40px;

  padding: 5px 9px;

  border: 1px solid #c7d7fe;
  border-radius: 7px;

  color: #315fc5;
  background: #eff6ff;

  font-size: 10px;
  font-weight: 800;

  white-space: nowrap;
}

/* ----------------------------------------------------------
   Student Count
---------------------------------------------------------- */

.student-count {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  color: #64748b;

  font-size: 11px;

  white-space: nowrap;
}

.student-count strong {
  color: #0f172a;

  font-size: 13px;
  font-weight: 700;
}

.student-count-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 26px;
  height: 26px;

  border-radius: 7px;

  color: #059669;
  background: #ecfdf5;
}

.student-count-icon svg {
  width: 14px;
  height: 14px;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------
   Table Sizing
---------------------------------------------------------- */

.prodi-table {
  min-width: 1050px;
}

.prodi-table tbody tr {
  transition: background 0.15s ease;
}

.prodi-table tbody tr:hover {
  background: #f8fbff;
}

/* ----------------------------------------------------------
   Mobile
---------------------------------------------------------- */

@media (max-width: 760px) {
  .prodi-search-form {
    width: 100%;
  }
}

/* ==========================================================
   RUBRIK EDIT CONTEXT
========================================================== */

.edit-context-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #cfe0ff;
  border-radius: 11px;
  color: #315a9e;
  background: #f5f9ff;
}

.edit-context-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #2563eb;
  background: #e8f1ff;
}

.edit-context-icon svg {
  width: 17px;
  height: 17px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edit-context-bar strong,
.edit-context-bar span {
  display: block;
}

.edit-context-bar strong {
  margin-bottom: 2px;
  color: #173b73;
  font-size: 12px;
}

.edit-context-bar div > span {
  color: #6680a8;
  font-size: 11px;
}

/* ==========================================================
   RUBRIK PREVIEW TOOLBAR
========================================================== */

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #ffffff;
}

.preview-toolbar > div:first-child strong,
.preview-toolbar > div:first-child span {
  display: block;
}

.preview-toolbar > div:first-child strong {
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 13px;
}

.preview-toolbar > div:first-child span {
  color: #94a3b8;
  font-size: 11px;
}

.preview-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rubric-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px) {
  .preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-toolbar-actions {
    flex-direction: column;
  }

  .preview-toolbar-actions .primary-action,
  .preview-toolbar-actions .secondary-action {
    width: 100%;
  }
}

/* ==========================================================
   DOSEN AREA
========================================================== */

.dosen-avatar {
  background: #0fb883;
}

.lecturer-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.lecturer-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 98px;
  padding: 18px;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.lecturer-stat-card > div {
  min-width: 0;
}

.lecturer-stat-card > div > span,
.lecturer-stat-card > div > small {
  display: block;
  color: #64748b;
  font-size: 11px;
}

.lecturer-stat-card > div > strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
}

.lecturer-stat-card > div > small {
  margin-top: 5px;
  color: #ef4444;
}

.lecturer-dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.lecturer-class-list {
  display: grid;
}

.lecturer-class-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #eef2f6;
  color: #0f172a;
}

.lecturer-class-row:last-child {
  border-bottom: 0;
}

.lecturer-class-row:hover {
  background: #f8fbff;
}

.mini-class-icon,
.class-card-icon,
.summary-icon,
.task-card-icon,
.tab-icon,
.deadline-note-icon,
.ai-icon,
.final-score-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mini-class-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #2563eb;
  background: #eaf2ff;
}

.mini-class-icon svg,
.class-card-icon svg {
  width: 18px;
  height: 18px;
}

.lecturer-class-info {
  display: block;
  flex: 1;
  min-width: 0;
}

.lecturer-class-info strong,
.lecturer-class-info small {
  display: block;
}

.lecturer-class-info strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lecturer-class-info small {
  margin-top: 3px;
  color: #7b8da8;
  font-size: 10px;
}

.row-chevron {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #b1bfd1;
}

.row-chevron svg {
  width: 18px;
  height: 18px;
}

.lecturer-attention {
  color: inherit;
}

.lecturer-activity-panel {
  margin-bottom: 24px;
}

/* Kelas Saya */
.lecturer-class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
}

.lecturer-class-card {
  display: block;
  padding: 18px;
  border: 1px solid #dce4ee;
  border-radius: 14px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.lecturer-class-card:hover {
  border-color: #bfd3f5;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.lecturer-class-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.class-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #2563eb;
  background: #eaf2ff;
}

.lecturer-class-card h2 {
  margin: 14px 0 4px;
  font-size: 15px;
}

.lecturer-class-card > p {
  margin: 0;
  color: #6d809e;
  font-size: 11px;
}

.lecturer-class-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
}

.lecturer-class-counts div {
  text-align: center;
}

.lecturer-class-counts strong,
.lecturer-class-counts span {
  display: block;
}

.lecturer-class-counts strong {
  font-size: 18px;
}

.lecturer-class-counts span {
  margin-top: 3px;
  color: #8797b2;
  font-size: 10px;
}

.class-progress-label,
.task-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #6d809e;
  font-size: 10px;
}

.class-progress,
.task-progress {
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: #edf2f7;
}

.class-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #10b981;
}

.lecturer-empty-span {
  grid-column: 1 / -1;
}

/* Detail Kelas */
.class-detail-heading,
.student-review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.class-detail-title,
.student-review-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.class-detail-title h1,
.student-review-title h1 {
  margin: 2px 0 4px;
  font-size: 23px;
  line-height: 1.15;
}

.class-detail-title p,
.student-review-title p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.back-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d9e2ed;
  border-radius: 10px;
  color: #58708f;
  background: #fff;
}

.back-icon-button:hover {
  color: #2563eb;
  border-color: #b9cdf0;
}

.back-icon-button svg {
  width: 17px;
  height: 17px;
}

.class-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-bottom: 20px;
}

.class-summary-strip > div {
  display: grid;
  grid-template-columns: 38px auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 14px;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  background: #fff;
}

.summary-icon {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.summary-icon svg {
  width: 18px;
  height: 18px;
}

.summary-icon.blue {
  color: #2563eb;
  background: #eff6ff;
}
.summary-icon.indigo {
  color: #4f46e5;
  background: #eef2ff;
}
.summary-icon.cyan {
  color: #0891b2;
  background: #ecfeff;
}

.class-summary-strip strong {
  font-size: 18px;
  line-height: 1;
}

.class-summary-strip > div > span:last-child {
  align-self: end;
  color: #8292aa;
  font-size: 10px;
}

.class-detail-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  background: #fff;
  width: fit-content;
}

.class-detail-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.class-detail-tab.active {
  color: #1d5ed6;
  background: #edf4ff;
}

.tab-icon,
.tab-icon svg {
  width: 16px;
  height: 16px;
}

.detail-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.detail-section-heading h2 {
  margin: 0 0 3px;
  font-size: 18px;
}

.detail-section-heading p {
  margin: 0;
  color: #71839d;
  font-size: 11px;
}

/* Tugas dalam detail kelas */
.lecturer-task-list {
  display: grid;
  gap: 14px;
}

.lecturer-task-card {
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.task-card-main {
  display: flex;
  gap: 14px;
  padding: 18px;
}

.task-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #4f46e5;
  background: #eef2ff;
}

.task-card-icon svg {
  width: 18px;
  height: 18px;
}

.task-card-copy {
  flex: 1;
  min-width: 0;
}

.task-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-title-line h3 {
  margin: 1px 0 3px;
  font-size: 14px;
}

.task-card-copy > small {
  color: #6f84a2;
  font-size: 10px;
}

.task-card-copy > p {
  margin: 8px 0;
  color: #516782;
  font-size: 11px;
  line-height: 1.55;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 9px 0 13px;
  color: #7487a2;
  font-size: 10px;
}

.task-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.task-meta svg {
  width: 13px;
  height: 13px;
}

.task-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #387ef2;
}

.task-card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #eef2f6;
}

.status-draft {
  color: #81580b;
  background: #fff8e7;
  border-color: #f2d68f;
}
.status-aktif {
  color: #087253;
  background: #ecfdf5;
  border-color: #a6e8cf;
}
.status-selesai {
  color: #087253;
  background: #ecfdf5;
  border-color: #a6e8cf;
}

/* Filter + Review table */
.review-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #edf1f5;
}

.review-filter-bar .search-field {
  flex: 1;
  max-width: 320px;
}

.review-filter-bar .filter-select {
  width: 190px;
}

.lecturer-review-table {
  min-width: 1050px;
}

.table-subtext {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 10px;
}

.submission-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #c9d8eb;
  border-radius: 999px;
  color: #526983;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 700;
}

.status-menunggu_feedback_dosen {
  color: #4f46e5;
  border-color: #c7d2fe;
  background: #eef2ff;
}
.status-menunggu_penilaian_akhir {
  color: #008d80;
  border-color: #8be1d3;
  background: #edfffb;
}
.status-perlu_direvisi {
  color: #ea580c;
  border-color: #fed7aa;
  background: #fff7ed;
}
.status-sedang_dikerjakan {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}
.status-menunggu_review_teman,
.status-menunggu_review_ai {
  color: #7c3aed;
  border-color: #ddd6fe;
  background: #f5f3ff;
}
.status-belum_dimulai {
  color: #64748b;
  border-color: #dbe3ec;
  background: #f8fafc;
}
.status-selesai {
  color: #059669;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.late-row {
  background: #fffafa;
}

.late-mini {
  display: inline-block;
  margin-left: 6px;
  color: #ef4444;
  font-size: 9px;
  font-weight: 700;
}

.muted-dash {
  color: #c2cbd7;
}

/* Form tugas */
.lecturer-task-form {
  max-width: 960px;
}

.lecturer-task-form input[type="datetime-local"] {
  color-scheme: light;
}

.deadline-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid #d7e3f6;
  border-radius: 9px;
  color: #5d7291;
  background: #f7faff;
  font-size: 11px;
}

.deadline-note-icon,
.deadline-note-icon svg {
  width: 17px;
  height: 17px;
}

/* Detail review mahasiswa */
.student-review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: #f32b91;
  font-size: 11px;
  font-weight: 800;
}

.progress-tracker-card {
  margin-bottom: 18px;
  padding: 18px 20px 22px;
  border: 1px solid #dce4ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.tracker-label {
  display: block;
  margin-bottom: 17px;
  color: #5d7392;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.progress-tracker {
  display: flex;
  align-items: flex-start;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 3px;
}

.tracker-step {
  display: flex;
  flex: 0 0 66px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.tracker-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #cbd8e8;
  border-radius: 50%;
  color: #8da0bb;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.tracker-circle svg {
  width: 14px;
  height: 14px;
}

.tracker-step.done .tracker-circle {
  border-color: #10b981;
  color: #fff;
  background: #10b981;
}

.tracker-step.current .tracker-circle {
  border-color: #2563eb;
  color: #fff;
  background: #2563eb;
}

.tracker-step.done .tracker-step-label {
  color: #059669;
}
.tracker-step.current .tracker-step-label {
  color: #1d4ed8;
  font-weight: 700;
}

.tracker-step-label {
  max-width: 72px;
  color: #8798b5;
  font-size: 9px;
  line-height: 1.2;
}

.tracker-line {
  flex: 1 0 24px;
  min-width: 24px;
  height: 1px;
  margin-top: 13px;
  background: #d8e2ef;
}

.tracker-line.done {
  background: #10b981;
}

.student-review-panel {
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.student-review-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid #dce4ed;
}

.student-review-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  border-bottom: 2px solid transparent;
  color: #5d7291;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.student-review-tab.active {
  color: #1d5ed6;
  border-bottom-color: #2563eb;
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #547093;
  background: #eff3f8;
  font-size: 9px;
}

.student-review-tab.active .tab-count {
  color: #1d5ed6;
  background: #e8f1ff;
}

.student-review-content {
  padding: 18px;
}

.writing-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.writing-toolbar form {
  margin: 0;
}

.writing-toolbar .admin-select {
  min-width: 280px;
  min-height: 36px;
}

.writing-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #566b86;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 700;
}

.blue-chip {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.writing-paper {
  min-height: 300px;
  padding: 22px;
  border-radius: 12px;
  color: #334861;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.75;
}

.writing-paper p:first-child {
  margin-top: 0;
}
.writing-paper p:last-child {
  margin-bottom: 0;
}

.review-card-list,
.revision-list {
  display: grid;
  gap: 12px;
}

.peer-feedback-card,
.lecturer-feedback-card {
  padding: 15px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
}

.lecturer-feedback-card {
  border-color: #f4cf72;
  background: #fffdf7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author > div {
  flex: 1;
}

.review-author strong,
.review-author small {
  display: block;
}

.review-author strong {
  font-size: 12px;
}
.review-author small {
  margin-top: 2px;
  color: #8294ad;
  font-size: 9px;
}

.review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.review-avatar.peer {
  background: #5a61ff;
}
.review-avatar.lecturer {
  background: #0fb883;
}

.review-body {
  margin-top: 12px;
  color: #304761;
  font-size: 11px;
  line-height: 1.65;
}

.review-body > p {
  margin: 0 0 10px;
}

.review-detail {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.review-detail strong {
  color: #526983;
  font-size: 10px;
}
.review-detail span {
  color: #64748b;
}

.revision-badge {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #c2410c;
  background: #fff7ed;
  font-size: 9px;
  font-weight: 700;
}

.ai-overall-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #c9dbff;
  border-radius: 11px;
  background: #eef4ff;
}

.ai-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #7c3aed;
  background: #fff;
}

.ai-icon svg {
  width: 21px;
  height: 21px;
}
.ai-overall-card strong {
  font-size: 11px;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.star-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rating-star {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #cbd5e1;
}

.rating-star svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}

.rating-star.filled {
  color: #f5a700;
}
.star-row.small .rating-star {
  width: 14px;
  height: 14px;
}

.ai-summary {
  margin: 12px 0 0;
  color: #526983;
  font-size: 11px;
  line-height: 1.55;
}

.ai-criteria-grid,
.final-criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.ai-criterion-card,
.final-criteria-grid article {
  padding: 12px;
  border: 1px solid #dbe4ef;
  border-radius: 11px;
  background: #fff;
}

.ai-criterion-head,
.final-criteria-grid article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ai-criterion-head strong,
.final-criteria-grid strong {
  font-size: 10px;
}
.ai-criterion-card p {
  margin: 7px 0 4px;
  color: #526983;
  font-size: 10px;
  line-height: 1.5;
}
.ai-criterion-card small,
.final-criteria-grid small {
  color: #7f91aa;
  font-size: 9px;
  line-height: 1.45;
}

.revision-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #dbe4ef;
  border-radius: 11px;
  background: #fff;
}

.revision-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #2563eb;
  background: #e8f1ff;
  font-size: 10px;
  font-weight: 800;
}

.revision-row strong,
.revision-row span {
  display: block;
}
.revision-row strong {
  font-size: 11px;
}
.revision-row div > span {
  margin-top: 3px;
  color: #7185a2;
  font-size: 9px;
}
.revision-row a {
  color: #2563eb;
  font-size: 10px;
  font-weight: 700;
}

.final-score-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 700px;
  padding: 18px;
  border: 1px solid #a7e9d2;
  border-radius: 12px;
  background: #f2fff9;
}

.final-score-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: #059669;
  background: #dcfce7;
}

.final-score-icon svg {
  width: 22px;
  height: 22px;
}
.final-score-card > div > span {
  color: #5c718c;
  font-size: 10px;
}
.final-score-card > div > strong {
  display: block;
  margin: 3px 0 7px;
  color: #047857;
  font-size: 25px;
}
.final-score-card p {
  margin: 0 0 8px;
  color: #3f576f;
  font-size: 11px;
  line-height: 1.55;
}
.final-score-card small {
  color: #7b8da5;
  font-size: 9px;
}

.final-criteria-grid article p {
  margin: 7px 0 4px;
  color: #526983;
  font-size: 10px;
}

@media (max-width: 1200px) {
  .lecturer-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ai-criteria-grid,
  .final-criteria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .lecturer-dashboard-grid,
  .lecturer-class-grid {
    grid-template-columns: 1fr;
  }
  .class-summary-strip {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .review-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .review-filter-bar .search-field,
  .review-filter-bar .filter-select {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .lecturer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .class-detail-heading,
  .student-review-heading,
  .detail-section-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .class-detail-tabs {
    width: 100%;
    overflow-x: auto;
  }
  .class-detail-tab {
    flex: 1 0 auto;
  }
  .task-card-main {
    align-items: flex-start;
  }
  .task-title-line {
    flex-direction: column;
  }
  .task-card-actions {
    flex-direction: column;
  }
  .task-card-actions .secondary-action {
    width: 100%;
  }
  .writing-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .writing-toolbar form,
  .writing-toolbar .admin-select {
    width: 100%;
    min-width: 0;
  }
  .ai-criteria-grid,
  .final-criteria-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .lecturer-stats {
    grid-template-columns: 1fr;
  }
  .student-review-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .progress-tracker-card {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ============================================================
   AREA MAHASISWA
============================================================ */

.student-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.student-dashboard-tasks {
  margin-bottom: 28px;
}

.student-active-task-list,
.student-task-list,
.student-review-assignment-list {
  display: grid;
}

.student-active-task,
.student-task-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid #edf1f5;
  color: #1f344f;
  background: #fff;
  transition: background 0.16s ease;
}

.student-active-task:last-child,
.student-task-card:last-child {
  border-bottom: 0;
}

.student-active-task:hover,
.student-task-card:hover {
  background: #fbfdff;
}

.student-task-main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.student-task-main strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-task-main small,
.student-task-main > span:not(.task-progress-track) {
  color: #7185a2;
  font-size: 10px;
}

.task-progress-track {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 5px;
  margin-top: 3px;
  border-radius: 999px;
  background: #edf2f7;
}

.task-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2f7df4;
}

.student-task-side {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

.student-task-side > strong {
  color: #425675;
  font-size: 10px;
}

.student-task-side .row-chevron {
  color: #9aabc2;
}

.student-class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
}

.student-class-card {
  padding: 18px;
  border: 1px solid #dbe4ed;
  border-radius: 14px;
  color: inherit;
  background: #fff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.student-class-card:hover {
  border-color: #c8d6e8;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.student-class-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.student-class-icon,
.mini-task-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #2563eb;
  background: #eaf2ff;
}

.student-class-icon svg,
.mini-task-icon svg {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-class-card h3 {
  margin: 14px 0 4px;
  color: #101828;
  font-size: 14px;
}

.student-class-card > p {
  margin: 0;
  color: #70839e;
  font-size: 10px;
}

.student-class-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
}

.student-class-metrics div {
  text-align: center;
}

.student-class-metrics strong,
.student-class-metrics span {
  display: block;
}

.student-class-metrics strong {
  color: #111827;
  font-size: 18px;
}

.student-class-metrics span {
  margin-top: 3px;
  color: #8798b5;
  font-size: 10px;
}

.student-class-progress > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #607591;
  font-size: 10px;
}

.student-class-tabs {
  margin-bottom: 16px;
}

.tab-icon,
.tab-icon svg {
  width: 16px;
  height: 16px;
}

.peer-review-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid #bcd5ff;
  border-radius: 10px;
  color: #1d4ed8;
  background: #eff6ff;
}

.peer-review-info > span,
.peer-review-info svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.peer-review-info p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.student-review-assignment {
  padding: 16px 18px;
  border: 1px solid #dbe4ed;
  border-radius: 13px;
  background: #fff;
}

.student-review-assignment + .student-review-assignment {
  margin-top: 12px;
}

.review-assignment-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-assignment-head > div {
  flex: 1;
  min-width: 0;
}

.review-assignment-head strong,
.review-assignment-head small {
  display: block;
}

.review-assignment-head strong {
  color: #172033;
  font-size: 12px;
}

.review-assignment-head small {
  margin-top: 2px;
  overflow: hidden;
  color: #7185a2;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anonymous-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #64748b;
  background: #e8eef6;
  font-size: 12px;
  font-weight: 800;
}

.review-version-preview {
  margin-top: 13px;
  padding: 13px;
  border-radius: 9px;
  color: #465d79;
  background: #f7f9fc;
  font-size: 10px;
  line-height: 1.6;
}

.review-assignment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}

.review-assignment-footer > span {
  color: #8192aa;
  font-size: 9px;
}

.peer-review-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  gap: 18px;
}

.peer-writing-card {
  overflow: hidden;
  border: 1px solid #dbe4ed;
  border-radius: 14px;
  background: #fff;
}

.peer-writing-card > .review-assignment-head {
  padding: 15px 18px;
  border-bottom: 1px solid #edf1f5;
}

.peer-writing-content {
  max-height: 620px;
  overflow-y: auto;
  padding: 20px;
  color: #304761;
  font-size: 11px;
  line-height: 1.75;
}

.peer-review-form {
  align-self: start;
}

.peer-review-form .form-field {
  margin-bottom: 14px;
}

.student-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 28px;
}

.summary-label {
  display: block;
  margin-bottom: 14px;
  color: #58708f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.student-summary-grid h3 {
  margin: 13px 0 5px;
  color: #8293ac;
  font-size: 10px;
  font-weight: 600;
}

.summary-copy {
  color: #213a57;
  font-size: 11px;
  line-height: 1.65;
}

.summary-copy p {
  margin: 0 0 8px;
}

.timeline-list {
  display: grid;
  gap: 7px;
}

.timeline-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f8fafc;
}

.timeline-list span {
  color: #70839e;
  font-size: 9px;
}

.timeline-list strong {
  color: #263b56;
  font-size: 9px;
  text-align: right;
}

.student-writing-form {
  margin-bottom: 18px;
}

.writing-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #dbe4ed;
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  color: #445b76;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.writing-editor-toolbar span:last-child {
  color: #059669;
  font-weight: 600;
}

.student-writing-editor {
  display: block;
  width: 100%;
  min-height: 360px;
  padding: 18px;
  border: 1px solid #dbe4ed;
  border-radius: 0 0 11px 11px;
  color: #263b56;
  background: #fff;
  outline: none;
  resize: vertical;
  font: inherit;
  font-size: 11px;
  line-height: 1.75;
}

.student-writing-editor:focus {
  border-color: #75a6fb;
  box-shadow: 0 0 0 3px rgba(23, 101, 245, 0.07);
}

.writing-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.student-version-list {
  margin-top: 18px;
}

.version-stage {
  color: #64748b;
  font-size: 9px;
}

.student-rubric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.student-rubric-head strong,
.student-rubric-head span {
  display: block;
}

.student-rubric-head strong {
  color: #172033;
  font-size: 12px;
}

.student-rubric-head > div > span {
  margin-top: 4px;
  color: #7185a2;
  font-size: 10px;
}

.student-rubric-list {
  display: grid;
  gap: 12px;
}

.student-rubric-card {
  overflow: hidden;
  border: 1px solid #dbe4ed;
  border-radius: 12px;
  background: #fff;
}

.student-rubric-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #f8fafc;
}

.student-rubric-card-head strong {
  flex: 1;
  font-size: 11px;
}

.student-rubric-card > p {
  margin: 0;
  padding: 0 14px 10px;
  color: #6b7f99;
  background: #f8fafc;
  font-size: 9px;
}

.rubric-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px 14px;
}

.rubric-score-grid > div {
  min-height: 82px;
  padding: 10px;
  border-radius: 9px;
}

.rubric-score-grid strong,
.rubric-score-grid span {
  display: block;
}

.rubric-score-grid strong {
  margin-bottom: 5px;
  color: #30445d;
  font-size: 9px;
}

.rubric-score-grid span {
  color: #475d77;
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 1200px) {
  .student-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .peer-review-workspace,
  .student-summary-grid {
    grid-template-columns: 1fr;
  }
  .rubric-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .student-class-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .student-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-active-task,
  .student-task-card {
    align-items: flex-start;
  }
  .student-task-side {
    align-items: flex-end;
  }
  .review-assignment-footer,
  .writing-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .writing-actions .primary-action,
  .writing-actions .secondary-action,
  .review-assignment-footer .secondary-action {
    width: 100%;
  }
  .rubric-score-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .student-stats {
    grid-template-columns: 1fr;
  }
  .student-task-card,
  .student-active-task {
    flex-wrap: wrap;
  }
  .student-task-main {
    min-width: calc(100% - 55px);
  }
  .student-task-side {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 52px;
  }
}
.anonymous-avatar svg {
  width: 17px;
  height: 17px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid #d9e2ed;
  border-radius: 10px;
  color: #58708f;
  background: #fff;
}
.back-link:hover {
  color: #2563eb;
  border-color: #b9cdf0;
}
.back-link svg {
  width: 17px;
  height: 17px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ==========================================================
   MAHASISWA - VERSION HISTORY
========================================================== */

.student-version-history {
  margin-top: 24px;

  overflow: hidden;

  border: 1px solid #dbe4f0;
  border-radius: 14px;

  background: #ffffff;
}

.version-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 16px 18px;

  border-bottom: 1px solid #edf1f6;

  background: #fbfcfe;
}

.version-history-header > div:first-child strong,
.version-history-header > div:first-child span {
  display: block;
}

.version-history-header > div:first-child strong {
  margin-bottom: 4px;

  color: #0f172a;

  font-size: 13px;
}

.version-history-header > div:first-child span {
  color: #94a3b8;

  font-size: 11px;
}

.version-select-form {
  width: 100%;
  max-width: 330px;

  margin: 0;
}

.version-select {
  width: 100%;
}

/* ==========================================================
   SELECTED VERSION
========================================================== */

.selected-version-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 16px 18px;

  border-bottom: 1px solid #edf1f6;
}

.selected-version-meta > div:first-child {
  display: flex;
  align-items: center;

  gap: 10px;
}

.selected-version-meta > div:first-child > div strong,
.selected-version-meta > div:first-child > div span {
  display: block;
}

.selected-version-meta > div:first-child > div strong {
  margin-bottom: 3px;

  color: #0f172a;

  font-size: 13px;
}

.selected-version-meta > div:first-child > div span {
  color: #64748b;

  font-size: 11px;
}

.selected-version-info {
  display: flex;
  align-items: center;

  gap: 8px;
}

/* ==========================================================
   OLD WRITING
========================================================== */

.old-writing-preview {
  max-height: 520px;

  padding: 22px;

  overflow-y: auto;

  color: #334155;

  background: #ffffff;

  font-size: 13px;
  line-height: 1.8;
}

.old-writing-preview p {
  margin: 0 0 18px;
}

.old-writing-preview p:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 760px) {
  .version-history-header,
  .selected-version-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .version-select-form {
    max-width: none;
  }

  .selected-version-info {
    flex-wrap: wrap;
  }
}

/* ==========================================================
   MAHASISWA - REVIEW AI GEMINI
========================================================== */

.ai-review-result {
  display: grid;
  gap: 14px;
}

.ai-overall-copy {
  min-width: 0;
}

.ai-overall-copy strong,
.ai-overall-copy small {
  display: block;
}

.ai-overall-copy small {
  margin-top: 3px;
  color: #7185a2;
  font-size: 9px;
}

.ai-summary-card {
  padding: 14px 16px;
  border: 1px solid #dbe4ef;
  border-radius: 11px;
  background: #fff;
}

.ai-summary-card strong,
.ai-feedback-box strong,
.ai-section-heading strong {
  color: #172b4d;
  font-size: 10px;
}

.ai-summary-card p,
.ai-feedback-box p {
  margin: 7px 0 0;
  color: #526983;
  font-size: 10px;
  line-height: 1.65;
}

.ai-feedback-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ai-feedback-box {
  min-height: 145px;
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 11px;
  background: #fff;
}

.ai-feedback-box.strength {
  border-top: 3px solid #10b981;
  background: #f7fffb;
}

.ai-feedback-box.improve {
  border-top: 3px solid #f59e0b;
  background: #fffdf7;
}

.ai-feedback-box.suggestion {
  border-top: 3px solid #3b82f6;
  background: #f8fbff;
}

.ai-section-heading {
  margin-top: 2px;
}

.ai-quote,
.ai-suggestion {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 9px;
  line-height: 1.5;
}

.ai-quote {
  color: #7c4a03;
  background: #fff9e8;
}

.ai-suggestion {
  color: #1e4f94;
  background: #eff6ff;
}

.ai-quote strong,
.ai-suggestion strong {
  font-size: 9px;
}

.ai-disclaimer {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 9px;
  color: #7185a2;
  background: #f8fafc;
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .ai-feedback-columns {
    grid-template-columns: 1fr;
  }
}

/* First login profile */
.first-login-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 0 48px;
}
.first-login-card {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}
.first-login-heading h1 {
  margin: 8px 0;
  font-size: 1.65rem;
}
.first-login-heading p {
  color: #64748b;
  margin: 0 0 20px;
}
.first-login-step {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.8rem;
  font-weight: 700;
}
.identity-box {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.identity-box span {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
}
.identity-box strong {
  font-size: 1.1rem;
}
.identity-box small {
  color: #64748b;
}
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.profile-field {
  display: grid;
  gap: 7px;
}
.profile-field-wide {
  grid-column: 1 / -1;
}
.profile-field label {
  font-weight: 700;
  color: #1e293b;
}
.profile-field .form-control {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
}
.field-help {
  color: #64748b;
}
.first-login-actions {
  margin-top: 24px;
}
@media (max-width: 720px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
  .profile-field-wide {
    grid-column: auto;
  }
  .first-login-card {
    padding: 20px;
  }
}
.role-photo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 34px;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

/* Excel import */
.heading-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.excel-import-card {
  max-width: 920px;
}
.excel-import-guide {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  background: #f8fbfe;
}
.excel-import-guide p {
  margin: 12px 0 0;
  color: #526476;
  line-height: 1.6;
}
.excel-column-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.excel-column-tags span {
  padding: 5px 9px;
  border-radius: 8px;
  background: #e8f1f8;
  color: #284c6b;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.import-result-panel {
  margin-top: 22px;
}
.import-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}
.import-summary div {
  border: 1px solid #e0e8ef;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}
.import-summary strong {
  display: block;
  font-size: 24px;
  color: #163a59;
}
.import-summary span {
  display: block;
  margin-top: 4px;
  color: #6d7d8b;
  font-size: 13px;
}
.field-error {
  color: #b42318;
  margin-top: 6px;
  font-size: 13px;
}
@media (max-width: 720px) {
  .import-summary {
    grid-template-columns: 1fr;
  }
  .heading-action-group {
    width: 100%;
  }
}

/* Edit / delete actions for master data */
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #dc2626;
  border-radius: 10px;
  background: #fff;
  color: #b91c1c;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.danger-action:hover {
  background: #fef2f2;
}
.danger-action.compact-action {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.86rem;
}
.delete-confirm-panel {
  max-width: 720px;
}
.delete-warning {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #fecaca;
  background: #fff7f7;
  border-radius: 12px;
}
.delete-warning strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.delete-warning p {
  margin: 0;
  color: #7f1d1d;
}

/* ==========================================================
   PEER REVIEW ASSIGNMENT - SEMI AUTOMATIS
========================================================== */
.peer-assignment-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.peer-task-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.peer-task-picker label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.peer-task-picker .filter-select {
  min-width: 280px;
}

.peer-assignment-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.peer-assignment-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.peer-assignment-note strong {
  font-size: 14px;
  color: var(--text-primary);
}

.peer-assignment-note span,
.peer-save-bar span {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.peer-assignment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.peer-assignment-warning {
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.5;
}

.peer-assignment-table th:nth-child(1) {
  min-width: 230px;
}
.peer-assignment-table th:nth-child(2),
.peer-assignment-table th:nth-child(3) {
  min-width: 230px;
}
.peer-assignment-table th:nth-child(4) {
  min-width: 150px;
}

.peer-reviewer-select {
  width: 100%;
  min-width: 215px;
  height: 40px;
  padding: 0 36px 0 11px;
  border: 1px solid #ccd6e4;
  border-radius: 8px;
  color: #1e293b;
  background: #fff;
  outline: none;
}

.peer-reviewer-select:focus {
  border-color: #6d9df6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.peer-reviewer-select:disabled {
  color: #64748b;
  background: #f1f5f9;
  cursor: not-allowed;
}

.peer-lock-note {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 10px;
}

.peer-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

@media (max-width: 900px) {
  .peer-assignment-toolbar,
  .peer-save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .peer-assignment-actions .secondary-action,
  .peer-save-bar .primary-action {
    justify-content: center;
  }

  .peer-task-picker .filter-select {
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================
   LECTURER FEEDBACK FORM
========================================================== */
.lecturer-feedback-form-card {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #ffffff;
}

.lecturer-feedback-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.lecturer-feedback-form-head h3 {
  margin: 5px 0 5px;
  font-size: 18px;
}

.lecturer-feedback-form-head p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.lecturer-feedback-form {
  display: grid;
  gap: 15px;
}

.lecturer-feedback-field label {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.lecturer-feedback-field textarea {
  width: 100%;
  min-height: 105px;
  padding: 12px 14px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.6;
}

.lecturer-feedback-field textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.lecturer-feedback-actions {
  display: flex;
  justify-content: flex-end;
}

.feedback-stage-notice {
  padding: 13px 15px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  line-height: 1.6;
}

.lecturer-feedback-history {
  margin-top: 18px;
}

.lecturer-student-writing-preview {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #f8fbff;
}

.lecturer-student-writing-preview .writing-paper {
  margin-top: 14px;
}

.final-assessment-help {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}
.final-assessment-form .final-dynamic-field {
  margin-bottom: 14px;
}
.final-assessment-form .score-field {
  max-width: 360px;
}
.final-assessment-form .score-field label {
  font-weight: 700;
  color: #0f172a;
}
.final-assessment-form .final-feedback-field {
  margin-top: 22px;
}

/* Final assessment rubric table */
.final-rubric-table-wrap {
  width: 100%;
  margin: 18px 0 24px;
  overflow-x: auto;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
}

.final-rubric-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  table-layout: fixed;
}

.final-rubric-table th {
  padding: 13px 12px;
  color: #fff;
  background: #10294d;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}

.final-rubric-table th:nth-child(1) {
  width: 17%;
}
.final-rubric-table th:nth-child(2) {
  width: 7%;
}
.final-rubric-table th:nth-child(n + 3) {
  width: 19%;
}

.final-rubric-table td {
  padding: 0;
  border-top: 1px solid #dbe3ef;
  border-right: 1px solid #e8edf4;
  vertical-align: top;
}

.final-rubric-table td:last-child {
  border-right: 0;
}

.final-rubric-table .criterion-cell,
.final-rubric-table .weight-cell {
  padding: 14px 12px;
}

.final-rubric-table .criterion-cell strong,
.final-rubric-table .criterion-cell small {
  display: block;
}

.final-rubric-table .criterion-cell strong {
  margin-bottom: 6px;
  font-size: 12px;
}

.final-rubric-table .criterion-cell small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.final-rubric-table .weight-cell {
  text-align: center;
}

.final-rubric-table .score-choice label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 100%;
  padding: 14px 12px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.45;
}

.final-rubric-table .score-choice input[type="radio"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #2563eb;
}

.final-rubric-table .score-choice label:has(input:checked) {
  box-shadow: inset 0 0 0 2px #2563eb;
}

.final-rubric-table .score-four {
  background: #eefaf5;
}
.final-rubric-table .score-three {
  background: #f1f6ff;
}
.final-rubric-table .score-two {
  background: #fff9ed;
}
.final-rubric-table .score-one {
  background: #fff2f2;
}

@media (max-width: 900px) {
  .final-rubric-table-wrap {
    border-radius: 10px;
  }
}

/* ==========================================================
   SMARTASSESS - NEW LOGIN PAGE - BLUE VERSION
========================================================== */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  background: #f8fafc;
}

/* ==========================================================
   LEFT SIDE / HERO
========================================================== */

.auth-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #ffffff;

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(59, 130, 246, 0.2),
      transparent 32%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(115, 168, 255, 0.15),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      var(--blue-900) 0%,
      var(--blue-800) 52%,
      var(--blue-700) 100%
    );
}

/* Background grid */
.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;

  pointer-events: none;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);

  background-size: 40px 40px;
}

.auth-hero-inner {
  position: relative;
  z-index: 2;

  min-height: 100vh;

  padding: 44px clamp(40px, 6vw, 90px) 32px;

  display: flex;
  flex-direction: column;
}

/* ==========================================================
   BRAND
========================================================== */

.auth-brand {
  display: flex;
  align-items: center;

  gap: 13px;
}

.auth-brand-mark {
  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;

  color: var(--blue-400);

  background: rgba(255, 255, 255, 0.09);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 6px 18px rgba(0, 0, 0, 0.08);
}

.auth-brand-mark svg {
  width: 30px;
  height: 30px;
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
}

.auth-brand-text strong {
  color: #ffffff;

  font-size: 23px;
  font-weight: 750;
  line-height: 1;

  letter-spacing: -0.6px;
}

.auth-brand-text strong span {
  color: var(--blue-400);
}

.auth-brand-text small {
  margin-top: 6px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 10px;
  font-weight: 500;

  letter-spacing: 2px;

  text-transform: uppercase;
}

/* ==========================================================
   HERO CONTENT
========================================================== */

.auth-hero-content {
  margin: auto 0;

  padding: 65px 0;
}

.hero-pill {
  display: flex;
  align-items: center;

  gap: 9px;

  width: fit-content;

  margin-bottom: 24px;
  padding: 8px 13px;

  border: 1px solid rgba(115, 168, 255, 0.28);
  border-radius: 999px;

  color: #bfdbfe;

  background: rgba(37, 99, 235, 0.14);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.7px;

  text-transform: uppercase;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--blue-400);

  box-shadow: 0 0 0 4px rgba(115, 168, 255, 0.12);
}

.auth-hero h1 {
  max-width: 720px;

  margin: 0;

  color: #ffffff;

  font-size: clamp(40px, 4.2vw, 67px);
  font-weight: 750;

  line-height: 1.06;

  letter-spacing: -2.3px;
}

.auth-hero h1 span {
  display: block;

  color: var(--blue-400);
}

.auth-hero-description {
  max-width: 650px;

  margin: 25px 0 35px;

  color: rgba(255, 255, 255, 0.68);

  font-size: 15px;

  line-height: 1.75;
}

/* ==========================================================
   FEATURES
========================================================== */

.auth-features {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 13px;
}

.auth-feature {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  min-height: 108px;

  padding: 17px;

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.07);

  backdrop-filter: blur(8px);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-feature:hover {
  transform: translateY(-3px);

  border-color: rgba(115, 168, 255, 0.3);

  background: rgba(255, 255, 255, 0.1);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.auth-feature-icon {
  display: grid;
  place-items: center;

  flex: 0 0 auto;

  width: 38px;
  height: 38px;

  border: 1px solid rgba(115, 168, 255, 0.12);
  border-radius: 11px;

  color: var(--blue-400);

  background: rgba(59, 130, 246, 0.14);
}

.auth-feature-icon svg {
  width: 20px;
  height: 20px;
}

.auth-feature strong,
.auth-feature span {
  display: block;
}

.auth-feature strong {
  margin-bottom: 5px;

  color: #ffffff;

  font-size: 13px;
  font-weight: 700;
}

.auth-feature span {
  color: rgba(255, 255, 255, 0.52);

  font-size: 10.5px;

  line-height: 1.45;
}

/* ==========================================================
   HERO FOOTER
========================================================== */

.auth-hero-footer {
  display: flex;
  align-items: center;

  gap: 9px;

  color: rgba(255, 255, 255, 0.37);

  font-size: 10px;
}

.footer-separator {
  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================
   RIGHT LOGIN
========================================================== */

.auth-login {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100vh;

  padding: 42px;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(59, 130, 246, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(115, 168, 255, 0.05),
      transparent 28%
    ),
    #f8fafc;
}

.auth-login-inner {
  width: min(100%, 455px);
}

/* ==========================================================
   LANGUAGE
========================================================== */

.auth-language-area {
  display: flex;
  justify-content: flex-end;

  margin-bottom: 14px;
}

.auth-language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 8px 12px;

  border: 1px solid #e2e8f0;
  border-radius: 10px;

  color: #475569;

  background: #ffffff;

  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.035);

  font-size: 11px;
  font-weight: 700;

  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.auth-language-button:hover {
  color: var(--blue-600);

  border-color: #93c5fd;

  background: #eff6ff;

  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.08);
}

.auth-language-button svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================
   LOGIN CARD
========================================================== */

.auth-card {
  padding: 38px;

  border: 1px solid #e6ecf2;
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.98);

  box-shadow:
    0 30px 70px rgba(15, 23, 42, 0.08),
    0 5px 18px rgba(15, 23, 42, 0.04);
}

.auth-card-icon {
  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;

  margin-bottom: 19px;

  border: 1px solid #dbeafe;
  border-radius: 13px;

  color: var(--blue-600);

  background: #eff6ff;
}

.auth-card-icon svg {
  width: 22px;
  height: 22px;
}

.auth-card-heading {
  margin-bottom: 28px;
}

.auth-card-heading h2 {
  margin: 0 0 7px;

  color: #0f172a;

  font-size: 29px;
  font-weight: 750;

  line-height: 1.15;

  letter-spacing: -0.8px;
}

.auth-card-heading p {
  margin: 0;

  color: #64748b;

  font-size: 13px;

  line-height: 1.5;
}

/* ==========================================================
   ERROR
========================================================== */

.auth-alert {
  display: flex;
  align-items: center;

  gap: 9px;

  margin-bottom: 20px;
  padding: 11px 13px;

  border: 1px solid #fecaca;
  border-radius: 11px;

  color: #b91c1c;

  background: #fef2f2;

  font-size: 11px;
}

.auth-alert-icon {
  display: grid;
  place-items: center;

  flex: 0 0 auto;

  width: 21px;
  height: 21px;

  border-radius: 50%;

  color: #ffffff;

  background: #ef4444;

  font-size: 11px;
  font-weight: 800;
}

/* ==========================================================
   FORM
========================================================== */

.auth-form {
  display: flex;
  flex-direction: column;

  gap: 20px;
}

.auth-form-group label {
  display: block;

  margin-bottom: 8px;

  color: #334155;

  font-size: 12px;
  font-weight: 700;
}

.auth-input-wrapper {
  position: relative;
}

.auth-input-wrapper input {
  width: 100%;
  height: 51px;

  padding: 0 46px 0 44px;

  border: 1px solid #dce3eb;
  border-radius: 12px;

  color: #0f172a;

  background: #f8fafc;

  outline: none;

  font-size: 13px;

  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.auth-input-wrapper input::placeholder {
  color: #94a3b8;
}

.auth-input-wrapper input:hover {
  border-color: #c5d0df;
}

.auth-input-wrapper input:focus {
  border-color: var(--blue-600);

  background: #ffffff;

  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ==========================================================
   INPUT ICON
========================================================== */

.auth-input-icon {
  position: absolute;

  top: 50%;
  left: 14px;

  display: grid;
  place-items: center;

  color: #94a3b8;

  pointer-events: none;

  transform: translateY(-50%);

  transition: color 0.18s ease;
}

.auth-input-icon svg {
  width: 18px;
  height: 18px;
}

.auth-input-wrapper:focus-within .auth-input-icon {
  color: var(--blue-600);
}

/* ==========================================================
   PASSWORD TOGGLE
========================================================== */

.auth-password-toggle {
  position: absolute;

  top: 50%;
  right: 9px;

  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  padding: 0;

  border: 0;
  border-radius: 8px;

  color: #94a3b8;

  background: transparent;

  transform: translateY(-50%);

  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.auth-password-toggle:hover {
  color: var(--blue-600);

  background: #eff6ff;
}

.auth-password-toggle.is-visible {
  color: var(--blue-600);

  background: #eff6ff;
}

.auth-password-toggle svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================
   FIELD ERROR
========================================================== */

.field-error {
  display: block;

  margin-top: 6px;

  color: #dc2626;

  font-size: 10px;
}

/* ==========================================================
   LOGIN BUTTON
========================================================== */

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  width: 100%;
  height: 53px;

  margin-top: 3px;

  padding: 0 20px;

  border: 0;
  border-radius: 12px;

  color: #ffffff;

  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));

  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.22);

  font-size: 13px;
  font-weight: 700;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);

  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));

  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.auth-submit:active {
  transform: translateY(0);

  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.auth-submit svg {
  width: 18px;
  height: 18px;

  transition: transform 0.18s ease;
}

.auth-submit:hover svg {
  transform: translateX(3px);
}

/* ==========================================================
   SECURITY NOTE
========================================================== */

.auth-security-note {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  margin-top: 23px;
  padding-top: 20px;

  border-top: 1px solid #edf1f5;

  color: #94a3b8;

  font-size: 10px;

  line-height: 1.5;

  text-align: center;
}

.auth-security-note svg {
  flex: 0 0 auto;

  width: 14px;
  height: 14px;

  color: var(--blue-500);
}

/* ==========================================================
   RESPONSIVE - TABLET
========================================================== */

@media (max-width: 1050px) {
  .auth-page {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(400px, 1fr);
  }

  .auth-hero-inner {
    padding-left: 42px;
    padding-right: 42px;
  }

  .auth-hero h1 {
    font-size: clamp(38px, 5vw, 54px);
  }

  .auth-features {
    grid-template-columns: 1fr;
  }

  .auth-feature {
    min-height: auto;
  }
}

/* ==========================================================
   RESPONSIVE - SMALL TABLET / MOBILE
========================================================== */

@media (max-width: 820px) {
  .auth-page {
    display: block;
  }

  .auth-hero {
    min-height: auto;
  }

  .auth-hero-inner {
    min-height: auto;

    padding: 32px 24px 45px;
  }

  .auth-hero-content {
    padding: 55px 0 40px;
  }

  .auth-hero h1 {
    font-size: clamp(35px, 10vw, 50px);

    letter-spacing: -1.5px;
  }

  .auth-hero-description {
    max-width: 580px;
  }

  .auth-features {
    grid-template-columns: 1fr;

    max-width: 520px;
  }

  .auth-hero-footer {
    display: none;
  }

  .auth-login {
    min-height: auto;

    padding: 45px 18px 65px;
  }

  .auth-login-inner {
    max-width: 500px;
  }
}

/* ==========================================================
   RESPONSIVE - MOBILE
========================================================== */

@media (max-width: 480px) {
  .auth-hero-inner {
    padding: 26px 20px 38px;
  }

  .auth-brand-mark {
    width: 43px;
    height: 43px;

    border-radius: 12px;
  }

  .auth-brand-mark svg {
    width: 27px;
    height: 27px;
  }

  .auth-brand-text strong {
    font-size: 20px;
  }

  .auth-brand-text small {
    font-size: 8px;

    letter-spacing: 1.6px;
  }

  .auth-hero-content {
    padding: 45px 0 30px;
  }

  .auth-hero h1 {
    font-size: 36px;

    line-height: 1.08;

    letter-spacing: -1.3px;
  }

  .auth-hero-description {
    margin: 20px 0 28px;

    font-size: 14px;

    line-height: 1.65;
  }

  .hero-pill {
    font-size: 9px;
  }

  .auth-feature {
    padding: 15px;

    border-radius: 14px;
  }

  .auth-login {
    padding: 35px 15px 55px;
  }

  .auth-card {
    padding: 27px 21px;

    border-radius: 19px;
  }

  .auth-card-icon {
    width: 42px;
    height: 42px;
  }

  .auth-card-heading h2 {
    font-size: 25px;
  }

  .auth-card-heading p {
    font-size: 12px;
  }

  .auth-input-wrapper input {
    height: 50px;
  }

  .auth-submit {
    height: 51px;
  }
}

/* ==========================================================
   VERY SMALL MOBILE
========================================================== */

@media (max-width: 360px) {
  .auth-hero h1 {
    font-size: 32px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .auth-input-wrapper input {
    padding-left: 41px;

    font-size: 12px;
  }

  .auth-submit {
    font-size: 12px;
  }
}

/* ==========================================================
   STUDENT FINAL GRADE
========================================================== */

.final-grade-student {
  display: grid;
  gap: 22px;
}

.final-grade-hero {
  display: flex;
  align-items: center;
  gap: 30px;

  padding: 28px;

  border: 1px solid #dbeafe;
  border-radius: 18px;

  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 65%);
}

.final-grade-score {
  flex: 0 0 auto;

  width: 180px;
  min-height: 150px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  color: #ffffff;

  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));

  box-shadow: 0 15px 32px rgba(37, 99, 235, 0.18);
}

.final-grade-score span {
  margin-bottom: 7px;

  color: rgba(255, 255, 255, 0.75);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 1.2px;
}

.final-grade-score strong {
  font-size: 48px;
  line-height: 1;

  letter-spacing: -2px;
}

.final-grade-score small {
  margin-top: 6px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 13px;
}

.final-grade-summary h2 {
  margin: 14px 0 8px;

  color: #0f172a;

  font-size: 23px;
}

.final-grade-summary p {
  margin: 0 0 10px;

  color: #64748b;

  font-size: 13px;

  line-height: 1.6;
}

.final-grade-summary small {
  color: #94a3b8;

  font-size: 11px;
}

/* PANEL */

.final-grade-panel {
  overflow: hidden;

  border: 1px solid #e2e8f0;
  border-radius: 16px;

  background: #ffffff;
}

.final-grade-panel-heading {
  padding: 20px 22px;

  border-bottom: 1px solid #edf1f5;
}

.final-grade-panel-heading h3 {
  margin: 5px 0 3px;

  color: #0f172a;

  font-size: 17px;
}

.final-grade-panel-heading p {
  margin: 0;

  color: #94a3b8;

  font-size: 11px;
}

.final-feedback-text {
  padding: 22px;

  color: #334155;

  font-size: 13px;

  line-height: 1.75;
}

.final-feedback-text p {
  margin-top: 0;
}

/* CRITERIA */

.final-grade-criteria {
  display: grid;
}

.final-grade-criterion {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    110px
    150px;

  align-items: center;

  gap: 20px;

  padding: 18px 22px;

  border-bottom: 1px solid #edf1f5;
}

.final-grade-criterion:last-child {
  border-bottom: 0;
}

.final-grade-criterion-info strong,
.final-grade-criterion-info span,
.final-grade-criterion-score span,
.final-grade-criterion-score strong,
.final-grade-criterion-value span,
.final-grade-criterion-value strong {
  display: block;
}

.final-grade-criterion-info strong {
  color: #0f172a;

  font-size: 13px;
}

.final-grade-criterion-info span {
  margin-top: 4px;

  color: #94a3b8;

  font-size: 10px;
}

.final-grade-criterion-score span,
.final-grade-criterion-value span {
  margin-bottom: 4px;

  color: #94a3b8;

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: 0.5px;
}

.final-grade-criterion-score strong {
  color: var(--blue-600);

  font-size: 16px;
}

.final-grade-criterion-value strong {
  color: #0f172a;

  font-size: 16px;
}

/* MOBILE */

@media (max-width: 700px) {
  .final-grade-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .final-grade-score {
    width: 100%;
  }

  .final-grade-criterion {
    grid-template-columns: 1fr 1fr;
  }

  .final-grade-criterion-info {
    grid-column: 1 / -1;
  }
}

/* ==========================================================
   DECIMAL RUBRIC SCORE INPUT (1.00 - 4.00)
========================================================== */

.final-rubric-decimal-table .rubric-descriptor-cell {
  min-width: 210px;
  vertical-align: top;
  color: #475569;
  font-size: 11px;
  line-height: 1.55;
}

.final-rubric-decimal-table .decimal-score-cell {
  min-width: 125px;
  vertical-align: middle;
  text-align: center;
}

.score-decimal-input {
  width: 100px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #bfd0e5;
  border-radius: 9px;
  color: #0f172a;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.score-decimal-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.decimal-score-cell > small {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 9px;
}
