/* UI Components for Smart School & SaaS Portal (e.onllar.com) */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-success {
  background: var(--success-gradient);
  color: #fff;
}
.btn-danger {
  background: var(--danger-gradient);
  color: #fff;
}
.btn-warning {
  background: var(--accent-gold-gradient);
  color: #fff;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Form Controls & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control, .form-select {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.2s ease;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Category Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-class { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.4); }
.badge-gender { background: rgba(14, 165, 233, 0.2); color: #7dd3fc; border: 1px solid rgba(14, 165, 233, 0.4); }
.badge-blood { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-religion { background: rgba(245, 158, 11, 0.2); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.4); }

/* User Avatar & Thumbnails */
.avatar-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

/* Stats Metric Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Outfit', var(--font-primary);
}

.stat-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Modals */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(6px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #131c31;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

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

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}
.modal-close:hover { color: #fff; }

/* Ticker & Notice */
.ticker-wrap {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.ticker-title {
  background: var(--danger-gradient);
  color: #fff;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}

.ticker-text {
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  color: var(--text-main);
  font-size: 0.9rem;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}


/* Light Theme Top Navigation Header */
.app-header {
}

.top-nav-menu {
}

.top-nav-menu a, .top-nav-menu .nav-item, .top-nav-menu button {
}

.top-nav-menu a:hover, .top-nav-menu .nav-item:hover, .top-nav-menu button:hover {
}

.top-nav-menu .nav-item.active, .top-nav-menu a.active {
}

.header-actions {
}
.header-actions div {
}


/* Light Theme Top Navigation Header */
.app-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
  padding: 10px 24px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 15px !important;
}

.top-nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}

.top-nav-menu a, .top-nav-menu .nav-item, .top-nav-menu button {
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
}

.top-nav-menu a:hover, .top-nav-menu .nav-item:hover, .top-nav-menu button:hover {
  color: #2563eb !important;
  background: #f1f5f9 !important;
}

.top-nav-menu .nav-item.active, .top-nav-menu a.active {
  color: #2563eb !important;
  background: #eff6ff !important;
}

.header-actions {
  color: #334155 !important;
}
.header-actions div {
  color: #334155 !important;
}


/* Sleek Horizontal Scrollbar for Top Nav Menu */
.top-nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  padding-bottom: 4px !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 transparent !important;
}

.top-nav-menu::-webkit-scrollbar {
  height: 4px !important;
}

.top-nav-menu::-webkit-scrollbar-track {
  background: transparent !important;
}

.top-nav-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 10px !important;
}

.top-nav-menu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

.top-nav-menu a, .top-nav-menu .nav-item, .top-nav-menu button {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}


/* Full-Width Scrollable Top Nav Fix */
.app-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#top-nav-menu, .top-nav-menu {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  padding: 6px 12px !important;
  scroll-behavior: smooth !important;
}

#top-nav-menu > *, .top-nav-menu > * {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.header-actions {
  flex-shrink: 0 !important;
  margin-left: 10px !important;
}


/* Remove Vertical Scrollbar on Top Menu Header */
.app-header, #top-nav-menu, .top-nav-menu {
  overflow-y: hidden !important;
}

.app-header::-webkit-scrollbar,
#top-nav-menu::-webkit-scrollbar-corner {
  display: none !important;
}


/* Completely Hide Scrollbar Buttons & Arrows */
::-webkit-scrollbar-button,
.top-nav-menu::-webkit-scrollbar-button,
.app-header::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}


/* Completely Hide ALL Native Scrollbars & Arrows Everywhere on Top Nav */
#top-nav-menu, .top-nav-menu, .app-header, .header-actions {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  overflow-y: hidden !important;
}

#top-nav-menu::-webkit-scrollbar,
.top-nav-menu::-webkit-scrollbar,
.app-header::-webkit-scrollbar,
#top-nav-menu::-webkit-scrollbar-button,
.top-nav-menu::-webkit-scrollbar-button,
.app-header::-webkit-scrollbar-button,
#top-nav-menu::-webkit-scrollbar-corner,
.top-nav-menu::-webkit-scrollbar-corner {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}


/* Universal Complete Scrollbar Button Eraser */
*::-webkit-scrollbar-button,
*::-webkit-scrollbar-corner {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}


/* Set Top Navigation Header Height to 90px */
.app-header {
  height: 90px !important;
  min-height: 90px !important;
  max-height: 90px !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.top-nav-menu a, .top-nav-menu .nav-item, .top-nav-menu button {
  padding: 10px 16px !important;
  font-size: 0.95rem !important;
}


/* ==========================================================================
   SHARED SAAS DASHBOARD & DIRECTORY STYLES (LIGHT THEME GLOBAL FIX)
   ========================================================================== */

.saas-stats-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 24px !important;
}

.saas-stat-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 20px !important;
  text-align: center !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
}

.saas-stat-box p {
  margin: 0 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.saas-stat-val {
  font-size: 1.88rem !important;
  font-weight: 800 !important;
  margin-top: 4px !important;
  color: #0f172a !important;
}

.saas-table-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: visible !important;
  padding: 24px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
}

