    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    html, body {
      height: 100%;
      overflow: hidden;
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
      background: #121212;
      color: #fff;
    }
    
    /* Top Navigation */
    .top-nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 50px;
      background: #1a1a1a;
      border-bottom: 1px solid #333;
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      padding: 0 8px;
      z-index: 1000;
    }
    
    .nav-btn {
      background: none;
      border: none;
      color: #fff;
      font-size: 24px;
      cursor: pointer;
      padding: 4px;
      border-radius: 8px;
      transition: background 0.2s;
      text-decoration: none;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 1;
      height: 50px;
      min-width: 0;
    }
    
    .nav-btn:hover {
      background: #333;
    }
    
    .nav-btn.hidden {
      visibility: hidden;
    }

    /* Notification bell wrapper + pill */
    .nav-notif-wrap {
      position: relative;
      flex: 1;
      min-width: 0;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      border-radius: 8px;
      transition: background 0.2s;
    }

    .nav-notif-wrap:hover {
      background: #333;
    }

    .nav-btn img, .nav-notif-wrap img {
      height: 40px;
      max-width: 100%;
    }

    .nav-notif-wrap .nav-btn {
      flex: unset;
      width: auto;
      height: auto;
      pointer-events: none;
    }

    .notif-pill {
      display: none;
      position: absolute;
      top: 5px;
      left: calc(50% + 6px);
      background: #e53935;
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      min-width: 16px;
      height: 16px;
      border-radius: 8px;
      padding: 0 4px;
      line-height: 16px;
      text-align: center;
      pointer-events: none;
    }

    .notif-pill.visible {
      display: block;
    }

    .nav-title {
      display: none;
    }
    
    /* Main Content Area */
    .main-content {
      position: fixed;
      top: 50px;
      left: 0;
      right: 0;
      bottom: 0;
      overflow-y: auto;
    }
    
    /* Dashboard View */
    #dashboard-view {
      padding: 20px;
      max-width: 800px;
      margin: 0 auto;
    }
    
    #dashboard-view.hidden {
      display: none;
    }
    
    /* Iframe View */
    #iframe-view {
      display: none;
      width: 100%;
      height: 100%;
    }
    
    #iframe-view.visible {
      display: block;
    }
    
    #iframe-view iframe {
      width: 100%;
      height: 100%;
      border: none;
    }
    
    /* Program Header */
    .program-header {
      margin-bottom: 24px;
    }
    
    .program-header h1 {
      font-size: 24px;
      margin-bottom: 4px;
    }
    
    .program-code {
      color: #888;
      font-size: 14px;
    }
    
    /* Stat Widgets */
    .stat-widgets {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-bottom: 24px;
    }
    
    .stat-widget {
      background: #1e1e1e;
      border-radius: 12px;
      padding: 16px;
      text-align: center;
      cursor: pointer;
      transition: background 0.2s;
    }
    
    .stat-widget:hover {
      background: #252525;
    }
    
    .stat-number {
      font-size: 32px;
      font-weight: bold;
      color: #4CAF50;
    }
    
    .stat-number.warning {
      color: #ff9800;
    }
    
    .stat-number.danger {
      color: #f44336;
    }
    
    .stat-label {
      font-size: 12px;
      color: #888;
      margin-top: 4px;
    }
    
    /* Collapsible Sections */
    .section {
      background: #1e1e1e;
      border-radius: 12px;
      margin-bottom: 16px;
      overflow: hidden;
    }
    
    .section-header {
      padding: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: bold;
      transition: background 0.2s;
    }
    
    .section-header:hover {
      background: #252525;
    }
    
    .section-toggle {
      color: #888;
      font-size: 12px;
      width: 16px;
    }
    
    .section-title {
      flex: 1;
    }
    
    .section-count {
      color: #888;
      font-size: 14px;
    }
    
    .section-content {
      display: none;
      border-top: 1px solid #333;
      padding: 16px;
      max-height: 400px;
      overflow-y: auto;
    }
    
    .section-content.open {
      display: block;
    }
    
    /* Quick Actions */
    .quick-actions {
      margin-top: 24px;
    }
    
    .quick-actions h3 {
      font-size: 14px;
      color: #888;
      margin-bottom: 12px;
    }
    
    .action-buttons {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    
    .action-btn {
      background: #2a2a2a;
      border: 1px solid #333;
      border-radius: 12px;
      padding: 16px;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      color: #fff;
      text-decoration: none;
    }
    
    .action-btn:hover {
      background: #333;
      border-color: #4CAF50;
    }
    
    .action-btn .icon {
      font-size: 24px;
      margin-bottom: 8px;
    }
    
    .action-btn .label {
      font-size: 14px;
    }
    
    /* Loading State */
    .loading {
      color: #888;
      text-align: center;
      padding: 40px;
    }
    
    /* Student Row - Clickable */
    .student-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 0;
      border-bottom: 1px solid #2a2a2a;
      cursor: pointer;
      transition: background 0.2s;
    }
    
    .student-row:hover {
      background: #252525;
      margin: 0 -16px;
      padding: 14px 16px;
    }
    
    .student-row:last-child {
      border-bottom: none;
    }
    
    .student-name {
      color: #fff;
    }
    
    .student-name.no-name {
      color: #888;
      font-style: italic;
    }
    
    .student-status {
      font-size: 12px;
      color: #888;
    }
    
    .student-status.active {
      color: #4CAF50;
    }
    
    .student-status.inactive {
      color: #f44336;
    }
    
    /* Filter Input */
    .filter-input-wrapper {
      margin-bottom: 12px;
    }
    
    .filter-input {
      width: 100%;
      padding: 10px 12px;
      background: #2a2a2a;
      border: 1px solid #444;
      border-radius: 8px;
      color: #fff;
      font-size: 14px;
    }
    
    .filter-input:focus {
      outline: none;
      border-color: #4CAF50;
    }
    
    .filter-input::placeholder {
      color: #666;
    }
    
    /* Student Modal - Larger */
    .student-modal-content {
      background: #1e1e1e;
      border-radius: 16px;
      width: 100%;
      max-width: 500px;
      max-height: 90vh;
      overflow-y: auto;
      border: 1px solid #333;
    }
    
    .student-modal-header {
      padding: 20px;
      border-bottom: 1px solid #333;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }
    
    .student-modal-header h3 {
      margin: 0 0 4px 0;
      font-size: 20px;
    }
    
    .student-modal-header .email {
      color: #888;
      font-size: 14px;
    }
    
    .student-modal-section {
      padding: 20px;
      border-bottom: 1px solid #333;
    }
    
    .student-modal-section:last-child {
      border-bottom: none;
    }
    
    .student-modal-section h4 {
      font-size: 12px;
      color: #888;
      text-transform: uppercase;
      margin-bottom: 12px;
    }
    
    .modal-activity-item {
      font-size: 14px;
      color: #ccc;
      padding: 8px 0;
      border-bottom: 1px solid #2a2a2a;
    }
    
    .modal-activity-item:last-child {
      border-bottom: none;
    }
    
    .modal-activity-item .time {
      color: #666;
      font-size: 12px;
    }
    
    #student-modal-activity {
      max-height: 160px;
      overflow-y: auto;
    }
    
    .student-modal-actions {
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    
    .student-modal-actions .btn-row {
      display: flex;
      gap: 12px;
    }
    
    .student-modal-btn {
      flex: 1;
      padding: 12px;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      font-size: 14px;
      font-weight: bold;
      transition: background 0.2s;
    }
    
    .student-modal-btn.save {
      background: #4CAF50;
      color: #fff;
    }
    
    .student-modal-btn.save:hover {
      background: #45a049;
    }
    
    .student-modal-btn.remove {
      background: #333;
      color: #f44336;
      border: 1px solid #f44336;
    }
    
    .student-modal-btn.remove:hover {
      background: #3a2a2a;
    }
    
    .student-modal-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
    
    /* Smaller form inputs for modal */
    .form-input-sm {
      width: 100%;
      padding: 10px;
      background: #2a2a2a;
      border: 1px solid #444;
      border-radius: 6px;
      color: #fff;
      font-size: 14px;
    }
    
    .form-input-sm:focus {
      outline: none;
      border-color: #4CAF50;
    }
    
    .form-input-sm::placeholder {
      color: #666;
    }
    
    .form-row {
      display: flex;
      gap: 12px;
    }
    
    .form-row .form-group {
      flex: 1;
    }
    
    .form-group {
      margin-bottom: 12px;
    }
    
    .form-label {
      display: block;
      font-size: 11px;
      color: #888;
      margin-bottom: 4px;
      text-transform: uppercase;
    }
    
    /* Section header with edit toggle */
    .section-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }
    
    .section-header-row h4 {
      margin: 0;
    }
    
    .edit-toggle-btn {
      background: none;
      border: 1px solid #444;
      color: #888;
      padding: 4px 10px;
      border-radius: 4px;
      font-size: 12px;
      cursor: pointer;
    }
    
    .edit-toggle-btn:hover {
      border-color: #666;
      color: #fff;
    }
    
    /* Groups display */
    #student-groups-display {
      color: #ccc;
      font-size: 14px;
    }
    
    .student-group-checklist {
      max-height: 150px;
      overflow-y: auto;
    }
    
    .student-group-checkbox {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 0;
      border-bottom: 1px solid #333;
      color: #ccc;
      font-size: 14px;
    }
    
    .student-group-checkbox:last-child {
      border-bottom: none;
    }
    
    .student-group-checkbox input {
      width: 16px;
      height: 16px;
    }
    
    /* Responsive modal */
    @media (max-width: 480px) {
      .form-row {
        flex-direction: column;
        gap: 0;
      }
    }
    
    /* Edit Student Modal */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      z-index: 2000;
      display: none;
      justify-content: center;
      align-items: center;
      padding: 20px;
    }
    
    .modal-overlay.visible {
      display: flex;
    }
    
    .modal {
      background: #1e1e1e;
      border-radius: 16px;
      width: 100%;
      max-width: 400px;
      border: 1px solid #333;
      overflow: hidden;
    }
    
    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 20px;
      border-bottom: 1px solid #333;
    }
    
    .modal-header h3 {
      margin: 0;
      font-size: 18px;
    }
    
    .modal-close {
      background: none;
      border: none;
      color: #888;
      font-size: 24px;
      cursor: pointer;
      padding: 4px;
    }
    
    .modal-close:hover {
      color: #fff;
    }
    
    .modal-body {
      padding: 20px;
    }
    
    .form-group {
      margin-bottom: 16px;
    }
    
    .form-label {
      display: block;
      font-size: 12px;
      color: #888;
      margin-bottom: 6px;
      text-transform: uppercase;
    }
    
    .form-input {
      width: 100%;
      padding: 12px;
      background: #2a2a2a;
      border: 1px solid #444;
      border-radius: 8px;
      color: #fff;
      font-size: 16px;
    }
    
    .form-input:focus {
      outline: none;
      border-color: #4CAF50;
    }
    
    .form-input:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
    
    .modal-footer {
      display: flex;
      gap: 12px;
      padding: 16px 20px;
      border-top: 1px solid #333;
    }
    
    .modal-btn {
      flex: 1;
      padding: 12px;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      font-size: 16px;
      font-weight: bold;
      transition: background 0.2s;
    }
    
    .modal-btn.cancel {
      background: #333;
      color: #fff;
    }
    
    .modal-btn.cancel:hover {
      background: #444;
    }
    
    .modal-btn.save {
      background: #4CAF50;
      color: #fff;
    }
    
    .modal-btn.save:hover {
      background: #45a049;
    }
    
    .modal-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
    
    /* Activity Row */
    .activity-row {
      padding: 12px 0;
      border-bottom: 1px solid #2a2a2a;
    }
    
    .activity-row:last-child {
      border-bottom: none;
    }
    
    .activity-user {
      font-weight: bold;
      color: #fff;
    }
    
    .activity-action {
      color: #aaa;
      font-size: 14px;
    }
    
    .activity-time {
      color: #666;
      font-size: 12px;
      margin-top: 4px;
    }
    
    /* Group Row */
    .group-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid #2a2a2a;
    }
    
    .group-row:last-child {
      border-bottom: none;
    }
    
    .group-name {
      color: #fff;
      flex: 1;
    }
    
    .group-count {
      color: #888;
      font-size: 14px;
    }
    
    /* New Group Button */
    .new-group-btn {
      width: 100%;
      padding: 12px;
      background: #2a2a2a;
      border: 1px dashed #444;
      color: #888;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      margin-bottom: 12px;
      transition: all 0.2s;
    }
    
    .new-group-btn:hover {
      background: #333;
      border-color: #4CAF50;
      color: #4CAF50;
    }
    
    /* Group Item */
    .group-item {
      border: 1px solid #333;
      border-radius: 8px;
      margin-bottom: 8px;
      overflow: hidden;
    }
    
    .group-header-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px;
      background: #252525;
      cursor: pointer;
      transition: background 0.2s;
    }
    
    .group-header-row:hover {
      background: #2a2a2a;
    }
    
    .group-toggle-icon {
      color: #888;
      font-size: 10px;
      width: 12px;
    }
    
    .group-delete-btn {
      background: none;
      border: none;
      color: #666;
      font-size: 18px;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 4px;
      margin-left: auto;
    }
    
    .group-delete-btn:hover {
      background: #3a2a2a;
      color: #ff6b6b;
    }
    
    .group-members-content {
      border-top: 1px solid #333;
      padding: 12px;
      background: #1a1a1a;
    }
    
    .group-toolbar {
      margin-bottom: 12px;
    }
    
    .group-edit-btn {
      background: #333;
      border: 1px solid #444;
      color: #fff;
      padding: 8px 16px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 13px;
    }
    
    .group-edit-btn:hover {
      background: #444;
    }
    
    .group-member-view {
      padding: 8px 0;
      border-bottom: 1px solid #252525;
      color: #ccc;
    }
    
    .group-member-view.clickable-name:hover {
      color: #4CAF50;
      text-decoration: underline;
    }
    
    .group-member-view:last-child {
      border-bottom: none;
    }
    
    .group-edit-list {
      max-height: 300px;
      overflow-y: auto;
    }
    
    .group-member-checkbox {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 4px;
      border-bottom: 1px solid #252525;
      cursor: pointer;
      color: #ccc;
    }
    
    .group-member-checkbox:hover {
      background: #252525;
    }
    
    .group-member-checkbox input {
      width: 18px;
      height: 18px;
      cursor: pointer;
    }
    
    /* Activity Grouped View */
    .activity-toggle-row {
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid #333;
    }
    
    .activity-toggle-label {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #888;
      font-size: 14px;
      cursor: pointer;
    }
    
    .activity-toggle-label input {
      width: 16px;
      height: 16px;
      cursor: pointer;
    }
    
    .date-group {
      margin-bottom: 20px;
    }
    
    .date-header {
      color: #2196F3;
      font-size: 13px;
      font-weight: bold;
      margin-bottom: 10px;
      padding-bottom: 6px;
      border-bottom: 1px solid #333;
    }
    
    .user-activity-row {
      padding: 8px 0;
      border-bottom: 1px solid #222;
    }
    
    .user-activity-row:last-child {
      border-bottom: none;
    }
    
    .user-activity-row .user-name {
      font-weight: bold;
      color: #fff;
    }
    
    .user-activity-row .user-name.clickable-name:hover {
      color: #4CAF50;
      text-decoration: underline;
    }
    
    .user-activity-row .user-activities {
      color: #aaa;
      font-size: 14px;
    }
    
    /* Empty State */
    .empty-state {
      color: #666;
      text-align: center;
      padding: 20px;
      font-style: italic;
    }
    
    /* Auth Overlay */
    #auth-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      z-index: 9999;
      display: none;
      justify-content: center;
      align-items: center;
    }
    
    #auth-overlay.visible {
      display: flex;
    }
    
    /* Non-director view */
    .non-director {
      text-align: center;
      padding: 60px 20px;
    }
    
    .non-director h2 {
      margin-bottom: 16px;
    }
    
    .non-director p {
      color: #888;
      margin-bottom: 24px;
    }
    
    /* Responsive */
    @media (max-width: 480px) {
      .stat-widgets {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
      }
      
      .stat-widget {
        padding: 12px 8px;
      }
      
      .stat-number {
        font-size: 24px;
      }
      
      .stat-label {
        font-size: 10px;
      }
      
      .action-buttons {
        grid-template-columns: 1fr;
      }
    }

