/* ==========================================================================
   NAVOTIX SCHOOL ERP - COMPLETE ZOHO-INSPIRED DESIGN SYSTEM & RESPONSIVE CSS
   ========================================================================== */

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

:root {
  /* Zoho Primary Signature Palette */
  --zoho-red: #D9232D;
  --zoho-red-hover: #B81822;
  --zoho-red-light: #FEE2E2;
  --zoho-red-subtle: #FFF5F5;
  
  --zoho-blue: #0B63E5;
  --zoho-blue-dark: #0747A6;
  --zoho-blue-light: #EFF6FF;
  --zoho-blue-subtle: #F8FAFC;
  
  --zoho-green: #10B981;
  --zoho-green-dark: #059669;
  --zoho-green-light: #ECFDF5;
  
  --zoho-amber: #F59E0B;
  --zoho-amber-dark: #D97706;
  --zoho-amber-light: #FEF3C7;
  
  --zoho-purple: #8B5CF6;
  --zoho-purple-light: #F5F3FF;

  /* Slate Neutrals */
  --slate-950: #020617;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevations & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-zoho: 0 12px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 35px -6px rgba(15, 23, 42, 0.12), 0 6px 12px -3px rgba(15, 23, 42, 0.04);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::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-body);
  color: var(--slate-800);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

img, svg {
  vertical-align: middle;
}

/* ==========================================================================
   ZOHO BRAND ACCENTS
   ========================================================================== */
.zoho-accent-bar {
  height: 4px;
  width: 100%;
  display: flex;
  position: relative;
  z-index: 60;
}
.accent-red { background: var(--zoho-red); flex: 1; }
.accent-blue { background: var(--zoho-blue); flex: 1; }
.accent-green { background: var(--zoho-green); flex: 1; }
.accent-yellow { background: var(--zoho-amber); flex: 1; }

.top-banner {
  background: #0F172A;
  color: #F8FAFC;
  font-size: 0.825rem;
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-banner a {
  color: #60A5FA;
  font-weight: 600;
  margin-left: 0.35rem;
}
.top-banner a:hover {
  color: #93C5FD;
}

/* ==========================================================================
   NAVIGATION & MEGA MENU
   ========================================================================== */
.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: all 0.2s ease;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--zoho-red);
}

.nav-link.active {
  color: var(--zoho-red);
}

.has-dropdown {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 820px;
  max-width: 95vw;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.04);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.has-dropdown:hover .mega-menu,
.has-dropdown:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   BUTTONS (Zoho Design System)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  user-select: none;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-primary {
  background-color: var(--zoho-red);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(217, 35, 45, 0.2);
}
.btn-primary:hover {
  background-color: var(--zoho-red-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 35, 45, 0.35);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--slate-800);
  border-color: var(--slate-300);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background-color: var(--slate-50);
  border-color: var(--slate-400);
  color: var(--zoho-blue);
  transform: translateY(-1px);
}

.btn-blue {
  background-color: var(--zoho-blue);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(11, 99, 229, 0.2);
}
.btn-blue:hover {
  background-color: var(--zoho-blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11, 99, 229, 0.35);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}

@media (min-width: 640px) {
  .btn-lg {
    padding: 0.85rem 1.85rem;
    font-size: 1rem;
  }
}

/* ==========================================================================
   PILL BADGES
   ========================================================================== */
.badge-zoho {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-red {
  background-color: var(--zoho-red-light);
  color: var(--zoho-red);
}

.badge-blue {
  background-color: var(--zoho-blue-light);
  color: var(--zoho-blue);
}

.badge-green {
  background-color: var(--zoho-green-light);
  color: var(--zoho-green-dark);
}

.badge-amber {
  background-color: var(--zoho-amber-light);
  color: #B45309;
}

.badge-purple {
  background-color: var(--zoho-purple-light);
  color: var(--zoho-purple);
}

/* ==========================================================================
   MODULE FILTER PILLS
   ========================================================================== */
.module-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
  user-select: none;
}

.module-filter-pill:hover {
  background-color: var(--slate-100);
  color: var(--slate-900);
  border-color: var(--slate-300);
}

.module-filter-pill.active {
  background-color: var(--slate-900) !important;
  color: var(--white) !important;
  border-color: var(--slate-900) !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
}

.module-filter-pill.active:hover {
  background-color: var(--slate-800) !important;
  color: var(--white) !important;
}

