/* ==========================================================================
   Google Classroom Premium UI - Ultra-Modern, Pixel-Perfect & Elegant Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Nunito:wght@400;500;600;700;800;900&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-heading: 'Nunito', 'Inter', sans-serif;
  --font-brand: 'Nunito', 'Inter', sans-serif;

  /* Surfaces & Backgrounds */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --border-subtle: #edf2f7;
  --border-card: #e2e8f0;
  --border-input: #e2e8f0;

  /* Typography Colors */
  --text-main: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Google Brand Colors (Refined & Elegant) */
  --google-blue: #1a73e8;
  --google-blue-hover: #1557b0;
  --google-blue-light: #e8f0fe;
  --google-blue-border: #d2e3fc;

  --google-green: #188038;
  --google-green-hover: #0d652d;
  --google-green-light: #e6f4ea;
  --google-green-border: #ceead6;
  --google-green-vibrant: #0f9d58;

  --google-red: #d93025;
  --google-red-hover: #b31412;
  --google-red-light: #fce8e6;

  --google-yellow: #f9ab00;
  --google-yellow-hover: #e37400;
  --google-yellow-light: #fef7e0;

  --google-purple: #8430ce;
  --google-purple-hover: #681da8;
  --google-purple-light: #f3e8fd;

  --google-orange: #e8710a;
  --google-orange-hover: #b05404;
  --google-orange-light: #feefe3;

  /* Shadows & Elevation */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-banner: 0 10px 30px -5px rgba(15, 157, 88, 0.35);
  --shadow-dropdown: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Dimensions */
  --topbar-height: 64px;
  --sidebar-width: 250px;
  --right-panel-width: 320px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  letter-spacing: -0.011em;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Material Symbols Icon Style */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================================================
   TOPBAR / NAVBAR
   ========================================================================== */
.classroom-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: linear-gradient(90deg, #09753c 0%, #0e9653 35%, #0b8043 65%, #065e2f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(5, 78, 38, 0.25);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: auto;
  flex-shrink: 0;
}

.topbar-left .btn-icon,
.topbar-right .btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.15s ease;
  position: relative;
}

.topbar-left .btn-icon:hover,
.topbar-right .btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.15s ease;
  position: relative;
}

.btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.brand-logo:hover {
  transform: scale(1.01);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  color: #ffffff;
  white-space: nowrap;
}

.brand-google {
  display: inline-flex;
  font-weight: 700;
  margin-right: 4px;
  color: #ffffff;
}

.brand-classroom {
  color: #ffffff;
  font-weight: 500;
}

/* Center Pill Search */
.topbar-center {
  flex: 1;
  max-width: 680px;
  margin: 0 24px;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  height: 46px;
  padding: 0 20px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.search-box:hover {
  background-color: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.42);
}

.search-box:focus-within {
  background-color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.search-box .material-symbols-outlined {
  color: rgba(255, 255, 255, 0.9);
  margin-right: 12px;
  font-size: 22px;
  transition: color 0.15s ease;
}

.search-box:focus-within .material-symbols-outlined {
  color: #0f9d58;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14.5px;
  color: #ffffff;
  font-family: inherit;
  font-weight: 400;
}

.search-box:focus-within .search-input {
  color: var(--text-main);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.search-box:focus-within .search-input::placeholder {
  color: #94a3b8;
}

/* Topbar Right Icons */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background-color: #ea4335;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  border-radius: 9px;
  padding: 0 4px;
  border: 2px solid #09753c;
}

.user-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
}

.user-avatar-btn:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.user-avatar-btn .animated-avatar-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   User Profile Dropdown Card (reference-image style)
   ========================================================================== */

/* Toggle button in topbar */
.udc-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  padding: 5px 12px 5px 6px;
  cursor: pointer;
  color: #ffffff;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  max-width: 220px;
}
.udc-toggle-btn:hover,
.udc-toggle-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.60);
}
.udc-toggle-btn::after { display: none !important; }

.udc-toggle-initials {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d652d 0%, #188038 100%);
  border: 2px solid #f0b429;
  color: #f0b429;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.udc-toggle-name {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.udc-toggle-caret {
  font-size: 18px;
  opacity: 0.85;
  transition: transform 0.25s ease;
}
.udc-toggle-btn[aria-expanded="true"] .udc-toggle-caret {
  transform: rotate(180deg);
}

/* Dropdown card container */
.udc-wrapper {
  position: relative;
}