/* ── Getting Started Cards ── */
.gs-card {
  border-bottom: 1px solid #1e1e1e;
  padding: 14px 16px;
  transition: opacity 0.2s;
}

.gs-card.gs-dismissed {
  opacity: 0.45;
}

.gs-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}

.gs-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.gs-dismissed .gs-card-title {
  color: #666;
}

.gs-dismiss-btn {
  background: none;
  border: none;
  color: #444;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}

.gs-dismiss-btn:hover { color: #aaa; }

.gs-card-body {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
}
.gs-card-body a {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
}


.gs-dismissed .gs-card-body {
  color: #555;
}

.gs-card-footer {
  margin-top: 10px;
}

.gs-learn-more {
  background: none;
  border: 1px solid #2a5a2a;
  color: #4CAF50;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s;
}

.gs-learn-more:hover {
  background: #1e3a1e;
}

/* ── Leaderboard ── */
.lb-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid #1e1e1e;
  flex-wrap: wrap;
}

.lb-tab {
  padding: 5px 12px;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  color: #888;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.lb-tab:hover { background: #2a2a2a; color: #ccc; }

.lb-tab.active {
  background: #2a1f00;
  border-color: #FFD700;
  color: #FFD700;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.lb-table thead tr {
  background: #1a1a1a;
}

.lb-table th {
  padding: 8px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFD700;
  border-bottom: 1px solid #2a2a2a;
}

.lb-table th.lb-rank { width: 50px; text-align: center; }
.lb-table th.lb-score { width: 80px; text-align: right; }
.lb-table th.lb-level { width: 60px; text-align: center; }

.lb-table td {
  padding: 9px 16px;
  border-bottom: 1px solid #1a1a1a;
  color: #ccc;
}

.lb-table td.lb-rank { text-align: center; font-size: 16px; }
.lb-table td.lb-score { text-align: right; font-weight: 600; color: #fff; }
.lb-table td.lb-level { text-align: center; color: #888; }

.lb-table tr:hover td { background: #1e1e1e; }

.lb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #1e1e1e;
}

.lb-view-all {
  background: none;
  border: none;
  color: #4CAF50;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.lb-view-all:hover { text-decoration: underline; }

    /* Menu btn hidden always */
    #menu-btn {
      display: none !important;
    }
 