@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap");

/* Performance Optimizations */
html {
  font-display: swap; /* Better font loading */
  scroll-behavior: smooth; /* Smooth scrolling */
}

*, *::before, *::after {
  box-sizing: border-box; /* Better layout calculations */
}

/* CSS Custom Properties for Performance */
:root {
  --primary-color: #6b8e8a; /* Muted Teal */
  --secondary-color: #f4f1ea; /* Soft Beige */
  --text-color: #333333;
  --accent-color: #c89f9c; /* Dusty Rose */
  --white-color: #ffffff;
  
  /* Performance-friendly shadows and transitions */
  --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
}

body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
  /* Performance optimizations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

header {
  background: var(--white-color);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Performance: Use transform3d to create stacking context */
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Navigation base styling */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 5%;
  min-height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Mobile Menu Toggle Button - Much wider for full X visibility */
.mobile-menu-toggle {
  display: none; /* Hidden by default */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
  gap: 4px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-image {
  height: 75px;
  width: auto;
  max-width: 350px;
  object-fit: contain;
  transition: all 0.3s ease;
  margin: -12px 0;
}

.logo:hover .logo-image {
  transform: scale(1.05);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  transition: color 0.3s ease;
}

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

/* Mobile Menu CSS */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex; /* Show on mobile */
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    display: flex !important;
  }
  
  .nav-links li {
    width: 90%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
  }
}

/* Desktop: Show nav links, hide mobile toggle */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Mobile: Show mobile toggle, handle nav links with JavaScript */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white-color);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links li {
    width: 90%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .nav-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
  }
}

.hamburger-line {
  width: 30px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

/* Dropdown Menu Styling */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white-color);
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.dropdown-menu i {
  width: 16px;
  text-align: center;
  color: var(--accent-color);
}

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("https://images.unsplash.com/photo-1474418397713-7ede21d49118?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  color: var(--white-color);
  text-align: center;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.hero-feature {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-feature:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.hero-feature i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: block;
}

.hero-feature h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: var(--white-color);
  font-weight: 600;
}

.hero-feature p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* Feature badges styling for better alignment */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white-color);
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
}

