/* =============================================================================
   LENTERA - Jurnal Literasi SD Negeri Kowang (Kelas 2)
   Desain Claymorphism: Puffy 3D Plasticine, Tactile, Fun, Unik & Tanpa Emoji
   ============================================================================= */

:root {
  /* Palet Warna Claymorphism */
  --clay-bg-canvas: #F5F1E9;
  --clay-card-white: #FFFFFF;
  --clay-text-main: #2D3436;
  --clay-text-muted: #636E72;
  
  --clay-orange: #FF9F43;
  --clay-orange-dark: #EE5A24;
  --clay-orange-light: #FFEAA7;

  --clay-mint: #2ED573;
  --clay-mint-dark: #10AC84;
  --clay-mint-light: #E3FCEF;

  --clay-blue: #54A0FF;
  --clay-blue-dark: #2E86DE;
  --clay-blue-light: #EBF3FF;

  --clay-pink: #FF6B81;
  --clay-pink-dark: #EE5253;
  --clay-pink-light: #FFE8EC;

  /* Font Families */
  --f-heading: 'Fredoka', cursive, sans-serif;
  --f-body: 'Nunito', system-ui, -apple-system, sans-serif;

  /* Clay Radii */
  --clay-r-sm: 14px;
  --clay-r-md: 22px;
  --clay-r-lg: 30px;
  --clay-r-pill: 999px;

  /* Efek Bayangan Claymorphism (3D Plastisin) */
  --clay-shadow-card: 
    8px 8px 18px rgba(180, 170, 155, 0.45),
    -8px -8px 18px rgba(255, 255, 255, 0.95),
    inset 3px 3px 6px rgba(255, 255, 255, 0.8),
    inset -3px -3px 6px rgba(180, 170, 155, 0.15);

  --clay-shadow-inset: 
    inset 4px 4px 8px rgba(180, 170, 155, 0.25),
    inset -4px -4px 8px rgba(255, 255, 255, 0.9);

  --clay-shadow-btn-orange: 
    5px 6px 14px rgba(238, 90, 36, 0.4),
    inset 2px 2px 4px rgba(255, 255, 255, 0.6),
    inset -2px -2px 4px rgba(0, 0, 0, 0.15);

  --clay-shadow-btn-mint: 
    5px 6px 14px rgba(16, 172, 132, 0.35),
    inset 2px 2px 4px rgba(255, 255, 255, 0.6),
    inset -2px -2px 4px rgba(0, 0, 0, 0.15);

  --clay-shadow-item: 
    4px 5px 12px rgba(190, 180, 165, 0.35),
    -4px -4px 10px rgba(255, 255, 255, 0.9),
    inset 2px 2px 4px rgba(255, 255, 255, 0.7);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--f-body);
  color: var(--clay-text-main);
  background-color: var(--clay-bg-canvas);
  background-image: 
    radial-gradient(#E8E0D2 1.8px, transparent 1.8px),
    radial-gradient(#FFFFFF 1.8px, var(--clay-bg-canvas) 1.8px);
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.5;
  padding: 0;
  margin: 0;
}

/* =============================================================================
   CONTAINER UTAMA MOBILE-ONLY (CLAYMORPHIC SHELL)
   ============================================================================= */
.clay-mobile-container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: #FCFAF6;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (min-width: 441px) {
  body {
    padding: 16px 10px;
  }
  .clay-mobile-container {
    min-height: calc(100vh - 32px);
    border-radius: var(--clay-r-lg);
    box-shadow: 
      12px 14px 30px rgba(180, 168, 150, 0.4),
      -8px -8px 24px rgba(255, 255, 255, 0.9);
    border: 3px solid #EFEAE0;
  }
}

/* =============================================================================
   HEADER CLAYMORPHISM (OPTIMASI MOBILE & NOTCH PROTECTION)
   ============================================================================= */
.clay-header {
  background: #FFFDF9;
  border-bottom: 2px solid #EFE8DA;
  padding-top: max(16px, env(safe-area-inset-top, 16px));
  padding-bottom: 11px;
  padding-left: max(12px, env(safe-area-inset-left, 12px));
  padding-right: max(12px, env(safe-area-inset-right, 12px));
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(190, 180, 165, 0.16);
  width: 100%;
  box-sizing: border-box;
}

.header-inner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-logo-clay {
  width: 40px;
  height: 40px;
  border-radius: var(--clay-r-sm);
  background: #FFFFFF;
  box-shadow: var(--clay-shadow-item);
  padding: 2.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #F0E8DC;
  flex-shrink: 0;
}

.header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.brand-title {
  font-family: var(--f-heading);
  font-size: 19px;
  font-weight: 700;
  color: #D9480F;
  line-height: 1.25;
  letter-spacing: 0.4px;
  margin: 0;
  padding-top: 1px;
  padding-bottom: 1px;
}

.brand-subtitle {
  font-size: 10.5px;
  font-weight: 700;
  color: #795548;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.clay-btn-icon {
  background: #FFFDF9;
  border: 2px solid #F0E6D6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #795548;
  cursor: pointer;
  box-shadow: var(--clay-shadow-item);
  transition: all 0.15s ease;
  flex-shrink: 0;
  position: relative;
}