.saas-table-title {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 16px !important;
  margin-bottom: 20px !important;
}

.saas-controls-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
  flex-wrap: wrap !important;
}

.saas-show-entries {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.875rem !important;
  color: #475569 !important;
  font-weight: 500 !important;
  background: #f8fafc !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  border: 1px solid #cbd5e1 !important;
}

.saas-select {
  background: transparent !important;
  color: #0f172a !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  padding-right: 4px !important;
}

.saas-select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

.saas-search-wrapper {
  position: relative !important;
}

.saas-search-input {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 8px 16px !important;
  padding-right: 36px !important;
  font-size: 0.875rem !important;
  color: #0f172a !important;
  outline: none !important;
  width: 256px !important;
  transition: all 0.2s ease !important;
}

.saas-search-input:focus {
  background: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.saas-search-icon {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #64748b !important;
  width: 14px !important;
  height: 14px !important;
  pointer-events: none !important;
}

.saas-btn-export {
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.saas-btn-export:hover {
  color: #0f172a !important;
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
}

.saas-table-wrapper {
  position: relative !important;
}

.saas-data-table {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: left !important;
  font-size: 0.875rem !important;
}

.saas-data-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em !important;
}

.saas-data-table td {
  padding: 16px 24px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
  white-space: nowrap !important;
}

.saas-data-table tr:hover td {
  background: #f8fafc !important;
}

.saas-status-pill {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.saas-status-active {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

.scroll-btn {
  position: absolute !important;
  top: 40% !important;
  width: 36px !important;
  height: 36px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  z-index: 100 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  opacity: 0 !important;
}

.saas-table-wrapper:hover .scroll-btn {
  opacity: 1 !important;
}

.scroll-btn:hover {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
}

.scroll-btn-left { left: -14px !important; }
.scroll-btn-right { right: -14px !important; }

.saas-pagination-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 20px !important;
  font-size: 0.875rem !important;
  color: #64748b !important;
}

.saas-page-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.saas-page-btn:hover:not(:disabled) {
  background: #e2e8f0 !important;
}

.saas-page-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.action-dropdown-container {
  position: relative !important;
  display: inline-block !important;
}

.action-dropdown-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.action-dropdown-btn:hover {
  background: #e2e8f0 !important;
}

.action-dropdown-menu {
  position: absolute !important;
  right: 0 !important;
  top: 100% !important;
  margin-top: 6px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  z-index: 500 !important;
  min-width: 170px !important;
  overflow: hidden !important;
  display: none !important;
  flex-direction: column !important;
}

.action-dropdown-menu.show {
  display: flex !important;
}

.action-dropdown-item {
  background: transparent !important;
  border: none !important;
  color: #334155 !important;
  padding: 10px 14px !important;
  text-align: left !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
}

.action-dropdown-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* ==========================================
   Modern App Popup Modal (Dark & Light Theme)
   ========================================== */
.app-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 14, 23, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

.app-popup-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.app-popup-card {
  width: 100%;
  max-width: 380px;
  background: #121723;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: appPopupPopIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes appPopupPopIn {
  0% { opacity: 0; transform: scale(0.88); }
  100% { opacity: 1; transform: scale(1); }
}

/* Light Theme Styling */
body.light-theme .app-popup-overlay {
  background: rgba(15, 23, 42, 0.45);
}

body.light-theme .app-popup-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

/* Icon Badges */
.app-popup-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.app-popup-icon-badge.success {
  background: #00c853;
  box-shadow: 0 10px 25px rgba(0, 200, 83, 0.35);
  color: #ffffff;
}

.app-popup-icon-badge.error {
  background: #ef4444;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
  color: #ffffff;
}

.app-popup-icon-badge.warning {
  background: #f59e0b;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
  color: #ffffff;
}

.app-popup-icon-badge.info {
  background: #3b82f6;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
  color: #ffffff;
}

.app-popup-icon-badge svg {
  width: 36px;
  height: 36px;
  stroke-width: 2.8px;
}

/* Typography */
.app-popup-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

body.light-theme .app-popup-title {
  color: #0f172a;
}

.app-popup-message {
  font-size: 0.92rem;
  font-weight: 500;
  color: #94a3b8;
  margin: 0 0 24px 0;
  line-height: 1.5;
  word-break: break-word;
}

body.light-theme .app-popup-message {
  color: #64748b;
}

/* Actions */
.app-popup-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-popup-btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.app-popup-btn-primary {
  background: #00c853;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.3);
}

.app-popup-btn-primary:hover {
  background: #00b248;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 200, 83, 0.4);
}

.app-popup-btn-secondary {
  background: #1c2333;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-popup-btn-secondary:hover {
  background: #252e42;
}

body.light-theme .app-popup-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

body.light-theme .app-popup-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Remove number input spinners (up-down arrows) from subject marks inputs */
.subject-input::-webkit-outer-spin-button,
.subject-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.subject-input {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* Fail marks and grade text highlight */
.fail-val,
span.fail-val,
strong.fail-val,
input.fail-val {
  color: #dc2626 !important;
}
.pass-grade-val {
  color: #15803d !important;
}
