/* ====================================================================
   BIONUL EDTECH PLATFORM - GLOBAL DESIGN SYSTEM & TOKENS
   Matched directly to the premium reference mobile app aesthetic
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Primary Theme Colors from Reference Image */
  --primary: #5B3DF5;
  --primary-dark: #4326D8;
  --primary-hover: #4E2FE3;
  --primary-light: #F1EEFF;
  --primary-gradient: linear-gradient(135deg, #5B3DF5 0%, #4326D8 100%);
  --hero-card-gradient: linear-gradient(135deg, #5B3DF5 0%, #472BDC 60%, #3B1FD0 100%);

  /* Icon Container Pastels from Reference */
  --pastel-red: #FFF1F2;
  --pastel-red-icon: #F43F5E;
  
  --pastel-purple: #F3F0FF;
  --pastel-purple-icon: #5B3DF5;
  
  --pastel-yellow: #FEF8E7;
  --pastel-yellow-icon: #F59E0B;
  
  --pastel-green: #EBFBF5;
  --pastel-green-icon: #10B981;

  /* Live Class Accent Box */
  --live-card-bg: #F4F2FF;
  --live-card-border: #DCD6FE;
  --live-badge-bg: #EAE6FF;
  --live-badge-text: #5B3DF5;

  /* Neutrals & Surfaces */
  --bg-main: #F8F9FD;
  --surface-card: #FFFFFF;
  --surface-subtle: #F3F4F8;
  --border-color: #EAEBF2;
  --border-subtle: #F0F1F6;

  /* Typography Colors */
  --text-heading: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-primary: #5B3DF5;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(91, 61, 245, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 20px rgba(91, 61, 245, 0.07), 0 2px 6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 32px rgba(91, 61, 245, 0.12), 0 4px 10px rgba(15, 23, 42, 0.04);
  --shadow-hero: 0 12px 28px rgba(91, 61, 245, 0.28);
  --shadow-nav: 0 -4px 20px rgba(15, 23, 42, 0.05);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Layout */
  --header-height: 64px;
  --bottom-nav-height: 68px;
  --sidebar-width: 260px;

  /* Font */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

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

h1 { font-size: 1.75rem; }
h2 { font-size: 1.2rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; }

.subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

/* Button Component Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(91, 61, 245, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4E2FE3 0%, #3B1FD0 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(91, 61, 245, 0.42);
}

.btn-secondary {
  background-color: var(--surface-card);
  color: var(--text-heading);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--surface-subtle);
  border-color: var(--border-strong);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

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

/* Form Styles */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background-color: var(--surface-card);
  color: var(--text-heading);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(91, 61, 245, 0.15);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

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

.grid {
  display: grid;
  gap: 16px;
}