.clay-btn-icon.bgm-active {
  border-color: #FF9F43;
  color: #EE5A24;
  background: #FFF9F0;
  box-shadow: 
    0 0 10px rgba(255, 159, 67, 0.4),
    var(--clay-shadow-item);
  animation: bgmPulse 2s infinite ease-in-out;
}

@keyframes bgmPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.clay-btn-icon:active {
  transform: translateY(2px) scale(0.94);
  box-shadow: var(--clay-shadow-inset);
}

.clay-pill-btn {
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: var(--clay-r-pill);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-role-clay {
  background: linear-gradient(135deg, #54A0FF 0%, #2E86DE 100%);
  color: #FFFFFF;
  box-shadow: 
    3px 4px 10px rgba(46, 134, 222, 0.35),
    inset 1px 1px 3px rgba(255, 255, 255, 0.6);
}

@media (max-width: 360px) {
  .brand-title {
    font-size: 17px;
  }
  .brand-subtitle {
    font-size: 9.5px;
  }
  .brand-logo-clay {
    width: 34px;
    height: 34px;
  }
  .clay-pill-btn {
    padding: 6px 9px;
    font-size: 10px;
  }
}

.btn-role-clay:active {
  transform: translateY(2px) scale(0.96);
}

/* =============================================================================
   PENGATURAN MULTI-SCREEN
   ============================================================================= */
.view-screen {
  display: none;
  padding: 16px;
  flex: 1;
}

.view-screen.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: clayPopIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes clayPopIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* =============================================================================
   LAYAR 1: HERO BANNER & DAFTAR 28 MURID
   ============================================================================= */
.clay-hero-card {
  background: #FFFDF9;
  border-radius: var(--clay-r-md);
  box-shadow: var(--clay-shadow-card);
  padding: 18px 16px;
  text-align: center;
  border: 2px solid #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-image-frame {
  width: 100%;
  max-width: 260px;
  border-radius: var(--clay-r-md);
  overflow: hidden;
  box-shadow: 
    6px 8px 16px rgba(190, 180, 165, 0.4),
    inset 2px 2px 4px rgba(255, 255, 255, 0.8);
  border: 4px solid #FFFFFF;
  margin-bottom: 12px;
}

.hero-main-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-badge-pill {
  display: inline-block;
  background: linear-gradient(135deg, #10AC84, #059669);
  color: #FFFFFF;
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--clay-r-pill);
  box-shadow: 0 3px 8px rgba(16, 172, 132, 0.3);
  margin-bottom: 8px;
}

.hero-heading {
  font-family: var(--f-heading);
  font-size: 17px;
  font-weight: 700;
  color: #9A3412;
  margin-bottom: 2px;
}

.hero-subtext {
  font-size: 12px;
  color: var(--clay-text-muted);
}

/* Kotak Pencarian Clay */
.clay-search-box {
  background: #FFFDF9;
  border-radius: var(--clay-r-pill);
  box-shadow: var(--clay-shadow-inset);
  border: 2px solid #EFE7DA;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-svg {
  color: #94A3B8;
  flex-shrink: 0;
}

.clay-search-box input {
  width: 100%;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--clay-text-main);
  outline: none;
}

.clay-clear-btn {
  background: #CBD5E1;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
}

.clay-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.info-title {
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.info-date-pill {
  font-size: 11px;
  font-weight: 700;
  color: #D9480F;
  background: #FFF3EB;
  padding: 3px 10px;
  border-radius: var(--clay-r-pill);
  box-shadow: var(--clay-shadow-item);
}

/* Grid Kartu Murid */
.clay-students-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clay-student-card {
  background: #FFFDF9;
  border-radius: var(--clay-r-md);
  box-shadow: var(--clay-shadow-item);
  border: 2px solid #FFFFFF;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.16s ease;
}

.clay-student-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    6px 8px 16px rgba(180, 170, 155, 0.4),
    -4px -4px 12px rgba(255, 255, 255, 0.95);
}

.clay-student-card:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: var(--clay-shadow-inset);
}

.card-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.clay-avatar-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  border: 2.5px solid #FFFFFF;
  flex-shrink: 0;
}

.student-clay-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-name-text {
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--clay-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clay-tag-gender {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--clay-r-pill);
}