.udc-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18), 0 4px 8px rgba(15, 23, 42, 0.06);
  z-index: 1100;
  background: #fff;
  animation: udcFadeIn 0.18s ease;
}

.udc-card[hidden] {
  display: none;
}

@keyframes udcFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Dark-green header */
.udc-header {
  background: linear-gradient(160deg, #0a3d1f 0%, #145a32 55%, #1a6b3a 100%);
  padding: 28px 20px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.udc-avatar-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #104d24 0%, #1a5c30 100%);
  border: 3px solid #f0b429;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(240, 180, 41, 0.18);
  margin-bottom: 4px;
}

.udc-avatar-initials {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #f0b429;
  letter-spacing: 1px;
}

.udc-header-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.udc-header-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  flex-wrap: wrap;
  justify-content: center;
}

.udc-meta-icon {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.udc-role-badge {
  color: #f0b429;
  font-weight: 700;
}

/* Menu item rows */
.udc-body {
  background: #ffffff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid #f1f5f9;
}

.udc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 12px;
  border: none;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
  color: inherit;
}
.udc-item:hover {
  background: #f0fdf4;
  text-decoration: none;
  color: inherit;
}

.udc-icon-box {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.udc-icon-box .material-symbols-outlined { font-size: 20px; }

.udc-icon-green {
  background: #dcfce7;
  color: #16a34a;
}

.udc-icon-red {
  background: #fee2e2;
  color: #dc2626;
}

.udc-item-text {
  flex: 1;
  min-width: 0;
}

.udc-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.udc-signout-label {
  color: #dc2626 !important;
}

.udc-item-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 1px;
}

.udc-chevron {
  font-size: 18px;
  color: #94a3b8;
  flex-shrink: 0;
}

.udc-item-signout:hover {
  background: #fff5f5;
}

/* Footer */
.udc-footer {
  background: #f8fafc;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.udc-footer-icon {
  font-size: 15px;
  color: #16a34a;
}

/* School logo in top navbar (Compact, Precise & Elegant) */
.school-logo-img {
  height: 26px;
  max-width: 85px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.school-logo-img:hover {
  transform: scale(1.05);
}

.brand-divider-nav {
  height: 18px;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.35);
  display: inline-block;
  margin: 0 3px;
  vertical-align: middle;
}

/* Modal Avatar Selection Card */
.avatar-option-card {
  transition: all 0.2s ease;
  background: #f8fafc;
}

.avatar-option-card:hover {
  border-color: #16a34a !important;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.avatar-option-card input:checked ~ .avatar-icon-box {
  transform: scale(1.08);
}

.avatar-option-card:has(input:checked) {
  border-color: #16a34a !important;
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

/* ==========================================================================
   APP CONTAINER (3-COLUMN FLEX LAYOUT)
   ========================================================================== */
.app-container {
  display: flex !important;
  margin-top: var(--topbar-height);
  min-height: calc(100vh - var(--topbar-height));
  background-color: var(--bg-body);
  width: 100%;
  position: relative;
  align-items: stretch;
}

/* ==========================================================================
   LEFT SIDEBAR
   ========================================================================== */
.classroom-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background-color: #ffffff;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px;
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
  z-index: 10;
}

.classroom-sidebar::-webkit-scrollbar {
  width: 4px;
}
.classroom-sidebar::-webkit-scrollbar-thumb {
  background-color: #e2e8f0;
  border-radius: 4px;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-nav-item a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sidebar-nav-item a .material-symbols-outlined,
.sidebar-nav-item a .bi {
  font-size: 22px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  overflow: hidden;
}

.sidebar-nav-item a:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.sidebar-nav-item.active a {
  background-color: #e6f4ea;
  color: #137333;
  font-weight: 600;
}

.sidebar-nav-item.active a .material-symbols-outlined,
.sidebar-nav-item.active a .bi {
  color: #137333;
  font-variation-settings: 'FILL' 1;
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  background-color: #e8f0fe;
  color: var(--google-blue);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 14px 6px;
}

.sidebar-section-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  padding: 8px 18px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.enrolled-classes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.enrolled-class-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.enrolled-class-item a:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.class-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.dot-blue { background-color: var(--google-blue); }
.dot-green { background-color: var(--google-green); }
.dot-purple { background-color: var(--google-purple); }
.dot-orange { background-color: var(--google-orange); }

.more-classes-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 18px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
}

