/* ==========================================================================
   e-PATA Student Management System
   Vibrant, Senior-Friendly, Professional Stylesheet
   Palette: Royal Spiritual Indigo, Warm Amber Gold, Crisp White
   Legibility: High contrast, 16px+ typography, generous touch targets
   ========================================================================== */

:root {
  --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --surface-color: #ffffff;
  --border-color: #cbd5e1;
  --border-focus: #4f46e5;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  
  --brand-primary: #312e81;       /* Deep Royal Indigo */
  --brand-secondary: #4338ca;     /* Vibrant Indigo */
  --brand-accent: #d97706;        /* Warm Spiritual Amber */
  --brand-gold: #f59e0b;          /* Royal Gold */
  
  --success-bg: #f0fdf4;
  --success-border: #86efac;
  --success-text: #166534;
  
  --warning-bg: #fffbeb;
  --warning-border: #fcd34d;
  --warning-text: #92400e;
  
  --danger-bg: #fef2f2;
  --danger-border: #fca5a5;
  --danger-text: #991b1b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  
  --shadow-card: 0 20px 35px -10px rgba(49, 46, 129, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  --shadow-btn: 0 4px 14px 0 rgba(49, 46, 129, 0.25);
  --shadow-focus: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, 'Noto Sans Kannada', 'Kannada Sangam MN', 'Nirmala UI', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   PUBLIC REGISTRATION PAGE - COLORFUL & SENIOR-FRIENDLY
   ========================================================================== */

.public-page-bg {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(circle at 10% 15%, rgba(217, 119, 6, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(67, 56, 202, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, #fdfbf7 0%, #f4f6fb 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Public Educational Header (Applied Astrology - A Holistic Approach)
   ========================================================================== */
.public-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 24px 20px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  position: relative;
}

.public-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e1b4b 0%, #0f766e 50%, #d97706 100%);
}

.public-header-inner {
  max-width: 820px;
  margin: 0 auto;
}

.public-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

.public-logo {
  max-height: 78px;
  width: auto;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
  transition: transform 0.2s ease;
}

.public-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  padding: 5px 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.06);
}

.public-heading-main {
  font-size: 38px;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 4px;
}

.public-heading-second {
  font-size: 24px;
  font-weight: 600;
  color: #0f766e;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 6px;
}

.public-kannada-sub {
  font-family: 'Noto Serif Kannada', 'Noto Sans Kannada', serif;
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 14px;
}

.public-description {
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
  max-width: 700px;
  margin: 0 auto 18px;
}

.public-highlights-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
}

.highlight-pill.accent {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.public-schedule-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.public-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.btn-explore-course {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  background-color: #1e1b4b;
  color: #ffffff;
  border: 1px solid #1e1b4b;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30, 27, 75, 0.18);
  transition: all 0.2s ease;
}

.btn-explore-course:hover {
  background-color: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.25);
}

.btn-check-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: #0f766e;
  border: 1.5px solid #0f766e;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
  transition: all 0.2s ease;
}

.btn-check-status:hover {
  background-color: #0f766e;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.22);
}

.public-lang-pill {
  display: inline-flex;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  padding: 2px;
  font-size: 12.5px;
}

.public-lang-btn {
  border: none;
  background: none;
  color: #475569;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.public-lang-btn.active {
  background-color: #1e1b4b;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
  .public-header {
    padding: 18px 14px 24px;
  }
  .public-heading-main {
    font-size: 26px;
  }
  .public-heading-second {
    font-size: 18px;
  }
  .public-kannada-sub {
    font-size: 14px;
  }
  .public-description {
    font-size: 13.5px;
    margin-bottom: 14px;
  }
  .btn-explore-course,
  .btn-check-status {
    width: auto;
    max-width: 100%;
    align-self: center;
    justify-content: center;
    text-align: center;
    font-size: 13.5px;
    padding: 10px 22px;
    margin: 0 auto;
  }
  .highlight-pill {
    font-size: 12px;
    padding: 4px 10px;
  }
  .public-top-bar {
    justify-content: flex-end;
  }
  .public-main {
    padding: 16px 14px 40px;
    width: 100%;
    max-width: 100%;
  }
  .form-card {
    padding: 0;
    max-width: 100%;
  }
  .btn-submit-senior {
    width: 100%;
    font-size: 15px;
    padding: 13px 18px;
    white-space: normal;
  }
  .public-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
}