.tag-p { background: #FFE4E6; color: #BE123C; }
.tag-l { background: #DBEAFE; color: #1E40AF; }

.card-meta-text {
  font-size: 11px;
  color: var(--clay-text-muted);
}

.card-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Clay Status Badges */
.clay-status-pill {
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--clay-r-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-done {
  background: #E3FCEF;
  color: #059669;
  box-shadow: 0 2px 6px rgba(16, 172, 132, 0.2);
}

.pill-pending {
  background: #F1F5F9;
  color: #64748B;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.05);
}

.svg-arrow-chevron {
  color: #CBD5E1;
}

/* =============================================================================
   LAYAR 2: FORMULIR JURNAL CLAY
   ============================================================================= */
.nav-back-bar {
  display: flex;
  align-items: center;
}

.clay-back-btn {
  background: #FFFDF9;
  border: 1.5px solid #F0E6D6;
  border-radius: var(--clay-r-pill);
  padding: 6px 14px;
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 700;
  color: #D9480F;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--clay-shadow-item);
  transition: all 0.15s ease;
}

.clay-back-btn:active {
  transform: translateY(2px) scale(0.96);
  box-shadow: var(--clay-shadow-inset);
}

/* Profil Murid Terpilih */
.clay-profile-card {
  background: #FFFDF9;
  border-radius: var(--clay-r-md);
  box-shadow: var(--clay-shadow-card);
  border: 2px solid #FFFFFF;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-frame {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 3px solid #FFFFFF;
  flex-shrink: 0;
}

.clay-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text-content {
  flex: 1;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.profile-name-title {
  font-family: var(--f-heading);
  font-size: 16px;
  font-weight: 700;
  color: #7A3306;
}

.clay-badge-gender {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--clay-r-pill);
}

.profile-sub-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #5C6274;
}

.clay-absen-tag {
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 800;
  color: #1E40AF;
  background: #DBEAFE;
  padding: 2px 8px;
  border-radius: var(--clay-r-pill);
}

.profile-meta-line {
  font-size: 10px;
  color: #64748B;
  margin-top: 3px;
}

/* Card Form Clay */
.clay-card {
  background: #FFFDF9;
  border-radius: var(--clay-r-md);
  box-shadow: var(--clay-shadow-card);
  border: 2px solid #FFFFFF;
  padding: 16px;
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px dashed #F0E8DA;
}

.header-icon-book {
  width: 42px;
  height: 42px;
  border-radius: var(--clay-r-sm);
  box-shadow: var(--clay-shadow-item);
  object-fit: cover;
  flex-shrink: 0;
}

.form-title {
  font-family: var(--f-heading);
  font-size: 15px;
  font-weight: 700;
  color: #D9480F;
}

.form-subtitle {
  font-size: 11px;
  color: var(--clay-text-muted);
}

.form-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.clay-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.clay-input-group label {
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.clay-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #EFE7DA;
  border-radius: var(--clay-r-sm);
  background: #FFFDFB;
  box-shadow: var(--clay-shadow-inset);
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--clay-text-main);
  outline: none;
  transition: all 0.15s ease;
}

.clay-input:focus {
  border-color: #FF9F43;
  box-shadow: 
    inset 3px 3px 6px rgba(255, 159, 67, 0.2),
    0 0 0 3px rgba(255, 159, 67, 0.15);
}

.clay-textarea {
  resize: vertical;
  min-height: 85px;
}

.clay-hint-text {
  font-size: 11px;
  color: #64748B;
  line-height: 1.3;
}

/* Tombol Simpan Claymorphism */
.clay-btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #FF9F43 0%, #EE5A24 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--clay-r-pill);
  font-family: var(--f-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--clay-shadow-btn-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  transition: all 0.15s ease;
}

.clay-btn-submit:active {
  transform: translateY(3px) scale(0.97);
  box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.25);
}