.more-classes-btn:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

/* Sidebar Bottom Art */
.sidebar-bottom {
  margin-top: 16px;
}

.sidebar-art {
  padding: 12px 10px 0;
  display: flex;
  justify-content: center;
}

.sidebar-art svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.03));
}

/* ==========================================================================
   CENTER MAIN CONTENT
   ========================================================================== */
.classroom-main {
  flex: 1;
  min-width: 0;
  padding: 26px 32px;
  overflow-y: auto;
  background-color: var(--bg-body);
}

/* Welcome Banner */
.welcome-banner {
  background: linear-gradient(130deg, #0b8043 0%, #137333 45%, #0d652d 80%, #084c21 100%);
  border-radius: 20px;
  padding: 32px 38px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(13, 101, 45, 0.28);
  margin-bottom: 24px;
}

/* Layered subtle wave background inside banner */
.welcome-banner::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  top: -120px;
  right: 120px;
  pointer-events: none;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 75%);
  bottom: -220px;
  left: 10%;
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 62%;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.banner-highlight-name {
  color: #fde047;
  font-family: var(--font-heading);
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  display: inline-block;
}

.banner-subtitle {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.banner-graphic {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-graphic svg {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22));
  transform: scale(1.02);
}

/* Classroom Content Tabs */
.classroom-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 26px;
  gap: 32px;
}

.tab-btn {
  padding: 12px 2px 14px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  letter-spacing: -0.1px;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: #137333;
  font-weight: 800;
  border-bottom-color: #137333;
}

/* Class Grid */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* Class Card */
.class-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), border-color 0.2s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.class-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.09), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

.card-header {
  height: 138px;
  padding: 18px 18px 14px;
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.card-header.bg-blue {
  background: linear-gradient(135deg, #1973e8 0%, #1557b0 100%);
}

.card-header.bg-green {
  background: linear-gradient(135deg, #1e8e3e 0%, #137333 100%);
}

.card-header.bg-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.card-header.bg-orange {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

/* Watermark SVG in header */
.header-watermark {
  position: absolute;
  right: 4px;
  bottom: -4px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}

.card-top-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.card-title-group {
  flex: 1;
  padding-right: 8px;
}

.card-class-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-class-grade {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.95;
  margin-top: 3px;
}

.card-header-buttons {
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background-color 0.15s ease;
}

.card-btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

.card-teacher-name {
  position: relative;
  z-index: 2;
  font-size: 13px;
  opacity: 0.92;
  font-weight: 400;
}

/* Card Body / Footer */
.card-footer {
  padding: 14px 18px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.card-stat .material-symbols-outlined {
  font-size: 18px;
  color: #94a3b8;
}

/* Create Class Card (Card 5) */
.create-class-card {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #dadce0;
  border-radius: var(--radius-lg);
  min-height: 195px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), border-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.create-class-card:hover {
  background-color: #ffffff;
  border-color: #0f9d58;
  box-shadow: 0 10px 24px -4px rgba(15, 157, 88, 0.15), 0 4px 6px -2px rgba(15, 157, 88, 0.06);
  transform: translateY(-3px);
}

.create-class-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 24px;
}

.create-class-wave-bottom {
  width: 100%;
  line-height: 0;
  margin-top: auto;
}

.create-plus-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.create-class-card:hover .create-plus-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(15, 157, 88, 0.22);
}

.create-class-text {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

/* ==========================================================================
   RIGHT SIDEBAR / WIDGETS
   ========================================================================== */
.classroom-right-panel {
  width: var(--right-panel-width);
  min-width: var(--right-panel-width);
  max-width: var(--right-panel-width);
  background-color: #ffffff;
  border-left: 1px solid var(--border-subtle);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex-shrink: 0;
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  scrollbar-width: thin;
  z-index: 10;
}

/* Widget Card */
.widget-card {
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px 20px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.widget-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.widget-link {
  font-size: 13px;
  font-weight: 600;
  color: #137333;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s ease;
}

.widget-link:hover {
  color: var(--google-green-hover);
  text-decoration: underline;
}

/* Upcoming Tasks List */
.task-widget-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.task-widget-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.task-widget-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.task-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.task-widget-content {
  flex: 1;
}

.task-subject {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1px;
}

.task-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 3px;
  font-weight: 500;
}

.task-due {
  font-size: 11.5px;
  color: var(--text-muted);
}

.task-icon-doc {
  color: #94a3b8;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.15s ease;
}

.task-widget-item:hover .task-icon-doc {
  color: var(--google-blue);
}

/* Announcement Widget with Teacher Photo Avatar */
.announcement-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.teacher-photo-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.teacher-photo-avatar svg,
.teacher-photo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.author-time {
  font-size: 11.5px;
  color: var(--text-muted);
}

.announcement-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Google Drive Promo Widget */
.drive-widget {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px 20px 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.drive-wave-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
  opacity: 0.85;
}

.drive-widget-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.drive-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.drive-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  font-weight: 500;
}

.drive-link {
  font-size: 13px;
  font-weight: 700;
  color: #137333;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  transition: all 0.15s ease;
}

.drive-link:hover {
  color: var(--google-green-hover);
  text-decoration: underline;
  transform: translateX(2px);
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  backdrop-filter: blur(4px);
}

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

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  animation: modalScaleIn 0.22s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Modern Form Controls */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--google-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

/* Elegant Buttons */
.btn-primary {
  background-color: var(--google-blue);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.2);
}

.btn-primary:hover {
  background-color: var(--google-blue-hover);
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.3);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-secondary);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-card);
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.btn-green {
  background-color: #188038;
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(24, 128, 56, 0.2);
}