.public-title {
  font-size: 26px;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.public-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: #475569;
  margin-top: 4px;
}

/* Main Form Wrapper - Seamless, Responsive, Edge-to-Edge */
.public-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px 48px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-card {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

.form-header {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.form-title {
  font-size: 22px;
  font-weight: 700;
  color: #1e1b4b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-description {
  font-size: 14.5px;
  color: #475569;
  margin-top: 6px;
  line-height: 1.5;
}

/* Form Controls - Larger, clear typography for seniors */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 620px) {
  .form-grid-2col {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

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

.form-label {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
}

.form-label .required {
  color: #dc2626;
  font-weight: 800;
  margin-left: 3px;
  font-size: 16px;
}

.form-label .optional {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-left: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.form-control:focus {
  border-color: var(--brand-secondary);
  box-shadow: var(--shadow-focus);
  background-color: #fafbfc;
}

.form-control.input-error {
  border-color: #ef4444;
  background-color: #fffafb;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.form-help {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  margin-top: 6px;
}

.error-text {
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  margin-top: 5px;
}

/* Course Selection Highlight */
.course-select-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 4px;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
  color: #ffffff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #3730a3 0%, #1e1b4b 100%);
  box-shadow: 0 6px 18px rgba(49, 46, 129, 0.35);
  transform: translateY(-1px);
}

.btn-submit-senior {
  background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
  color: #ffffff;
  padding: 15px 28px;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(49, 46, 129, 0.3);
  letter-spacing: 0.01em;
}

.btn-submit-senior:hover:not(:disabled) {
  background: linear-gradient(135deg, #3730a3 0%, #1e1b4b 100%);
  box-shadow: 0 10px 24px rgba(49, 46, 129, 0.4);
  transform: translateY(-2px);
}

/* Contact Teacher WhatsApp Button */
.contact-teacher-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1.5px dashed #e2e8f0;
  text-align: center;
}

.btn-contact-teacher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background-color: #f0fdf4;
  color: #15803d;
  border: 1.5px solid #86efac;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.12);
  transition: all 0.2s ease;
}

.btn-contact-teacher:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border-color: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #e2e8f0;
  color: #0f172a;
}

.btn-success {
  background-color: #16a34a;
  color: #ffffff;
}

.btn-danger {
  background-color: #dc2626;
  color: #ffffff;
}

.btn-warning {
  background-color: #d97706;
  color: #ffffff;
}

.btn-warning:hover:not(:disabled) {
  background-color: #b45309;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  border: 1.5px solid transparent;
  line-height: 1.5;
}

.alert-danger {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.alert-warning {
  background-color: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.alert-success {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

/* Confirmation Screen - Cheerful & Reassuring */
.confirmation-card {
  text-align: center;
  padding: 32px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
  width: 100%;
}

.confirmation-badge-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  border-radius: 50%;
  margin-bottom: 20px;
  font-size: 32px;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.15);
}

.confirmation-title {
  font-size: 24px;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 10px;
}

.confirmation-subtitle {
  font-size: 16px;
  color: #475569;
  margin-bottom: 22px;
}

.confirmation-notice {
  background: #fdfbf7;
  border: 1.5px solid #fde68a;
  border-left: 5px solid #d97706;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 14.5px;
  color: #1e1b4b;
  margin-bottom: 24px;
  line-height: 1.6;
  text-align: left;
}

.confirmation-whatsapp-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #fde68a;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.confirmation-actions-row {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
}

.confirmation-btn {
  flex: 1 1 230px;
  max-width: 280px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.2s ease;
  white-space: normal;
  line-height: 1.35;
}

@media (max-width: 540px) {
  .confirmation-actions-row {
    flex-direction: column;
    gap: 10px;
  }
  .confirmation-btn {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
}

/* Public Footer */
.public-footer {
  text-align: center;
  padding: 22px 16px;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  background-color: #ffffff;
}

.namaste-button {
  cursor: pointer;
  font-size: 22px;
  display: inline-block;
  user-select: none;
  opacity: 0.85;
  transition: all 0.25s ease;
  line-height: 1;
}

.namaste-button:hover {
  opacity: 1;
  transform: scale(1.25);
}

/* ==========================================================================
   ADMIN DASHBOARD & MANAGEMENT STYLES
   ========================================================================== */

.admin-header {
  background-color: #ffffff;
  border-bottom: 1.5px solid #e2e8f0;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-logo {
  max-height: 40px;
  width: auto;
}

.admin-brand-text {
  font-size: 16.5px;
  font-weight: 700;
  color: #1e1b4b;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #475569;
}

.admin-nav-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
}

.admin-nav-item {
  padding: 13px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-nav-item:hover {
  color: #1e1b4b;
  background-color: #f8fafc;
}

.admin-nav-item.active {
  color: #312e81;
  border-bottom-color: #4338ca;
  font-weight: 700;
}

.admin-main {
  flex: 1;
  padding: 26px 24px;
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
}

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

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.stat-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.stat-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 6px;
}

.stat-card.highlight {
  border-left: 4px solid #4338ca;
}

.stat-card.warning {
  border-left: 4px solid #d97706;
}

/* Content Panel */
.panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  margin-bottom: 26px;
  overflow: hidden;
}