/* Riwayat Bacaan Clay */
.history-clay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.history-title-flex {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hist-head-svg {
  color: #059669;
}

.history-title-flex h4 {
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
}

.clay-counter-badge {
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #E3FCEF;
  padding: 2px 8px;
  border-radius: var(--clay-r-pill);
  box-shadow: var(--clay-shadow-item);
}

.clay-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clay-history-item {
  background: #FFFDF9;
  border-radius: var(--clay-r-sm);
  box-shadow: var(--clay-shadow-item);
  border: 1.5px solid #F0EAE0;
  padding: 10px 12px;
}

.hist-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.hist-day-badge {
  font-family: var(--f-heading);
  font-size: 10px;
  font-weight: 700;
  color: #EA580C;
  background: #FFF3EB;
  padding: 1px 7px;
  border-radius: 4px;
}

.hist-date-text {
  font-size: 10px;
  color: #64748B;
  font-weight: 600;
}

.hist-book-heading {
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 4px;
}

.hist-info-bubble {
  background: #F8FAFC;
  border-left: 3px solid var(--clay-mint);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  white-space: pre-wrap;
  margin-bottom: 6px;
}

.clay-btn-delete {
  background: none;
  border: none;
  color: #EF4444;
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.empty-clay-state {
  text-align: center;
  padding: 20px 10px;
  color: #94A3B8;
  font-size: 12px;
}

/* =============================================================================
   LAYAR 3: DASBOR PANTAUAN GURU (CLAYMORPHISM)
   ============================================================================= */
.teacher-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-print-clay {
  background: linear-gradient(135deg, #10AC84, #059669);
  color: #FFFFFF;
  box-shadow: var(--clay-shadow-btn-mint);
  transition: all 0.15s ease;
}
.btn-print-clay:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(16, 172, 132, 0.4);
}

.btn-logout-clay,
.btn-lock-clay {
  background: linear-gradient(135deg, #FF6B6B, #EE5253);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(238, 82, 83, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-logout-clay:hover,
.btn-lock-clay:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(238, 82, 83, 0.4);
}
.btn-logout-clay:active,
.btn-lock-clay:active {
  transform: translateY(1px) scale(0.97);
}

.teacher-clay-banner {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.teacher-banner-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--clay-r-sm);
  background: #FFFFFF;
  padding: 3px;
  box-shadow: var(--clay-shadow-item);
  flex-shrink: 0;
}

.teacher-banner-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.teacher-banner-info h2 {
  font-family: var(--f-heading);
  font-size: 15px;
  font-weight: 700;
  color: #312E81;
}

.teacher-banner-info p {
  font-size: 11px;
  color: #4338CA;
  font-weight: 600;
}

/* Filter Card Guru */
.teacher-filter-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-date-row label {
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.filter-date-row input {
  max-width: 170px;
  padding: 7px 10px;
}

.clay-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.clay-stat-pill {
  border-radius: var(--clay-r-sm);
  padding: 8px;
  text-align: center;
  box-shadow: var(--clay-shadow-item);
  border: 1.5px solid #FFFFFF;
}

.stat-total { background: #F8FAFC; color: #1E293B; }
.stat-done { background: #E3FCEF; color: #059669; }
.stat-pending { background: #FFF3EB; color: #C2410C; }

.stat-digit {
  font-family: var(--f-heading);
  font-size: 19px;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.stat-caption {
  font-size: 10px;
  font-weight: 700;
}

/* Tab Segmented Filter */
.clay-tab-segmented {
  display: flex;
  gap: 6px;
  background: #EFE8DA;
  padding: 4px;
  border-radius: var(--clay-r-pill);
  box-shadow: var(--clay-shadow-inset);
}

.seg-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 6px 4px;
  border-radius: var(--clay-r-pill);
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn.active {
  background: #FFFFFF;
  color: #1E293B;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Daftar Pantauan Siswa Guru */
.teacher-monitor-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.monitor-info-label {
  font-size: 11px;
  color: #64748B;
  padding: 0 4px;
}

.clay-teacher-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clay-teacher-row {
  background: #FFFDF9;
  border-radius: var(--clay-r-md);
  box-shadow: var(--clay-shadow-item);
  border: 2px solid #FFFFFF;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.clay-teacher-row:hover {
  transform: translateY(-2px);
}

.clay-teacher-row.status-done {
  border-left: 5px solid var(--clay-mint);
}

.clay-teacher-row.status-pending {
  border-left: 5px solid #CBD5E1;
}

.t-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.t-student-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.t-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t-num-badge {
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 800;
  color: #1E40AF;
  background: #DBEAFE;
  padding: 1px 6px;
  border-radius: 4px;
}

.t-name-txt {
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--clay-text-main);
}

.t-body-content {
  font-size: 12px;
  padding-left: 40px;
}

.t-book-title {
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.t-info-bubble {
  color: #475569;
  background: #F8FAFC;
  padding: 5px 8px;
  border-radius: 4px;
  line-height: 1.3;
}

.t-empty-notice {
  color: #94A3B8;
  font-style: italic;
  font-size: 11px;
}

/* =============================================================================
   LAYAR 0: KARTU MODE LITERASI & NUMERASI (CLAYMORPHISM BESAR & MENARIK)
   ============================================================================= */
.clay-mode-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

.clay-mode-card {
  background: #FFFFFF;
  border-radius: var(--clay-r-lg);
  box-shadow: var(--clay-shadow-card);
  border: 3px solid #FFFFFF;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
  position: relative;
}

.clay-mode-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    12px 14px 26px rgba(180, 168, 150, 0.45),
    -10px -10px 22px rgba(255, 255, 255, 0.95);
}

.clay-mode-card:active {
  transform: translateY(2px) scale(0.99);
}

.card-literacy {
  border-color: #FFE6D5;
}

.card-numeracy {
  border-color: #E2F0FD;
}

.mode-card-cover-wrap {
  width: 100%;
  height: 190px;
  position: relative;
  overflow: hidden;
  background: #EFE8DC;
}

.mode-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.clay-mode-card:hover .mode-card-cover-img {
  transform: scale(1.04);
}

.mode-tag-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--clay-r-pill);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.3px;
}

.tag-literacy {
  background: #FF6B81;
  color: #FFFFFF;
}

.tag-numeracy {
  background: #2E86DE;
  color: #FFFFFF;
}

.mode-card-body {
  padding: 16px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mode-card-title {
  font-family: var(--f-heading);
  font-size: 21px;
  font-weight: 700;
  color: var(--clay-text-main);
  line-height: 1.2;
}

.mode-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--clay-shadow-item);
}

.icon-literacy {
  background: #FFF0EB;
  color: #EE5A24;
  border: 2px solid #FFDAC8;
}

.icon-numeracy {
  background: #EDF5FF;
  color: #2E86DE;
  border: 2px solid #D0E4FF;
}

.mode-card-desc {
  font-size: 13px;
  color: var(--clay-text-muted);
  line-height: 1.45;
}

.mode-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-item {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--clay-r-pill);
  background: #F4EFE6;
  color: #57606F;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.clay-btn-mode {
  margin-top: 4px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--clay-r-pill);
  border: none;
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mode-literacy {
  background: linear-gradient(135deg, #FF9F43, #EE5A24);
  color: #FFFFFF;
  box-shadow: var(--clay-shadow-btn-orange);
}

.btn-mode-numeracy {
  background: linear-gradient(135deg, #54A0FF, #2E86DE);
  color: #FFFFFF;
  box-shadow: 5px 6px 14px rgba(46, 134, 222, 0.4), inset 2px 2px 4px rgba(255, 255, 255, 0.6);
}

.clay-btn-mode:active {
  transform: translateY(2px);
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

/* Info Summary Card */
.clay-info-summary-card {
  background: #FFFDF9;
  border-radius: var(--clay-r-md);
  box-shadow: var(--clay-shadow-item);
  border: 2px solid #FFFFFF;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.summary-icon-clay {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #E8F4FD;
  color: #0984E3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.08);
}

.summary-text-block h4 {
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--clay-text-main);
}

.summary-text-block p {
  font-size: 11px;
  color: var(--clay-text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

/* Banner Program Terpilih */
.clay-program-banner {
  background: #FFFFFF;
  border-radius: var(--clay-r-md);
  box-shadow: var(--clay-shadow-card);
  border: 2px solid #FFFFFF;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.program-banner-badge {
  display: inline-block;
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 700;
  color: #D9480F;
  background: #FFE8D6;
  padding: 3px 10px;
  border-radius: var(--clay-r-pill);
  margin-bottom: 6px;
}

.program-banner-badge.badge-num {
  color: #1E40AF;
  background: #DBEAFE;
}

.program-banner-title {
  font-family: var(--f-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--clay-text-main);
  line-height: 1.2;
}

.program-banner-subtitle {
  font-size: 12px;
  color: var(--clay-text-muted);
  margin-top: 4px;
}

/* =============================================================================
   LAYAR 3: JURNAL NUMERASIKU (5 BAGIAN UTAMA)
   ============================================================================= */
.numeracy-top-card {
  background: linear-gradient(135deg, #FFFFFF, #F0F7FF);
  border: 2px solid #D6E8FC;
  margin-bottom: 12px;
  padding: 14px 16px;
}

.numeracy-header-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.numeracy-sparkle-box {
  width: 44px;
  height: 44px;
  border-radius: var(--clay-r-sm);
  background: linear-gradient(135deg, #54A0FF, #2E86DE);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 4px 5px 12px rgba(46, 134, 222, 0.35);
}

.numeracy-main-title {
  font-family: var(--f-heading);
  font-size: 20px;
  font-weight: 700;
  color: #1E3A8A;
  line-height: 1.15;
}

.numeracy-lead-text {
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}

/* Form Section Card & Badges */
.form-section-card {
  margin-bottom: 14px;
  padding: 16px;
}

.section-badge-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed #EAE2D2;
}

.section-step-num {
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  background: linear-gradient(135deg, #FF9F43, #EE5A24);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 6px rgba(238, 90, 36, 0.3);
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
}

.section-head-title {
  font-family: var(--f-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--clay-text-main);
  line-height: 1.2;
}

.section-head-desc {
  font-size: 11px;
  color: var(--clay-text-muted);
  margin-top: 2px;
}

/* 01. Student Identity Widget */
.clay-student-identity-widget {
  background: #F9F6F0;
  border-radius: var(--clay-r-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--clay-shadow-inset);
}

.identity-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #FFFFFF;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.widget-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity-info-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.identity-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.identity-name-text {
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--clay-text-main);
}

.identity-class-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.identity-class-pill {
  font-size: 10px;
  font-weight: 700;
  color: #1E40AF;
  background: #DBEAFE;
  padding: 1px 6px;
  border-radius: 4px;
}

.identity-school-text {
  font-size: 11px;
  color: #64748B;
}

.identity-absen-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FFFFFF;
  padding: 4px 8px;
  border-radius: var(--clay-r-sm);
  box-shadow: var(--clay-shadow-item);
}

.identity-absen-lbl {
  font-size: 9px;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
}

.identity-absen-val {
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}

/* 02. Activity Selection Grid */
.clay-activity-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clay-activity-tile {
  cursor: pointer;
  display: block;
}

.clay-activity-tile input[type="radio"] {
  display: none;
}

.activity-tile-content {
  background: #FFFFFF;
  border: 2px solid #EFEAE0;
  border-radius: var(--clay-r-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--clay-shadow-item);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clay-activity-tile input[type="radio"]:checked + .activity-tile-content {
  border-color: #2E86DE;
  background: #F4F9FF;
  box-shadow: 
    0 4px 12px rgba(46, 134, 222, 0.25),
    inset 2px 2px 4px rgba(255, 255, 255, 0.8);
  transform: scale(1.01);
}

.activity-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.08);
}

.bubble-mint { background: #E6FBF0; color: #10AC84; }
.bubble-orange { background: #FFF4E6; color: #D9480F; }
.bubble-blue { background: #EBF5FF; color: #1E40AF; }
.bubble-pink { background: #FFE8EC; color: #EE5253; }

.activity-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-title {
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--clay-text-main);
  line-height: 1.25;
}

.activity-sub {
  font-size: 11px;
  color: var(--clay-text-muted);
  margin-top: 1px;
}

.activity-check-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.check-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.15s ease;
}

.clay-activity-tile input[type="radio"]:checked + .activity-tile-content .activity-check-indicator {
  border-color: #2E86DE;
  background: #FFFFFF;
}

.clay-activity-tile input[type="radio"]:checked + .activity-tile-content .check-dot {
  background: #2E86DE;
}

/* 04. Refleksi Perasaan (Zero Unicode Emojis - Clay SVGs) */
.feeling-section-label {
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--clay-text-main);
  display: block;
  margin-bottom: 8px;
}

.clay-feelings-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.clay-feeling-btn {
  cursor: pointer;
  display: block;
}

.clay-feeling-btn input[type="radio"] {
  display: none;
}

.feeling-inner-badge {
  background: #FFFFFF;
  border: 2px solid #EFEAE0;
  border-radius: var(--clay-r-md);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--clay-shadow-item);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feeling-clay-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.08);
}

.icon-happy {
  background: #E8FBF1;
  color: #10AC84;
}

.icon-neutral {
  background: #EBF5FF;
  color: #2E86DE;
}

.icon-difficult {
  background: #FFF1E6;
  color: #E67E22;
}

.feeling-text {
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.clay-feeling-btn input[type="radio"]:checked + .feeling-inner-badge {
  transform: translateY(-3px) scale(1.03);
}

.feeling-happy input[type="radio"]:checked + .feeling-inner-badge {
  border-color: #10AC84;
  background: #F0FDF4;
  box-shadow: 0 6px 14px rgba(16, 172, 132, 0.3);
}

.feeling-neutral input[type="radio"]:checked + .feeling-inner-badge {
  border-color: #2E86DE;
  background: #F0F7FF;
  box-shadow: 0 6px 14px rgba(46, 134, 222, 0.3);
}

.feeling-difficult input[type="radio"]:checked + .feeling-inner-badge {
  border-color: #E67E22;
  background: #FFF7ED;
  box-shadow: 0 6px 14px rgba(230, 126, 34, 0.3);
}

/* Tingkat Kemandirian */
.clay-independence-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.clay-indep-pill {
  cursor: pointer;
  display: block;
}

.clay-indep-pill input[type="radio"] {
  display: none;
}

.indep-pill-content {
  background: #FFFFFF;
  border: 2px solid #EFEAE0;
  border-radius: var(--clay-r-pill);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: var(--clay-shadow-item);
  transition: all 0.15s ease;
}

.indep-icon-frame {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF9F43;
}

.indep-label-text {
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-align: center;
  line-height: 1.1;
}

.clay-indep-pill input[type="radio"]:checked + .indep-pill-content {
  border-color: #FF9F43;
  background: #FFF9F0;
  box-shadow: 0 4px 10px rgba(255, 159, 67, 0.3);
  transform: scale(1.02);
}

.clay-indep-pill input[type="radio"]:checked + .indep-pill-content .indep-label-text {
  color: #D97706;
}

/* Tombol Aksi Numerasi */
.clay-btn-secondary {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--clay-r-pill);
  border: 2px solid #E2D9CB;
  background: #FFFDF9;
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--clay-shadow-item);
  transition: all 0.15s ease;
}

.clay-btn-secondary:hover {
  background: #F8F5EE;
}

.clay-btn-secondary:active {
  transform: translateY(2px);
}

.btn-submit-numeracy {
  background: linear-gradient(135deg, #2ED573, #10AC84);
  box-shadow: var(--clay-shadow-btn-mint);
}

/* Modal Pratinjau Clay */
.clay-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 52, 54, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  padding: 16px;
}

.clay-modal-overlay.active {
  display: flex;
}

.clay-modal-card {
  background: #FCFAF6;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  border-radius: var(--clay-r-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  border: 3px solid #FFFFFF;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.9) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header-row {
  background: #FFFDF9;
  padding: 14px 16px;
  border-bottom: 2px solid #EFE8DA;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-badge-chip {
  font-size: 10px;
  font-weight: 700;
  color: #1E40AF;
  background: #DBEAFE;
  padding: 1px 8px;
  border-radius: var(--clay-r-pill);
}

.modal-title-text {
  font-family: var(--f-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--clay-text-main);
  margin-top: 2px;
}

.modal-close-btn {
  background: #F1ECE1;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  box-shadow: var(--clay-shadow-item);
}

.modal-scroll-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.preview-clay-sheet {
  background: #FFFFFF;
  border-radius: var(--clay-r-md);
  border: 2px dashed #E2D9CB;
  padding: 16px;
  box-shadow: var(--clay-shadow-item);
}

.modal-action-footer {
  padding: 12px 16px;
  background: #FFFDF9;
  border-top: 2px solid #EFE8DA;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Teacher Dashboard Type Tabs */
.teacher-type-tabs {
  display: flex;
  gap: 6px;
  background: #F1EBE1;
  padding: 4px;
  border-radius: var(--clay-r-pill);
  box-shadow: var(--clay-shadow-inset);
  margin-bottom: 8px;
}

.type-tab-btn {
  flex: 1;
  padding: 8px 6px;
  border: none;
  background: transparent;
  border-radius: var(--clay-r-pill);
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.type-tab-btn.active {
  background: #FFFFFF;
  color: #1E293B;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Utility Margin */
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }

/* =============================================================================
   FOOTER & IDENTITAS PENGEMBANG
   ============================================================================= */
.clay-footer {
  text-align: center;
  padding: 20px 16px max(24px, env(safe-area-inset-bottom, 24px)) 16px;
  font-size: 11px;
  color: #94A3B8;
  border-top: 1.5px dashed #EAE2D2;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.clay-creator-card {
  width: 100%;
  max-width: 360px;
  background: #FFFFFF;
  border: 2px solid #F0EAE0;
  border-radius: var(--clay-r-md);
  padding: 12px 14px;
  box-shadow: var(--clay-shadow-item);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.clay-creator-card:active {
  transform: scale(0.99);
}

.creator-card-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.creator-mini-avatar-wrap {
  width: 64px;
  height: 78px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: teacherMiniFloat 3.4s ease-in-out infinite;
}

.creator-mini-avatar-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  background: transparent;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.08));
}

.creator-info-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.creator-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFF3EB;
  color: #EA580C;
  font-family: var(--f-heading);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--clay-r-pill);
  border: 1px solid #FFE4D6;
}

.creator-name-text {
  font-family: var(--f-heading);
  font-size: 13.5px;
  font-weight: 800;
  color: #1E293B;
  letter-spacing: 0.2px;
  margin: 1px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: left;
}

.creator-sub-text {
  font-size: 10.5px;
  color: #64748B;
  font-weight: 600;
  text-align: left;
}

.creator-speech-bubble-mini {
  background: #FFFDF9;
  border: 1.5px dashed #FED7AA;
  border-radius: 14px;
  padding: 6px 10px;
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.35;
  width: 100%;
}

.speech-sparkle {
  font-size: 12px;
  flex-shrink: 0;
}

@keyframes teacherMiniFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.footer-bottom-lead {
  font-family: var(--f-heading);
  font-size: 11.5px;
  color: #64748B;
  font-weight: 700;
}

.footer-bottom-copy {
  font-size: 10.5px;
  color: #94A3B8;
}

.clay-toast-box {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1E293B;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--clay-r-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2000;
}

.clay-toast-box.show {
  transform: translateX(-50%) translateY(0);
}

.toast-check-svg {
  color: #10B981;
}

/* =============================================================================
   FITUR UNGGAH FOTO CLAYMORPHISM (LITERASI & NUMERASI)
   ============================================================================= */
.clay-photo-upload-zone {
  background: #FFFDF9;
  border: 2px dashed #D6CBBC;
  border-radius: var(--clay-r-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.clay-photo-upload-zone:hover {
  border-color: #FF9F43;
  background: #FFF8F0;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 159, 67, 0.15);
}

.photo-upload-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
}

.photo-upload-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFE8D6, #FFDAC8);
  color: #D9480F;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--clay-shadow-item);
}

.photo-upload-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo-upload-title {
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--clay-text-main);
}