/* ==========================================================================
   ZOHO CARDS
   ========================================================================== */
.zoho-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.zoho-card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-zoho);
  transform: translateY(-2px);
}

/* Icon Box */
.icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
  font-size: 1.25rem;
}

.zoho-card:hover .icon-box {
  transform: scale(1.06);
}

.icon-box-red { background: var(--zoho-red-light); color: var(--zoho-red); }
.icon-box-blue { background: var(--zoho-blue-light); color: var(--zoho-blue); }
.icon-box-green { background: var(--zoho-green-light); color: var(--zoho-green-dark); }
.icon-box-amber { background: var(--zoho-amber-light); color: #B45309; }
.icon-box-purple { background: var(--zoho-purple-light); color: var(--zoho-purple); }

/* ==========================================================================
   CHECK LISTS
   ========================================================================== */
.zoho-check-list {
  list-style: none;
}

.zoho-check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: var(--slate-700);
  line-height: 1.5;
}

.zoho-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--zoho-green-dark);
  font-weight: 800;
  font-size: 0.95rem;
}

/* ==========================================================================
   INTERACTIVE TABS & MOCKUP WINDOW
   ========================================================================== */
.erp-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--slate-700);
  flex-shrink: 0;
  user-select: none;
}

.erp-tab-btn:hover {
  border-color: var(--slate-300);
  background: var(--slate-50);
}

.erp-tab-btn.active {
  background: var(--white);
  border-color: var(--zoho-blue);
  box-shadow: 0 4px 12px rgba(11, 99, 229, 0.12);
  color: var(--zoho-blue);
}

.erp-tab-btn.active .tab-icon {
  background: var(--zoho-blue);
  color: var(--white);
}

.tab-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 1.1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mockup-window {
  background: var(--slate-900);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.2);
  border: 1px solid var(--slate-800);
  overflow: hidden;
  width: 100%;
}

.mockup-header {
  background: #182234;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #283548;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #EF4444; }
.mockup-dot.yellow { background: #F59E0B; }
.mockup-dot.green { background: #10B981; }

.mockup-body {
  background: #F8FAFC;
  padding: 1.5rem;
  color: var(--slate-800);
  min-height: 420px;
}

/* ==========================================================================
   PRICING SLIDER & TABLES
   ========================================================================== */
.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #CBD5E1;
  outline: none;
  touch-action: pan-y;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--zoho-red);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(217, 35, 45, 0.4);
  border: 3px solid var(--white);
  transition: transform 0.15s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.custom-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--zoho-red);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(217, 35, 45, 0.4);
  border: 3px solid var(--white);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 620px;
}

.comparison-table th {
  background: var(--slate-50);
  padding: 0.9rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-900);
  text-align: left;
  border-bottom: 2px solid var(--slate-200);
}

.comparison-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.875rem;
  color: var(--slate-700);
}

.comparison-table tr:hover td {
  background: var(--slate-50);
}

/* ==========================================================================
   MODAL POPUP
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

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

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

/* ==========================================================================
   MOBILE DRAWER & RESPONSIVENESS
   ========================================================================== */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 88vw;
  background: var(--white);
  padding: 1.25rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-chevron {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-submenu {
  animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Horizontal Scrolling Bar for Mobile Filter Pills */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
  background: var(--white);
}

.faq-item.active {
  border-color: var(--zoho-blue);
  box-shadow: 0 4px 12px rgba(11, 99, 229, 0.08);
}

.faq-header {
  padding: 1.1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--slate-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  user-select: none;
}

.faq-header:hover {
  background: var(--slate-50);
}

.faq-content {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.25s ease;
  color: var(--slate-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-item.active .faq-content {
  padding: 0 1.25rem 1.25rem 1.25rem;
  max-height: 400px;
}

.faq-icon {
  transition: transform 0.2s ease;
  font-size: 1.1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--zoho-blue);
}

/* Toast alert */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  max-width: 420px;
  margin-left: auto;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: var(--slate-900);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.text-gradient {
  background: linear-gradient(135deg, #0F172A 0%, #D9232D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive Media Queries */
@media (max-width: 640px) {
  .mockup-body {
    padding: 1rem;
    min-height: auto;
  }
  .erp-tab-btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
  }
  .tab-icon {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }
  .zoho-card {
    padding: 1.25rem;
  }
  .modal-content {
    padding: 1.25rem !important;
  }
}

