@import url("https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap");
/* ============================================================
   GLOBAL.CSS - Partner Website Stylesheet
   ============================================================ */

/* ╔═══════════════════════════════════════════════════════════╗
   ║           🎨 PARTNER CONFIGURATION                        ║
   ║   Edit ONLY this section to customize for each partner    ║
   ╚═══════════════════════════════════════════════════════════╝ */

:root {
  /* ─────────────────────────────────────────────────────────────
     BRAND COLORS
     ───────────────────────────────────────────────────────────── */
  --primary: #cc0000;
  --primary-dark: #990000;
  --primary-light: #bcbcbc;

  /* Aliases for backward compatibility */
  --brand-red: var(--primary);
  --brand-dark: var(--primary-dark);
  --brand-light: var(--primary-light);

  /* ─────────────────────────────────────────────────────────────
     BASE THEMING (Light Mode - Do not modify)
     ───────────────────────────────────────────────────────────── */
  --bg-app: #f8f9fc;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: var(--text-muted);

  --border: #e2e8f0;
  --border-color: var(--border);

  --font-family: "Plus Jakarta Sans", sans-serif;
  --container-width: 1200px;
  --nav-height: 80px;

  /* Status Colors */
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Layout Variables */
  --header-height: 80px;
}

/* ============================
   RESET & BASE (Unified)
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-family);
  color: var(--text-main);
  line-height: 1.5;
  background-color: var(--bg-app);
  transition: background-color 0.3s ease, color 0.3s ease;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
button {
  font-family: inherit;
  cursor: pointer;
  background: none;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}

/* ============================
   LAYOUT UTILITIES
   ============================ */
.app-container {
  display: flex;
  height: 100vh;
  width: 100%;
}
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 80px 0;
}
.bg-light {
  background-color: var(--bg-light);
}
.text-center {
  text-align: center;
}
.text-highlight {
  color: var(--brand-red);
}
.text-muted {
  color: var(--text-muted);
  font-size: 12px;
}
.text-right {
  text-align: right;
}

/* ============================
   TYPOGRAPHY & ICONS
   ============================ */
.overline {
  display: block;
  color: var(--brand-red);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.icon-red {
  color: var(--brand-red);
  font-size: 18px;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background-color: var(--brand-red);
  color: white;
  border: 1px solid transparent;
  transition: 0.3s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--brand-dark);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s linear;
}

.btn-primary:hover::before {
  transform: scaleX(1);
}

