@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap");

:root {
  /* Color Palette */
  --el-primary: #135bec;
  --el-primary-hover: #104bc4;
  --el-bg-light: #f6f6f8;
  --el-bg-dark: #101622;
  --el-text-main: #111318;
  --el-text-muted: #616f89;

  /* Sidebar Specifics */
  --el-sidebar-bg: #ffffff;
  --el-sidebar-border: #e5e7eb; /* gray-200 */
  --el-sidebar-active-bg: rgba(19, 91, 236, 0.1);
  --el-sidebar-active-text: var(--el-primary);
  --el-sidebar-text: #4b5563; /* gray-600 */
  --el-sidebar-hover-bg: #f9fafb; /* gray-50 */
  --el-sidebar-hover-text: #111318;

  /* Font Family */
  --el-font-family: "Lexend", sans-serif;

  /* Bootstrap Overrides */
  --bs-primary: var(--el-primary);
  --bs-body-font-family: var(--el-font-family);
  --bs-body-bg: var(--el-bg-light);
}

/* Modal Enhancements */
.el-modal-backdrop {
  background-color: rgba(17, 24, 39, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: opacity 0.3s ease;
}

.el-modal-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Scroll Lock when Modal is open */
/* Scroll Lock when Modal is open */
body.modal-open,
body.modal-open .content-area,
body.modal-open .main-content {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none; /* Prevent scroll on mobile */
}

.cursor-pointer {
  cursor: pointer;
}

html,
body {
  height: 100vh; /* Force full viewport height */
  width: 100vw;
  margin: 0;
  overflow: hidden; /* Prevent body scroll, handle inside layout */
  font-family: var(--el-font-family) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--el-font-family) !important;
}

h1:focus {
  outline: none;
}

/* Scrollbar styling */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Blazor Error UI */
.blazor-error-boundary {
  background:
    url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zMTMgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=)
      no-repeat 1rem/1.8rem,
    #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

/* Utilities */
.text-xs {
  font-size: 0.75rem !important;
}

.text-sm {
  font-size: 0.875rem !important;
}

.extra-small {
  font-size: 0.75rem !important;
}

.font-black {
  font-weight: 900 !important;
}

.rounded-xl {
  border-radius: 0.75rem !important;
}

.size-8 {
  width: 2rem;
  height: 2rem;
}

.size-10 {
  width: 2.5rem;
  height: 2.5rem;
}

.bg-primary-subtle {
  background-color: rgba(19, 91, 236, 0.1) !important;
  color: var(--el-primary) !important;
}

.gap-6 {
  gap: 1.5rem !important;
}

/* Custom Scrollbar for Editor */
.editor-content-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* ===================================
   LANDING PAGE STYLES
   =================================== */

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(19, 91, 236, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(19, 91, 236, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(19, 91, 236, 0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

/* Hero Section */
.landing-hero {
  position: relative;
  background-color: #ffffff;
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 32px 32px;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(219, 234, 254, 0.9),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.text-gradient {
  background: linear-gradient(to right, var(--el-primary), #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-badge {
  transition: all 0.3s ease;
  cursor: default;
}

.landing-badge:hover {
  background: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--el-primary);
  border-radius: 50%;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--el-primary);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

.pulse-dot-small {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}

.pulse-dot-small::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

.landing-btn-lift {
  transition: all 0.3s ease;
}

.landing-btn-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.landing-btn-lift:active {
  transform: translateY(0);
}

.landing-btn-hover {
  transition: all 0.3s ease;
}

.landing-btn-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(19, 91, 236, 0.3) !important;
}

.landing-btn-hover:active {
  transform: scale(0.98);
}

/* Avatar Images */
.landing-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid white;
  margin-left: -8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.landing-avatar:first-child {
  margin-left: 0;
}

/* Phone Mockup */
.landing-phone-mockup {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-phone-device {
  position: relative;
  width: 280px;
  height: 580px;
  border-radius: 3rem;
  border: 8px solid #111827;
  background: #111827;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: rotate(-6deg) translateX(-20px);
  z-index: 10;
}

.landing-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 24px;
  background: #000;
  border-radius: 0 0 1rem 1rem;
  z-index: 20;
}

.landing-phone-screen {
  height: 100%;
  width: 100%;
  border-radius: 2.3rem;
  background: var(--el-bg-light);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Floating Cards */
.landing-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 30;
}

.landing-float-1 {
  top: 0;
  left: 10%;
  animation: float 6s ease-in-out infinite;
  transform: rotate(-10deg);
}

.landing-float-2 {
  bottom: 80px;
  left: 0;
  animation: float 7s ease-in-out 2s infinite;
  transform: rotate(5deg);
}

.landing-float-3 {
  top: 50px;
  right: 10%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: float 8s ease-in-out 1s infinite;
}

.landing-progress-ring {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-progress-text {
  position: absolute;
  font-size: 0.75rem;
  font-weight: bold;
  color: #111318;
}

/* Content Card */
.landing-content-card {
  position: absolute;
  bottom: 80px;
  right: -40px;
  width: 320px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
  transform: rotate(4deg);
  animation: float 7s ease-in-out infinite;
  z-index: 20;
}

.landing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Preview Section */
.landing-preview-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  justify-content: center;
}

.landing-preview-scroll::-webkit-scrollbar {
  display: none;
}

.landing-preview-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
}

.landing-preview-item:hover {
  transform: scale(1.05);
}

.landing-preview-phone {
  width: 240px;
  height: 480px;
  border-radius: 2rem;
  border: 8px solid #111827;
  background: #f6f6f8;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.landing-preview-phone-lg {
  width: 270px;
  height: 540px;
  border-radius: 2.5rem;
  border: 10px solid #111827;
  background: white;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.landing-preview-featured {
  transform: scale(1.05);
  z-index: 10;
}

/* Feature Cards */
.landing-feature-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid transparent;
}

.landing-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(19, 91, 236, 0.1);
}

.landing-feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.landing-feature-card:hover .landing-feature-icon {
  transform: scale(1.1);
}

.landing-feature-icon .material-symbols-outlined {
  font-size: 2rem;
}

/* Key Features */
.landing-key-feature {
  background: white;
  border-radius: 1.5rem;
  border: 1px solid #e5e7eb;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  transition: all 0.3s ease;
}

.landing-key-feature:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Steps */
.landing-step-connector {
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--el-primary) 25%, #e5e7eb 25%);
  z-index: 0;
}