.photo-upload-sub {
  font-size: 11px;
  color: var(--clay-text-muted);
  line-height: 1.3;
}

.photo-preview-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.photo-preview-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #F1ECE1;
  flex-shrink: 0;
}

.photo-status-badge {
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  padding: 4px 10px;
  border-radius: var(--clay-r-pill);
}

.btn-remove-photo {
  background: #FFE8E8;
  color: #DC2626;
  border: 1.5px solid #FECACA;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

.btn-remove-photo:hover {
  background: #DC2626;
  color: #FFFFFF;
  transform: scale(1.1);
}

/* Tampilan Foto di Riwayat & Modal Pratinjau */
.preview-photo-wrap, .hist-photo-box {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 6px 10px;
}

.preview-photo-img, .hist-photo-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.preview-photo-img:hover, .hist-photo-thumb:hover {
  transform: scale(1.05);
}

.photo-label-txt {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

/* Foto di Dasbor Pantauan Guru */
.t-photo-thumb-wrap {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.t-photo-thumb-wrap:hover {
  background: #E2E8F0;
}

.t-photo-mini-img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.t-photo-badge {
  font-size: 10px;
  font-weight: 700;
  color: #2563EB;
}

/* =============================================================================
   MODAL OTENTIKASI PIN GURU & LIGHTBOX FOTO
   ============================================================================= */
.auth-modal-card {
  max-width: 360px;
}

.auth-modal-body {
  padding: 20px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #D97706;
  border: 3px solid #FFFFFF;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.auth-card-title {
  font-family: var(--f-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--clay-text-main);
  margin-bottom: 4px;
}

.auth-card-desc {
  font-size: 12px;
  color: var(--clay-text-muted);
  line-height: 1.4;
  margin-bottom: 4px;
}

.badge-gold {
  background: #FEF3C7;
  color: #B45309;
}

.pin-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.pin-input {
  width: 100%;
  padding-right: 42px;
  font-size: 16px;
  letter-spacing: 2px;
  text-align: center;
}

.btn-toggle-pin {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.btn-toggle-pin:hover {
  color: #475569;
}

.pin-hint-row {
  margin-top: 6px;
  text-align: center;
}

.pin-hint-text {
  font-size: 11px;
  color: #64748B;
}

.auth-error-msg {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #DC2626;
  background: #FEE2E2;
  border: 1px solid #FECACA;
  padding: 6px 10px;
  border-radius: var(--clay-r-sm);
  text-align: center;
  animation: shakeModal 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.auth-footer-btns {
  width: 100%;
  margin-top: 14px;
  padding: 0;
  border: none;
  background: transparent;
}

@keyframes shakeModal {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.shake-card {
  animation: shakeModal 0.45s ease-in-out;
}

/* Lightbox Modal */
.clay-lightbox-card {
  background: #FFFFFF;
  border-radius: var(--clay-r-lg);
  border: 3px solid #FFFFFF;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #FFFDF9;
  border-bottom: 1.5px solid #EFE8DA;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 65vh;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-full-img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.lightbox-caption {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--clay-text-main);
  background: #FFFDF9;
  border-top: 1.5px solid #EFE8DA;
  text-align: center;
}

/* =============================================================================
   MODAL RANGKUMAN ISIAN PEMBIASAAN SISWA KHUSUS GURU
   ============================================================================= */
.summary-detail-modal-card {
  max-width: 440px;
}

.summary-student-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  padding: 12px 14px;
  border-radius: var(--clay-r-md);
  border: 1.5px solid #EFEAE0;
  box-shadow: var(--clay-shadow-item);
  margin-bottom: 12px;
}

.summary-avatar-frame {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: #FFF3EB;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.summary-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-info-col {
  flex: 1;
  min-width: 0;
}

.summary-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-student-name {
  font-family: var(--f-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--clay-text-main);
  line-height: 1.2;
}

.summary-meta-row {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}

.summary-date-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #0284C7;
  background: #E0F2FE;
  padding: 2px 8px;
  border-radius: var(--clay-r-pill);
  margin-top: 5px;
}

.summary-empty-state {
  text-align: center;
  padding: 28px 16px;
  background: #FFFFFF;
  border-radius: var(--clay-r-md);
  border: 1.5px dashed #CBD5E1;
  margin-bottom: 8px;
}

.summary-empty-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
}

.summary-section-box {
  background: #FFFFFF;
  border-radius: var(--clay-r-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: var(--clay-shadow-item);
  border: 1.5px solid #EFEAE0;
}

.summary-section-box.section-literacy {
  border-left: 4px solid #FF6B81;
}

.summary-section-box.section-numeracy {
  border-left: 4px solid #2563EB;
}

.summary-section-badge {
  margin-bottom: 8px;
}

.badge-lit-label {
  font-family: var(--f-heading);
  font-size: 10px;
  font-weight: 800;
  background: #FFE8D6;
  color: #D9480F;
  padding: 2px 8px;
  border-radius: var(--clay-r-pill);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-num-label {
  font-family: var(--f-heading);
  font-size: 10px;
  font-weight: 800;
  background: #DBEAFE;
  color: #1E40AF;
  padding: 2px 8px;
  border-radius: var(--clay-r-pill);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.summary-item-title label,
.summary-item-block label {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  display: block;
  margin-bottom: 2px;
}

.val-book-title {
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 700;
  color: #EA580C;
  margin-bottom: 8px;
}

.val-num-title {
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 700;
  color: #1D4ED8;
  margin-bottom: 8px;
}

.val-info-bubble {
  background: #F8FAFC;
  padding: 8px 10px;
  border-radius: var(--clay-r-sm);
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 8px;
  border: 1px solid #EEF2F6;
}

.summary-chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.summary-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.summary-chip.chip-feeling {
  background: #F0FDF4;
  color: #166534;
}

.summary-chip.chip-indep {
  background: #FEF3C7;
  color: #B45309;
}

.summary-parent-note {
  font-size: 11px;
  font-style: italic;
  color: #475569;
  background: #FFFBEB;
  padding: 6px 10px;
  border-radius: var(--clay-r-sm);
  border-left: 3px solid #F59E0B;
  margin-bottom: 8px;
}

.summary-photo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F1F5F9;
  padding: 6px 10px;
  border-radius: var(--clay-r-sm);
  cursor: pointer;
  margin-top: 6px;
  border: 1px solid #E2E8F0;
  transition: all 0.15s ease;
}

.summary-photo-preview:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
}

.summary-photo-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #FFFFFF;
}

.summary-photo-meta {
  display: flex;
  flex-direction: column;
}

.photo-title-txt {
  font-size: 11px;
  font-weight: 700;
  color: #1E293B;
}

.photo-hint-txt {
  font-size: 10px;
  color: #2563EB;
}

.summary-other-entries-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--clay-r-md);
  padding: 10px 12px;
  margin-top: 10px;
}

.other-entries-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
}

.other-entries-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.other-entry-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  background: #FFFFFF;
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.other-entry-pill:hover {
  border-color: #CBD5E1;
  background: #EFF6FF;
}

.other-date-txt {
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.other-type-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.other-type-badge.type-lit {
  background: #FFE8D6;
  color: #D9480F;
}

.other-type-badge.type-num {
  background: #DBEAFE;
  color: #1E40AF;
}

.other-title-txt {
  color: #64748B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.badge-green {
  background: #DCFCE7 !important;
  color: #15803D !important;
}

/* =============================================================================
   PRINT REKAP A4 KHUSUS GURU
   ============================================================================= */
@media print {
  body {
    background: #FFFFFF !important;
    padding: 0 !important;
  }
  .clay-mobile-container {
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
  }
  .no-print, .clay-header, .nav-back-bar, .teacher-nav-row, .clay-tab-segmented, .filter-date-row {
    display: none !important;
  }
  #view-student-list, #view-student-form {
    display: none !important;
  }
  #view-teacher-dashboard {
    display: block !important;
    padding: 0 !important;
  }
  .clay-teacher-row {
    border: 1px solid #999 !important;
    box-shadow: none !important;
    break-inside: avoid;
    margin-bottom: 6px;
  }
}