.feature-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-badge i {
  font-size: 1rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.cta-button {
  background-color: var(--accent-color);
  color: var(--white-color);
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #b38b88;
}

.section {
  padding: 60px 0;
  text-align: center;
}

.section-intro {
  background-color: var(--white-color);
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section p.subtitle {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
}

.two-columns {
  display: flex;
  gap: 40px;
  text-align: left;
  align-items: center;
}

.two-columns div {
  flex: 1;
}

.two-columns img {
  max-width: 100%;
  border-radius: 10px;
}

.meditation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.meditation-card {
  background: var(--white-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.meditation-card h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent-color);
}

.featured-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: var(--white-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 1rem 0;
}

.pricing-card .price-note {
  font-size: 1rem;
  font-weight: 300;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
  flex-grow: 1;
}

.pricing-card li {
  margin-bottom: 1rem;
}

.pricing-card .cta-button {
  margin-top: auto;
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.other-offering {
  background-color: var(--white-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 60px auto 0 auto;
  text-align: center;
}

.other-offering h3 {
  color: var(--accent-color);
}

footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  text-align: center;
  padding: 40px 20px;
}

footer p {
  margin: 0;
}

.footer-links {
  margin-top: 1rem;
}
.footer-links a {
  color: var(--white-color);
  text-decoration: none;
  margin: 0 10px;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* Login & Register Pages */
.login-container {
  max-width: 450px;
  margin: 80px auto;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.login-container h1 {
  color: var(--primary-color);
}
.social-login a {
  display: block;
  margin: 10px 0;
  padding: 15px;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}
.social-login a i {
  margin-right: 10px;
}

.google-btn {
  background-color: #db4437;
}
.facebook-btn {
  background-color: #4267b2;
}
.form-group {
  text-align: left;
  margin-bottom: 15px;
}
.form-group label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}
.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.welcome-highlight {
  background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-color);
}

@media (max-width: 768px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hide and style nav links for mobile */
  .nav-links {
    display: flex; /* Keep flex for mobile */
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white-color);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links li {
    width: 90%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .nav-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
  }
  
  /* Style CTA button in mobile menu */
  .nav-links .cta-button {
    background-color: var(--accent-color) !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    margin-top: 1rem;
  }
  
  /* Mobile dropdown styling */
  .dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: var(--secondary-color);
    border-radius: 8px;
    margin-top: 0.5rem;
    width: 100%;
  }
  
  .dropdown .dropdown-toggle {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 1rem;
  }
  
  nav {
    padding: 0.75rem 5%;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-image {
    height: 45px;
    max-width: 200px;
    margin: 0;
  }
  
  /* Hero section mobile optimizations */
  .hero {
    padding: 60px 20px;
    min-height: 50vh;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem auto;
    padding: 0 0.5rem;
  }
  
  .feature-badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
  }
  
  .hero-feature {
    padding: 1.25rem;
  }
  
  .hero-feature i {
    font-size: 2rem;
  }
  
  /* General mobile optimizations */
  .two-columns {
    flex-direction: column;
  }

  .category-header h3 {
    font-size: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 15px;
  }
} /* Category sections */
.category-section {
  margin-bottom: 60px;
}

.category-header {
  text-align: center;
  margin-bottom: 40px;
}

.category-header h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 10px;
}

.category-divider {
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 0 auto;
}

/* Enhanced meditation cards */
.meditation-card {
  background: var(--white-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meditation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.training-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}

.premium-badge {
  background: linear-gradient(45deg, var(--accent-color), #d4a6a3);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
  display: inline-block;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-buttons .cta-button {
  margin: 0;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.action-buttons .cta-button.secondary {
  padding: 6px 10px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Simple responsive solution */
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .two-columns {
    flex-direction: column;
  }

  .category-header h3 {
    font-size: 1.5rem;
  }
}

/* Authentication Pages Styling */
.auth-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.auth-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(107, 142, 138, 0.8),
    rgba(200, 159, 156, 0.6)
  );
  z-index: 2;
}

.auth-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}

.auth-welcome {
  text-align: center;
  padding: 2rem;
}

.auth-form-container {
  display: flex;
  justify-content: center;
}

.auth-form-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 450px;
}

.auth-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form-header h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
}

.benefit-item i {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.auth-form-group {
  margin-bottom: 1.5rem;
}

.auth-form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
}

.auth-form-group label i {
  color: var(--primary-color);
  width: 16px;
}

.auth-form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.auth-form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.password-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #666;
}

.password-hint i {
  color: var(--accent-color);
}