.landing-step-circle {
  width: 64px;
  height: 64px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
  position: relative;
  z-index: 10;
  border: 2px solid transparent;
}

.landing-step-circle.border-primary {
  border: 2px solid var(--el-primary);
}

/* Admin Section */
.landing-admin-section {
  background: linear-gradient(135deg, #eff6ff, white);
  border: 1px solid #dbeafe;
  border-radius: 2.5rem;
  padding: 4rem 3rem;
  overflow: hidden;
  position: relative;
}

.landing-admin-image {
  background: white;
  padding: 0.75rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: rotate(1deg);
  transition: transform 0.5s ease;
}

.landing-admin-image:hover {
  transform: rotate(0deg);
}

.landing-admin-image > div {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.landing-admin-image > div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(19, 91, 236, 0.1);
  border-radius: 0.75rem;
}

/* Footer */
.landing-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  text-decoration: none;
}

.landing-social-icon:hover {
  background: var(--el-primary);
  color: white;
  transform: translateY(-2px);
}

.landing-footer-link {
  transition: color 0.3s ease;
}

.landing-footer-link:hover {
  color: var(--el-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .landing-phone-mockup {
    height: 500px;
  }

  .landing-phone-device {
    width: 240px;
    height: 500px;
  }

  .landing-content-card {
    width: 280px;
    right: -20px;
  }

  .landing-float-1,
  .landing-float-2 {
    display: none;
  }

  .landing-step-connector {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .landing-preview-scroll {
    justify-content: flex-start;
    padding-left: 1rem;
  }

  .landing-admin-section {
    padding: 2rem 1.5rem;
  }
}

/* ===================================
   SIMPLIFIED LANDING PAGE STYLES
   =================================== */

/* Logo */
.landing-logo {
  width: 40px;
  height: 40px;
  color: var(--el-primary);
}

@media (min-width: 768px) {
  .landing-logo {
    width: 48px;
    height: 48px;
  }
}

/* Background Effects */
.landing-gradient {
  background: linear-gradient(
    to bottom,
    rgba(239, 246, 255, 0.8),
    rgba(255, 255, 255, 1)
  );
}

.landing-grid-bg {
  background-image: radial-gradient(var(--el-primary) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  opacity: 0.04;
}

/* Portal Cards */
.landing-portal-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.landing-portal-card:hover {
  box-shadow: 0 20px 50px -10px rgba(19, 91, 236, 0.15);
  transform: translateY(-2px);
}

.landing-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.landing-portal-card:hover .landing-icon-box {
  transform: scale(1.05);
}

/* Phone Mockup - Simplified */
.landing-phone-device-simple {
  position: relative;
  width: 280px;
  height: 560px;
  background: #111827;
  border-radius: 3rem;
  border: 8px solid #111827;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.landing-phone-screen-simple {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 2.3rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.landing-phone-battery {
  position: absolute;
  top: 6px;
  right: 20px;
  z-index: 20;
  width: 16px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.landing-phone-battery::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
}

/* Subject Cards in Mockup */
.landing-subject-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-left: 4px solid;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mockup Scroll */
.landing-mockup-scroll {
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}

.landing-mockup-scroll::-webkit-scrollbar {
  width: 4px;
}

.landing-mockup-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.landing-mockup-scroll::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

/* Phone Navigation */
.landing-phone-nav {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 64px;
  background: white;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.landing-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.landing-nav-item.active {
  opacity: 1;
  color: var(--el-primary);
}

.landing-nav-item span:first-child {
  font-size: 1.5rem;
}

.landing-nav-item span:last-child {
  font-size: 0.625rem;
  font-weight: 500;
}

/* Responsive adjustments for simplified landing */
@media (max-width: 991px) {
  .landing-phone-device-simple {
    width: 240px;
    height: 480px;
  }

  .landing-portal-card {
    min-height: auto;
  }
}