.panel-header {
  padding: 16px 22px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fafbfc;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e1b4b;
}

.panel-body {
  padding: 22px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
}

.filter-input {
  max-width: 240px;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 11px 14px;
  border-bottom: 1.5px solid #e2e8f0;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  vertical-align: middle;
}

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

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: capitalize;
  white-space: nowrap;
}

.badge-active {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-pending {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-inactive {
  background-color: #f1f5f9;
  color: #475569;
}

.badge-rejected {
  background-color: #fee2e2;
  color: #b91c1c;
}

.badge-archived {
  background-color: #e2e8f0;
  color: #334155;
}

.badge-wa-sent {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-weight: 600;
}

.badge-wa-unsent {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 600;
}

.action-group {
  display: inline-flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background-color: #fafbfc;
  font-size: 13.5px;
  color: #64748b;
}

body.modal-open-no-scroll {
  overflow: hidden !important;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal-content {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.modal-content > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.slip-modal-wrapper {
  width: 100%;
  max-width: 660px;
  margin: auto;
  background: transparent;
  border-radius: 16px;
  position: relative;
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e1b4b;
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
}

.modal-close:hover {
  color: #0f172a;
}

.modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid #e2e8f0;
  background-color: #fafbfc;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  row-gap: 12px;
  column-gap: 16px;
  font-size: 14px;
  margin-bottom: 20px;
}

.profile-label {
  color: #64748b;
  font-weight: 600;
}

.profile-value {
  color: #0f172a;
}

.activity-item {
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 13.5px;
}

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

.activity-details {
  color: #0f172a;
}

.activity-time {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  margin-left: 12px;
}

/* =============================================================================
   WhatsApp Management & Messaging Center Styles
   ============================================================================= */
.subnav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 22px;
}

.subnav-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.subnav-tab:hover {
  color: #0f172a;
}

.subnav-tab.active {
  color: #059669;
  border-bottom-color: #10b981;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-whatsapp:hover:not(:disabled) {
  background-color: #128C7E;
  color: #ffffff;
}

.var-pill {
  display: inline-block;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 11.5px;
  font-family: monospace;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #bae6fd;
  transition: all 0.15s ease;
  user-select: none;
}

.var-pill:hover {
  background-color: #bae6fd;
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

.whatsapp-preview-box {
  background-color: #efeae2;
  background-image: radial-gradient(#d1d7db 0.75px, transparent 0.75px);
  background-size: 12px 12px;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #d1d7db;
  width: 100%;
}

.whatsapp-bubble {
  background-color: #ffffff;
  padding: 12px 14px;
  border-radius: 8px 8px 8px 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  font-size: 13.5px;
  line-height: 1.55;
  color: #111b21;
  white-space: pre-wrap;
  word-break: break-word;
}

/* =============================================================================
   Course Information & Syllabus Page (English & Kannada)
   Senior-Friendly Readable Typography & Proportions
   ============================================================================= */
.course-info-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 56px;
  font-family: 'Plus Jakarta Sans', 'Noto Serif Kannada', 'Noto Sans Kannada', serif, sans-serif;
}

.course-info-hero {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 28px 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.16);
  position: relative;
  overflow: hidden;
}

.course-hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.course-hero-logo-box {
  background-color: #ffffff;
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.course-hero-logo {
  height: 60px;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

.course-info-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.35;
  font-family: 'Plus Jakarta Sans', 'Noto Serif Kannada', 'Noto Sans Kannada', serif, sans-serif;
}

.course-info-sub {
  font-size: 16.5px;
  opacity: 0.94;
  margin: 0 0 16px 0;
  line-height: 1.6;
  font-family: 'Plus Jakarta Sans', 'Noto Serif Kannada', 'Noto Sans Kannada', serif, sans-serif;
}

.lang-switch-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  padding: 4px;
  width: fit-content;
}

.lang-switch-btn {
  border: none;
  background: none;
  color: #ffffff;
  padding: 7px 18px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switch-btn.active {
  background-color: #ffffff;
  color: #065f46;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.course-accordion-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.course-accordion-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.course-accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 14px;
  user-select: none;
}

.course-accordion-header:hover {
  background-color: #f8fafc;
}

.course-sec-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.course-accordion-body {
  padding: 22px 26px 26px;
  border-top: 1px solid #f1f5f9;
  font-size: 17.5px;
  line-height: 1.82;
  color: #1e293b;
  letter-spacing: 0.01em;
  font-family: 'Plus Jakarta Sans', 'Noto Serif Kannada', 'Noto Sans Kannada', serif, sans-serif;
}

.course-accordion-body p {
  margin: 0 0 16px 0;
}

.course-accordion-body p:last-child {
  margin-bottom: 0;
}

.course-accordion-body ul,
.course-accordion-body ol {
  margin: 10px 0 16px 24px;
  padding: 0;
}

.course-accordion-body li {
  margin-bottom: 10px;
  line-height: 1.82;
}

/* Special Highlighting: Dharmic Compass */
.special-section-dharmic {
  border: 2px solid #f59e0b;
  background-color: #fffdf5;
}

.special-section-dharmic .course-sec-badge {
  background-color: #fef3c7;
  color: #b45309;
}

.special-section-dharmic .course-accordion-header {
  background-color: #fffbeb;
}

/* Special Highlighting: Amṛta Vṛtti */
.special-section-amrita {
  border: 2px solid #10b981;
  background-color: #f6fdf9;
}

.special-section-amrita .course-sec-badge {
  background-color: #d1fae5;
  color: #065f46;
}

.special-section-amrita .course-accordion-header {
  background-color: #ecfdf5;
}

/* Course Details Grid/Table */
.course-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

.course-info-table th,
.course-info-table td {
  padding: 14px 20px;
  font-size: 16.5px;
  line-height: 1.6;
  border-bottom: 1px solid #e2e8f0;
}

.course-info-table th {
  background-color: #f8fafc;
  color: #334155;
  font-weight: 600;
  width: 35%;
}

.course-info-table td {
  color: #0f172a;
}

.closing-message-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-left: 6px solid #d97706;
  border-radius: 10px;
  padding: 28px 32px;
  margin-top: 28px;
  font-style: italic;
  font-size: 17.5px;
  line-height: 1.85;
  color: #78350f;
  text-align: center;
  font-family: 'Plus Jakarta Sans', 'Noto Serif Kannada', 'Noto Sans Kannada', serif, sans-serif;
}

/* ==========================================================================
   DIGITAL WELCOME SLIP & ADMISSION STATUS CHECK
   ========================================================================== */

/* WhatsApp Button */
.btn-join-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25D366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14.5px;
  padding: 10px 20px;
  border-radius: 26px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-join-whatsapp:hover {
  background-color: #1eb956;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  color: #ffffff !important;
}

/* Status Check Modal Details */
.status-result-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 14px;
}

.status-student-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 12px;
}