.btn-green:hover {
  background-color: #0d652d;
  box-shadow: 0 4px 10px rgba(24, 128, 56, 0.3);
}

/* User Profile Dropdown Menu */
.user-dropdown {
  position: absolute;
  top: var(--topbar-height);
  right: 18px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  border: 1px solid var(--border-card);
  width: 320px;
  display: none;
  z-index: 1001;
  padding: 18px;
  animation: dropdownIn 0.18s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown.show {
  display: block;
}

.dropdown-user-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.dropdown-user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.25);
}

.dropdown-user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.dropdown-user-email {
  font-size: 13px;
  color: var(--text-secondary);
}

.dropdown-role-badge {
  display: inline-block;
  background-color: #e6f4ea;
  color: #137333;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.quick-switch-section {
  padding-top: 14px;
}

.quick-switch-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.quick-switch-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.quick-switch-btn:hover {
  background-color: #f1f5f9;
}

/* Modern Data Table Card */
.table-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.table-header-bar {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.modern-table th {
  background-color: #f8fafc;
  padding: 14px 18px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid var(--border-card);
  font-size: 13px;
}

.modern-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
}

.modern-table tr:hover {
  background-color: #f8fafc;
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #1e293b;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-dropdown);
  z-index: 2000;
  animation: slideToastIn 0.25s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes slideToastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Hover Lift Micro-Interactions */
.hover-lift {
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1) !important;
}

.hover-lift:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.08), 0 3px 6px -2px rgba(15, 23, 42, 0.03) !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* Ensure Bootstrap dropdown toggle removes default caret */
.user-avatar-btn::after {
  display: none !important;
}

.classroom-sidebar.collapsed {
  display: none !important;
}

@media (max-width: 1200px) {
  .classroom-right-panel {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .classroom-sidebar {
    position: fixed !important;
    left: -280px;
    top: var(--topbar-height);
    bottom: 0;
    z-index: 1050;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    transition: left 0.25s ease;
  }
  .classroom-sidebar.open {
    left: 0 !important;
  }
  .classroom-main {
    width: 100%;
    padding: 18px;
  }
  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .banner-content {
    max-width: 100%;
    margin-bottom: 18px;
  }
  .banner-graphic {
    align-self: center;
  }
}

/* ==========================================================================
   SCHOOL-FRIENDLY PREMIUM THEME — SMP Ma'arif Classroom
   Vibrant · Elegant · Engaging for Students
   ========================================================================== */

/* --- Global body & background ------------------------------------------- */
body {
  background: #f4f7fe;
  background-image:
    radial-gradient(ellipse at 0% 0%,   rgba(99,102,241,.07) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(16,185,129,.06) 0%, transparent 55%);
  background-attachment: fixed;
}

/* --- CSS-variable overrides --------------------------------------------- */
:root {
  --bg-body:      #f4f7fe;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --shadow-card:  0 4px 24px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow-card-hover: 0 16px 40px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.04);
}

/* --- Topbar ------------------------------------------------------------- */
.classroom-topbar {
  background: linear-gradient(100deg, #064e3b 0%, #059669 38%, #0d9488 68%, #065f46 100%);
  box-shadow: 0 3px 24px rgba(6,78,59,.32), 0 1px 0 rgba(255,255,255,.10) inset;
  height: 62px;
}

.search-box {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 0 16px;
  height: 40px;
  max-width: 340px;
  transition: background .2s, border-color .2s;
}
.search-box:focus-within {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.50);
}
.search-input {
  background: transparent;
  color: #fff;
  font-size: 14px;
}
.search-input::placeholder { color: rgba(255,255,255,.65); }
.search-box .material-symbols-outlined { color: rgba(255,255,255,.75); }

/* Toggle button in topbar */
.udc-toggle-btn {
  background: rgba(255,255,255,.13);
  border: 1.5px solid rgba(255,255,255,.30);
}
.udc-toggle-btn:hover,
.udc-toggle-btn[aria-expanded="true"] {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.55);
}