.btn-primary i {
  position: relative;
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  animation: arrowDash 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Blue Button (same animation as primary) */
.btn-blue {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background-color: #2563eb; /* blue-600 */
  color: white;
  border: 1px solid transparent;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-blue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1d4ed8; /* blue-700 */
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s linear;
}

.btn-blue:hover::before {
  transform: scaleX(1);
}

.btn-blue i {
  position: relative;
  transition: transform 0.3s ease;
}

.btn-blue:hover i {
  animation: arrowDash 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Glass Button */
.btn-glass {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: transparent;
  color: #ffffff;
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  /* Updated transitions to include border-color */
  transition: box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Light Grey Background on Hover */
  background: var(--bg-light);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s linear;
}

.btn-glass:hover {
  /* Red Text and Border on Hover */
  color: var(--primary) !important;
  border-color: var(--primary);
}

.btn-glass:hover::before {
  transform: scaleX(1);
}

.btn-glass i {
  position: relative;
  transition: transform 0.3s ease;
}

.btn-glass:hover i {
  animation: arrowDash 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

/* Black Button (Solid Dark) */
.btn-black {
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* 1. Solid Dark Background by default */
  background: var(--text-main);
  /* 2. White text by default */
  color: white;
  border: 1px solid var(--text-main);
  transition: box-shadow 0.3s ease, border-color 0.3s;
}

.btn-black::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 3. Hover Slide Effect: Slides in a darker shade (Slate 900 / Black) */
  background: #0f172a;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s linear;
}

.btn-black:hover {
  /* Keep text white on hover */
  color: white;
  /* Match border to the new background color */
  border-color: #0f172a;
}

.btn-black:hover::before {
  transform: scaleX(1);
}

.btn-black i {
  position: relative;
  transition: transform 0.3s ease;
}

.btn-black:hover i {
  animation: arrowDash 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes arrowDash {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  40% {
    transform: translateX(10px);
    opacity: 0;
  }
  41% {
    transform: translateX(-10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.btn-full {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
}

/* Status Pill Base */
.status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}
.status-pill.green {
  background: #f0fdf4;
  color: #16a34a;
}
.status-pill.gray {
  background: #f3f4f6;
  color: #6b7280;
}
.status-pill.orange {
  background: #fff7ed;
  color: #ea580c;
}

.course-name {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: -0.5px;
}

/* Primary Color Classes */
.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-primary-dark {
  background-color: var(--primary-dark) !important;
}

.bg-primary-light {
  background-color: var(--primary-light) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

.hover\:text-primary:hover {
  color: var(--primary) !important;
}

.hover\:bg-primary:hover {
  background-color: var(--primary) !important;
}

.focus\:border-primary:focus {
  border-color: var(--primary) !important;
}

.focus\:ring-primary:focus {
  --tw-ring-color: var(--primary) !important;
}

/* Global Input/Select Focus Styles - Red (Primary) */
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 1px var(--primary) !important;
}

/* Exclude inputs with no-focus-ring class (e.g., search bars in topbar) */
input.no-focus-ring:focus {
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Reset Tailwind default ring colors for consistency */
.focus\:ring-1:focus {
  box-shadow: 0 0 0 1px var(--primary) !important;
}

/* Hero Pattern Background */
.bg-hero-pattern {
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
}

/* Arrow Dash Animation */
.animate-arrow-dash {
  animation: arrowDash 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Font Family Override */
.font-sans {
  font-family: "Plus Jakarta Sans", sans-serif !important;
}

/* ============================
   4. DASHBOARD SPECIFIC STYLES
   ============================ */

/* Sidebar transitions */
.sidebar {
  transition: transform 0.3s ease, width 0.3s ease;
}

/* Mobile: Sidebar hidden by default, slides in */
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }
  .main-content {
    margin-left: 0 !important;
  }
  /* Sidebar overlay backdrop */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Desktop: Normal sidebar behavior */
@media (min-width: 1024px) {
  .sidebar.collapsed {
    width: 60px;
  }
  .sidebar.collapsed .sidebar-label,
  .sidebar.collapsed .nav-text,
  .sidebar.collapsed .sub-menu {
    display: none;
  }
  .sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 10px 0;
  }
  .sidebar.collapsed .logo-full {
    opacity: 0;
  }
  .sidebar.collapsed .logo-icon {
    opacity: 1;
  }
  .main-content.expanded {
    margin-left: 60px;
  }
}

.main-content {
  transition: margin-left 0.3s ease;
}

/* Sub-menu - hover on desktop, click on mobile */
@media (min-width: 1024px) {
  .nav-group:hover .sub-menu {
    max-height: 200px;
    padding-bottom: 8px;
  }
}

/* Click-based dropdown (JavaScript adds .open class) */
.nav-group.open .sub-menu {
  max-height: 200px;
  padding-bottom: 8px;
}
.nav-group.open > .nav-item .ph-caret-down {
  transform: rotate(180deg);
}
.nav-group .ph-caret-down {
  transition: transform 0.3s ease;
}

.sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

/* Wave animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.animate-pulse-slow {
  animation: pulse 2s infinite;
}

/* Circle chart */
.circle-chart {
  transform: rotate(-90deg);
}

/* Scrollbar styling */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

/* Hero animated background */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}
.animate-float-1 {
  animation: float 6s ease-in-out infinite;
}
.animate-float-2 {
  animation: float 8s ease-in-out infinite 1s;
}
.animate-float-3 {
  animation: float 7s ease-in-out infinite 2s;
}
.animate-shimmer {
  animation: shimmer 3s ease-in-out infinite;
}
.animate-pulse-glow {
  animation: pulse-glow 4s ease-in-out infinite;
}

/* Table Checkbox Styles */
.checkbox-wrapper input:checked + div {
  background-color: var(--primary);
  border-color: var(--primary);
}
.checkbox-wrapper input:checked + div svg {
  display: block;
}

/* Modal Styling */
.modal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal.open .modal-content {
  transform: scale(1);
  opacity: 1;
}
.modal-content {
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.2s ease-in-out;
}

/* Timeline/View Student Styles */
.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 11px; /* Align deeply with icon center */
  bottom: -16px;
  width: 2px;
  background-color: #f1f5f9;
  z-index: 0;
}

/* Fade in animation for content switching */
.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Glow Effects */
.glow-card {
  transition: all 0.3s ease;
}
.glow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ============================
   5. PAGE SPECIFIC STYLES
   ============================ */

/* Admin Settings & Speaking Test Utilities */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Admin Upgrade Package Page */
.tabs-container {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  background: white;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}
.tab-pill {
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .tab-pill {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}
.tab-pill.active {
  background-color: #fef2f2;
  color: #2d4f8f;
}

/* Scoped Sticky Header for Upgrade Table */
.upgrade-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
}

.upgrade-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.upgrade-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Speaking Test Part 3 */
.nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.nav-btn-black {
  background-color: #000000;
  color: white;
}
.nav-btn-black:hover {
  background-color: #333333;
}
.nav-btn-disabled {
  background-color: #e5e7eb;
  color: white;
  cursor: not-allowed;
}

/* Active Mic Animation */
.mic-pulse {
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  animation: pulse-red 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulse-red {
  to {
    box-shadow: 0 0 0 20px rgba(220, 38, 38, 0);
  }
}

/* Question Highlight Style */
.active-question {
  background-color: #f3f4f6;
  color: #111827;
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}
.inactive-question {
  color: #9ca3af;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

/* Admin Current Package Page */
.bg-gradient-pro {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}
.bg-gradient-prime {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Speaking Test Part 2 (Handwriting) */
.font-handwriting {
  font-family: "Kalam", cursive;
}

/* Reading Test Full Test */
.q-input:focus {
  outline: 2px solid #3b82f6;
  border-color: #3b82f6;
}
.drag-over {
  background-color: #eff6ff;
  border-color: #3b82f6;
  border-style: solid;
}