.auth-submit-btn {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(107, 142, 138, 0.3);
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e1e5e9;
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-error {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.auth-error p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-error i {
  color: #dc3545;
}

/* reCAPTCHA Styling */
.g-recaptcha {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.auth-form-group .g-recaptcha {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Responsive Authentication */
@media (max-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .auth-welcome {
    order: 2;
  }

  .auth-form-container {
    order: 1;
  }

  .auth-content {
    padding: 1rem;
  }

  .auth-form-card {
    padding: 2rem;
  }
}

/* Admin Dashboard Styling */
.admin-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 2rem 0;
}

.admin-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Newsletter Tab Specific Styling */
#newsletter-content {
  max-width: none;
}

#newsletter-content .admin-container {
  max-width: 1800px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.admin-welcome h1 {
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
}

.admin-welcome p {
  color: #666;
  margin: 0;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
}

.admin-tabs {
  display: flex;
  background: white;
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.admin-tab:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.admin-tab.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(107, 142, 138, 0.3);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
  width: 100%;
}

/* Newsletter Tab Content Specific Styling */
#newsletter-content.admin-tab-content.active {
  padding: 0;
  margin: 0;
}

/* Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-content h3 {
  font-size: 2rem;
  margin: 0;
  color: var(--primary-color);
}

.stat-content p {
  margin: 0.25rem 0;
  font-weight: 600;
  color: var(--text-color);
}

.stat-content small {
  color: #666;
  font-size: 0.8rem;
}

/* Section Headers */
.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-section-header h2 {
  color: var(--primary-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-count {
  color: #666;
  font-size: 0.9rem;
}

/* Buttons */
.admin-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.admin-btn.primary {
  background: var(--primary-color);
  color: white;
}

.admin-btn.primary:hover {
  background: #5a7a76;
  transform: translateY(-1px);
}

.admin-btn.secondary {
  background: #6c757d;
  color: white;
}

.admin-btn.secondary:hover {
  background: #545b62;
}

.admin-btn.danger {
  background: #dc3545;
  color: white;
}

.admin-btn.danger:hover {
  background: #c82333;
}

.admin-btn.info {
  background: #17a2b8;
  color: white;
}

.admin-btn.info:hover {
  background: #138496;
}

.admin-btn.disabled {
  background: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

/* Tables */
.admin-table-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.admin-table th {
  background: var(--secondary-color);
  font-weight: 600;
  color: var(--primary-color);
}

.admin-table tbody tr:hover {
  background: #f8f9fa;
}

.status-badge,
.price-badge,
.type-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.completed {
  background: #d4edda;
  color: #155724;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.price-badge.free {
  background: #d1ecf1;
  color: #0c5460;
}

.price-badge.paid {
  background: #d4edda;
  color: #155724;
}

.type-badge.premium {
  background: #f8d7da;
  color: #721c24;
}

.type-badge.regular {
  background: #e2e3e5;
  color: #383d41;
}

.role-select {
  padding: 0.25rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.role-select:disabled {
  background: #f8f9fa;
  color: #6c757d;
}

/* Modal */
.admin-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.admin-modal-content {
  background-color: white;
  margin: 5% auto;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.admin-modal-header h3 {
  margin: 0;
  color: var(--primary-color);
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

.admin-modal-close:hover {
  color: #333;
}

.admin-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid #e9ecef;
}

/* Forms */
.admin-form {
  padding: 1.5rem;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-form-group {
  margin-bottom: 1rem;
}

.admin-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal;
}

.admin-checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Notifications */
.admin-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.admin-notification.show {
  transform: translateX(0);
}

.admin-notification.success {
  background: #28a745;
}

.admin-notification.error {
  background: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-container {
    padding: 0 1rem;
  }

  .admin-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .admin-table-container {
    overflow-x: auto;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .admin-modal-content {
    width: 95%;
    margin: 2% auto;
  }
}

/* Meditation Design Studio Styles */

/* Design Header */
.design-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border-radius: 15px;
}

.design-title h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.design-title p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.design-actions {
  display: flex;
  gap: 1rem;
}

/* Design Workspace */
.design-workspace {
  display: flex;
  gap: 2rem;
  min-height: 80vh;
}

.design-sidebar {
  width: 350px;
  flex-shrink: 0;
}

.design-main {
  flex: 1;
  min-width: 0;
}

/* Design Panels */
.design-panel {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.design-panel h3 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Elements */
.design-form .form-group {
  margin-bottom: 1rem;
}

.design-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.design-form input,
.design-form select,
.design-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.design-form input:focus,
.design-form select:focus,
.design-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(107, 142, 138, 0.1);
}

/* AI Controls */
.ai-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ai-btn {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.ai-btn.generate {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.ai-btn.improve {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
}

.ai-btn.variations {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
  color: white;
}

.ai-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ai-settings {
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.ai-settings label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.ai-settings select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Audio Controls */
.audio-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audio-btn {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.audio-btn.play {
  background: var(--primary-color);
  color: white;
}

.audio-btn.stop {
  background: #dc3545;
  color: white;
}

.audio-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.audio-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.voice-settings {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.voice-settings label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.voice-settings input[type="range"] {
  width: 100%;
}

#speed-value {
  font-weight: 600;
  color: var(--primary-color);
}

/* Export Controls */
.export-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.export-btn {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.export-btn.script {
  background: #6c757d;
  color: white;
}

.export-btn.audio {
  background: var(--accent-color);
  color: white;
}

.export-btn.save {
  background: var(--primary-color);
  color: white;
}

.export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Timeline Editor */
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline-header h3 {
  margin: 0;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timeline-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.timeline-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* Timeline Container */
.timeline-container {
  background: #f8f9fa;
  border-radius: 12px;
  min-height: 400px;
  padding: 1.5rem;
  position: relative;
}

.timeline-placeholder {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.timeline-placeholder i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.timeline-placeholder h4 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
}

.timeline-placeholder p {
  margin: 0;
  line-height: 1.6;
}

/* Timeline Blocks */
.timeline-block {
  background: white;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.timeline-block[data-type="intro"] {
  border-left: 4px solid #28a745;
}

.timeline-block[data-type="breathing"] {
  border-left: 4px solid #17a2b8;
}

.timeline-block[data-type="body-scan"] {
  border-left: 4px solid #ffc107;
}

.timeline-block[data-type="visualization"] {
  border-left: 4px solid #6f42c1;
}

.timeline-block[data-type="affirmation"] {
  border-left: 4px solid #e83e8c;
}

.timeline-block[data-type="closure"] {
  border-left: 4px solid #fd7e14;
}

.timeline-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.block-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.block-number {
  background: var(--primary-color);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.block-title {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  min-width: 200px;
  background: transparent;
  border: none;
  outline: none;
}

.block-title:focus {
  background: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.block-type {
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.block-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.duration-input {
  width: 60px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

.duration-label {
  font-size: 0.9rem;
  color: #666;
}

.block-btn {
  padding: 0.5rem;
  border: none;
  background: #f8f9fa;
  color: var(--primary-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
}

.block-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.block-btn.delete:hover {
  background: #dc3545;
  color: white;
}

/* Timeline Block Content */
.timeline-block-content {
  padding: 1.5rem;
}

.block-text {
  width: 100%;
  min-height: 100px;
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  margin-bottom: 1rem;
}

.block-text:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(107, 142, 138, 0.1);
}

.block-ai-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ai-action-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ai-action-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* Timeline Timestamp */
.timeline-timestamp {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Progress Indicator */
.design-progress {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.progress-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-color);
}

.progress-separator {
  color: #666;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  border-radius: 4px;
}

/* Saved Designs */
.saved-designs {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.saved-designs h3 {
  margin: 0 0 2rem 0;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.designs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.design-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.design-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.design-preview {
  text-align: center;
  margin-bottom: 1rem;
}

.design-preview i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.design-info h4 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
}

.design-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.design-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.design-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.design-action-btn {
  padding: 0.5rem;
  border: none;
  background: white;
  color: var(--primary-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-action-btn.edit:hover {
  background: var(--primary-color);
  color: white;
}

.design-action-btn.duplicate:hover {
  background: var(--accent-color);
  color: white;
}

.design-action-btn.delete:hover {
  background: #dc3545;
  color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .design-workspace {
    flex-direction: column;
  }

  .design-sidebar {
    width: 100%;
  }

  .design-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .timeline-controls {
    justify-content: center;
  }

  .timeline-btn {
    flex: 1;
    min-width: 0;
  }

  .block-controls {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .designs-grid {
    grid-template-columns: 1fr;
  }

  .ai-controls,
  .audio-controls,
  .export-controls {
    gap: 0.5rem;
  }
}

/* AI Loading Spinner */
.ai-spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.ai-spinner-container {
  background: var(--white-color);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  animation: fadeInScale 0.3s ease-out;
}

.ai-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--secondary-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

.ai-spinner-text {
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.ai-spinner-subtext {
  color: var(--primary-color);
  font-size: 0.9rem;
  opacity: 0.8;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse animation for enhanced visual feedback */
.ai-spinner-container::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 25px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  opacity: 0.1;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.2;
  }
}

/* Status badges for training table */
.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
  min-width: 80px;
  text-align: center;
}

.status-badge.status-dev {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-badge.status-test {
  background: #cce5ff;
  color: #004085;
  border: 1px solid #74c0fc;
}

.status-badge.status-ready {
  background: #d4edda;
  color: #155724;
  border: 1px solid #51cf66;
}

/* Blog Section Styling */
.blog-section {
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-section h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 15px;
}

/* Personal Story Section */
.personal-story-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
}

.personal-story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.story-text {
  padding: 2rem;
}

.story-text h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.story-intro {
  margin-bottom: 2rem;
}

.greeting {
  font-size: 1.3rem;
  color: var(--text-color);
  margin: 0;
  font-weight: 500;
}

.greeting strong {
  color: var(--primary-color);
  font-weight: 700;
}

.story-body {
  margin-bottom: 2.5rem;
}

.story-body p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.story-challenge {
  font-style: italic;
  color: #666;
  border-left: 4px solid var(--accent-color);
  padding-left: 1.5rem;
  margin-left: 0;
}

.story-commitment {
  font-size: 1.2rem !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

.story-approach {
  background: rgba(107, 142, 138, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.story-sharing {
  font-weight: 500;
}

.story-cta {
  margin-top: 2rem;
}

.story-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  text-align: center;
  max-width: 400px;
}

.story-photo {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-photo:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

.image-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  line-height: 1.4;
}

.authority-quote {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #6b8e8a 0%, #4a6763 50%, #3d5450 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(107, 142, 138, 0.4);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.authority-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c89f9c, #e6b5b2, #c89f9c);
}

.authority-quote p {
  color: white;
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0.5rem 0;
  text-align: center;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.authority-quote p:first-child {
  margin-top: 0;
  font-style: italic;
  opacity: 0.95;
}

.authority-quote p:last-child {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.authority-quote strong {
  font-weight: 700;
  color: #f0c6c3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
}

/* Responsive Personal Story */
@media (max-width: 968px) {
  .personal-story-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .story-text {
    padding: 1rem;
  }
  
  .story-text h2 {
    font-size: 2rem;
  }
  
  .story-approach {
    text-align: left;
  }
  
  .story-challenge {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .personal-story-section {
    padding: 60px 0;
  }
  
  .story-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .greeting {
    font-size: 1.2rem;
  }
  
  .story-body p {
    font-size: 1rem;
  }
  
  .image-container {
    max-width: 320px;
  }
  
  .authority-quote {
    margin-top: 1.5rem;
    padding: 1.25rem;
  }
  
  .authority-quote p {
    font-size: 1rem;
  }
  
  .authority-quote p:last-child {
    font-size: 1.1rem;
  }
}

.blog-section > p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.blog-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.blog-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.blog-date {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.blog-card h4 {
  color: #333;
  font-size: 1.3rem;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.blog-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Responsive blog cards */
/* Newsletter Management Styles */
.newsletter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.newsletter-title h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.newsletter-title p {
  color: #666;
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
}

.newsletter-actions {
  display: flex;
  gap: 1rem;
}

.newsletter-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  background: rgba(107, 142, 138, 0.1);
  padding: 1rem;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

.newsletter-sections {
  display: grid;
  gap: 2rem;
}

.newsletter-section {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.newsletter-section h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--secondary-color);
}

.subscriber-actions {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--secondary-color);
  border-radius: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.form-row .form-input {
  min-width: 0;
}

.subscribers-table-container {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin: 0;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
}

.admin-table th {
  background: var(--secondary-color);
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tbody tr {
  transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
  background: rgba(107, 142, 138, 0.02);
}

.admin-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.admin-table tbody tr:nth-child(even):hover {
  background: rgba(107, 142, 138, 0.02);
}

.status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge.unsubscribed {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.newsletter-form {
  display: grid;
  gap: 1.5rem;
}

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

.form-group label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  padding: 0.8rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(107, 142, 138, 0.1);
}

.form-textarea {
  resize: vertical;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 120px;
}

.newsletter-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.admin-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.admin-btn.primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8bb5b1 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(107, 142, 138, 0.2);
}

.admin-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(107, 142, 138, 0.3);
}

.admin-btn.secondary {
  background: var(--secondary-color);
  color: var(--text-color);
  border: 1px solid #d0d7de;
}

.admin-btn.secondary:hover {
  background: #e8e5de;
  border-color: #bcc5ce;
}

.admin-btn.danger {
  background: #dc3545;
  color: white;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.admin-btn.danger:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.admin-btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

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

/* Two column layout for larger newsletter sections */
@media (min-width: 1200px) {
  .newsletter-sections {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .newsletter-section:first-child {
    grid-column: 1 / -1;
  }
}

/* Responsive Newsletter Styles */
@media (max-width: 1024px) {
  .newsletter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .newsletter-title h2 {
    font-size: 1.75rem;
  }

  .newsletter-stats {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .newsletter-stats {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .newsletter-form-actions {
    flex-direction: column;
  }

  .admin-btn {
    justify-content: center;
  }

  .newsletter-section {
    padding: 1.5rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .subscribers-table-container {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .blog-preview {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-section {
    padding: 30px 20px;
  }

  .blog-section h3 {
    font-size: 1.8rem;
  }
}