/* --- Sidebar ------------------------------------------------------------ */
.classroom-sidebar {
  border-right: none;
  box-shadow: 3px 0 20px rgba(0,0,0,.05);
  background: #ffffff;
}

.sidebar-nav-item a {
  border-radius: 12px;
  padding: 10px 14px;
  gap: 12px;
  font-size: 13.5px;
}
.sidebar-nav-item a:hover {
  background: #f0fdf4;
  color: #065f46;
}
.sidebar-nav-item.active a {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16,185,129,.15);
}
.sidebar-nav-item.active a .material-symbols-outlined {
  color: #059669;
  font-variation-settings: 'FILL' 1, 'wght' 600;
}

.nav-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  font-size: 11px;
  border-radius: 20px;
  padding: 2px 8px;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  padding: 8px 14px;
}

.enrolled-class-item a {
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
}
.enrolled-class-item a:hover {
  background: #f0fdf4;
  color: #065f46;
}

.more-classes-btn {
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
}
.more-classes-btn:hover {
  background: #f0fdf4;
  color: #065f46;
}

/* --- Welcome Banner ------------------------------------------------------ */
.welcome-banner {
  background: linear-gradient(130deg, #064e3b 0%, #059669 28%, #0d9488 58%, #6366f1 100%);
  border-radius: 26px;
  padding: 34px 40px;
  box-shadow: 0 16px 48px rgba(5,150,105,.28);
  margin-bottom: 26px;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.22;
}

.banner-highlight-name {
  font-family: var(--font-heading);
  color: #fde047;
  text-shadow: 0 0 28px rgba(253,224,71,.35), 0 1px 2px rgba(0,0,0,.2);
  font-size: 32px;
  font-weight: 900;
}

.banner-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,.88);
  font-style: italic;
}

/* --- Navigation Tabs ---------------------------------------------------- */
.classroom-tabs {
  border-bottom: 2px solid #e8f0fe;
  margin-bottom: 28px;
  gap: 4px;
}

.tab-btn {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px 12px;
  border-radius: 10px 10px 0 0;
  color: #64748b;
  letter-spacing: -0.1px;
}

.tab-btn:hover {
  color: #059669;
  background: #f0fdf4;
}

.tab-btn.active {
  color: #059669;
  border-bottom-color: #059669;
  background: linear-gradient(180deg, transparent 0%, rgba(16,185,129,.07) 100%);
  font-weight: 800;
}

/* --- Class Cards --------------------------------------------------------- */
.class-grid {
  gap: 24px;
}

.class-card {
  border: none;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease;
}

.class-card:hover {
  transform: translateY(-7px) scale(1.008);
  box-shadow: var(--shadow-card-hover);
}

.card-header {
  height: 148px;
  border-radius: 22px 22px 0 0;
}