.status-enrollment-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.status-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.status-badge.active {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-badge.pending {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Course Modal Tabs */
.course-modal-tabs {
  display: flex;
  background-color: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  gap: 6px;
}

.course-modal-tab-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.course-modal-tab-btn:hover {
  color: #1e1b4b;
  background-color: rgba(255, 255, 255, 0.6);
}

.course-modal-tab-btn.active {
  background-color: #ffffff;
  color: #0f766e;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.status-whatsapp-box {
  margin-top: 12px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

/* Digital Welcome Slip Card */
.digital-welcome-slip-card {
  background: #ffffff;
  border: 2px solid #0f766e;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 118, 110, 0.14);
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  font-family: 'Plus Jakarta Sans', 'Noto Serif Kannada', 'Noto Sans Kannada', sans-serif;
  color: #1e293b;
}

.slip-top-accent {
  height: 8px;
  background: linear-gradient(90deg, #065f46 0%, #0f766e 70%, #d97706 100%);
}

.slip-header {
  padding: 20px 24px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  background: #fafbfc;
  flex-wrap: wrap;
  gap: 12px;
}

.slip-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slip-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.slip-org-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slip-org-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.slip-status-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.slip-status-tag.approved {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.slip-status-tag.pending {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.slip-modal-close-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.slip-modal-close-btn:hover {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: scale(1.08);
}

.slip-main-title {
  text-align: center;
  padding: 16px 20px 8px;
}

.slip-main-title h3 {
  font-size: 17px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0;
  letter-spacing: 0.02em;
}

.slip-main-kannada {
  font-size: 14.5px;
  color: #0f766e;
  font-weight: 600;
  margin: 4px 0 0;
}

.slip-app-no-box {
  margin: 12px 24px;
  background: #fefce8;
  border: 1.5px dashed #d97706;
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
}

.slip-app-no-label {
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slip-app-no-value {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 20px;
  font-weight: 800;
  color: #78350f;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.slip-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
  padding: 14px 24px;
}

.slip-detail-item {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
}

.slip-detail-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.slip-detail-val {
  font-size: 14px;
  color: #1e293b;
  word-break: break-word;
}

.slip-whatsapp-approved-box {
  margin: 10px 24px;
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  border-radius: 10px;
  padding: 14px 18px;
  text-align: center;
}

.slip-notice-box {
  margin: 10px 24px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.5;
}

.slip-motto-box {
  margin: 14px 24px 8px;
  background: #fdfaf3;
  border-left: 4px solid #d97706;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
}

.slip-motto-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #78350f;
  font-style: italic;
  font-family: 'Noto Serif Kannada', 'Noto Sans Kannada', serif;
}

.slip-motto-sub {
  font-size: 11.5px;
  color: #92400e;
  margin-top: 3px;
}

.slip-footer {
  padding: 12px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 6px;
}

.slip-actions {
  padding: 16px 24px;
  background: #ffffff;
  display: flex;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
}

/* Print Rules */
@media print {
  body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body * {
    visibility: hidden;
  }

  .digital-welcome-slip-print-area,
  .digital-welcome-slip-print-area * {
    visibility: visible;
  }

  .digital-welcome-slip-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #065f46 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-no-print {
    display: none !important;
  }

  .modal-overlay {
    position: static !important;
    background: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .modal-content {
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    max-height: none !important;
  }
}

@media (max-width: 640px) {
  .slip-details-grid {
    grid-template-columns: 1fr;
    padding: 10px 14px;
  }
  .slip-header {
    padding: 14px;
  }
  .slip-app-no-box,
  .slip-whatsapp-approved-box,
  .slip-notice-box,
  .slip-motto-box,
  .slip-footer,
  .slip-actions {
    margin-left: 14px;
    margin-right: 14px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