.card-header.bg-blue {
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 80%, #1e40af 100%);
}
.card-header.bg-green {
  background: linear-gradient(145deg, #10b981 0%, #059669 75%, #047857 100%);
}
.card-header.bg-purple {
  background: linear-gradient(145deg, #8b5cf6 0%, #7c3aed 75%, #6d28d9 100%);
}
.card-header.bg-orange {
  background: linear-gradient(145deg, #f97316 0%, #ea580c 75%, #c2410c 100%);
}

.card-class-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.2px;
}

.card-footer {
  background: #fafbff;
  padding: 14px 18px;
  border-top: 1px solid #f1f5f9;
}

.card-stat .material-symbols-outlined {
  color: #6366f1;
  font-size: 17px;
}

/* Create-class card */
.create-class-card {
  border-radius: 22px;
  border: 2px dashed #a7f3d0;
  background: linear-gradient(160deg, #f0fdf4 0%, #f8f6ff 100%);
  box-shadow: none;
}
.create-class-card:hover {
  border-color: #059669;
  box-shadow: 0 8px 24px rgba(5,150,105,.14);
  transform: translateY(-4px);
}

.create-plus-icon {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  box-shadow: 0 4px 14px rgba(16,185,129,.25);
}

.create-class-card:hover .create-plus-icon {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  box-shadow: 0 6px 20px rgba(5,150,105,.35);
}
.create-class-card:hover .create-plus-icon .material-symbols-outlined {
  color: #ffffff !important;
}

.create-class-text {
  color: #065f46;
  font-size: 14px;
  font-weight: 700;
}

/* --- Right Panel --------------------------------------------------------- */
.classroom-right-panel {
  border-left: none;
  background: #f8f6ff;
  box-shadow: -3px 0 16px rgba(0,0,0,.04);
}

.widget-card {
  border: 1px solid #ede9fe;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(99,102,241,.06);
}

.widget-card:hover {
  box-shadow: 0 6px 20px rgba(99,102,241,.10);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
}

/* --- App container ------------------------------------------------------- */
.classroom-main {
  padding: 28px 30px;
}

/* --- Scrollbar (sidebar & main) ------------------------------------------ */
.classroom-sidebar::-webkit-scrollbar-thumb,
.classroom-main::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a7f3d0, #6ee7b7);
  border-radius: 4px;
}

/* --- Stat cards in right panel ------------------------------------------- */
.stat-number {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #059669 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Announcement items -------------------------------------------------- */
.announcement-item {
  border-radius: 14px !important;
  border: 1px solid #f1f5f9 !important;
  transition: box-shadow .2s, transform .2s;
}
.announcement-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

/* --- Upcoming tasks ------------------------------------------------------ */
.task-item {
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  transition: background .15s;
}
.task-item:hover {
  background: #f0fdf4;
}

/* --- Modal improvements -------------------------------------------------- */
.modal-content {
  border-radius: 24px !important;
  border: none !important;
  box-shadow: 0 24px 60px rgba(15,23,42,.18) !important;
}

.modal-header {
  border-bottom: 1px solid #f1f5f9 !important;
  border-radius: 24px 24px 0 0 !important;
}

/* --- Buttons --- */
.btn-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border: none !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(5,150,105,.30) !important;
  transition: transform .2s, box-shadow .2s !important;
}
.btn-success:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(5,150,105,.40) !important;
}

.btn-outline-success {
  border-radius: 50px !important;
  font-weight: 600 !important;
  border-color: #059669 !important;
  color: #059669 !important;
}
.btn-outline-success:hover {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important;
  border-color: #059669 !important;
  color: #065f46 !important;
}

/* --- Input refinements -------------------------------------------------- */
.form-control, .form-select {
  border-radius: 12px !important;
  border-color: #e2e8f0 !important;
  font-size: 14px !important;
}
.form-control:focus, .form-select:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5,150,105,.15) !important;
}

/* --- Flash notice ------------------------------------------------------- */
.toast-notice {
  border-radius: 50px !important;
  box-shadow: 0 8px 24px rgba(5,150,105,.25) !important;
}

/* --- Dot colours (class items) ------------------------------------------ */
.dot-blue   { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.dot-green  { background: linear-gradient(135deg, #34d399, #10b981); }
.dot-purple { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.dot-orange { background: linear-gradient(135deg, #fb923c, #f97316); }
.class-dot  {
  width: 10px; height: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}

/* --- Table improvements ------------------------------------------------- */
.table-card {
  border-radius: 20px !important;
  box-shadow: var(--shadow-card) !important;
  border: none !important;
  overflow: hidden;
}

.table thead th {
  background: linear-gradient(135deg, #f0fdf4 0%, #f8f6ff 100%);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #475569;
}

/* --- Badge improvements ------------------------------------------------- */
.badge {
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  letter-spacing: .2px !important;
}

/* --- Media queries for mobile ------------------------------------------- */
@media (max-width: 768px) {
  .welcome-banner {
    border-radius: 20px;
    padding: 24px 22px;
  }
  .banner-title { font-size: 22px; }
  .banner-highlight-name { font-size: 25px; }
  .class-card { border-radius: 18px; }
  .classroom-main { padding: 16px 14px; }
}
