/* GluGlú Baby Spa - Premium CSS Style System */

:root {
  /* Harmonious Pastel & Bright Aqua Colors */
  --primary-color: #00b4d8;
  --primary-hover: #0077b6;
  --primary-light: #caf0f8;
  --primary-ultra-light: #f0fafd;
  --secondary-color: #ffb5a7;
  --secondary-hover: #fcd5ce;
  --text-dark: #2b2d42;
  --text-muted: #6c757d;
  --bg-soft-blue: #f3f9fc;
  --bg-soft-pink: #fff5f3;
  --white: #ffffff;
  
  /* Alerts */
  --color-success: #2ec4b6;
  --color-danger: #e63946;
  --color-warning: #ffb703;
  
  /* Fonts */
  --font-headings: 'Fredoka', cursive, sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  /* Shadow & Blur (Glassmorphism Tokens) */
  --shadow-sm: 0 4px 6px -1px rgba(0, 180, 216, 0.05), 0 2px 4px -1px rgba(0, 180, 216, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 180, 216, 0.08), 0 4px 6px -2px rgba(0, 180, 216, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 180, 216, 0.12), 0 10px 10px -5px rgba(0, 180, 216, 0.04);
  --shadow-premium: 0 15px 35px -5px rgba(0, 180, 216, 0.15), 0 0 15px rgba(255, 181, 167, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(0, 180, 216, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 50px;
}

/* 1. RESET & GENERAL STYLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--bg-soft-blue) 0%, #ffffff 50%, var(--bg-soft-pink) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
}

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

/* Background Animated Bubbles */
.bubble-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-bubble {
  position: absolute;
  bottom: -100px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, rgba(0, 180, 216, 0.15) 60%, rgba(0, 180, 216, 0.4) 100%);
  border-radius: 50%;
  box-shadow: inset -5px -5px 15px rgba(0, 180, 216, 0.1), 0 5px 10px rgba(0, 180, 216, 0.05);
  animation: floatUp 15s infinite linear;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-110vh) translateX(50px) scale(0.8) rotate(360deg);
    opacity: 0;
  }
}

/* 2. LAYOUT & SPA ROUTER */
.main-content {
  position: relative;
  z-index: 1;
  padding-top: 100px; /* Offset for floating header */
  min-height: calc(100vh - 100px);
}

.spa-view {
  display: none;
  animation: fadeInView 0.5s ease forwards;
}

.spa-view.active-view {
  display: block;
}

@keyframes fadeInView {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Helper utilities */
.text-center { text-align: center; }
.text-highlight { color: var(--primary-color); position: relative; }
.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--secondary-color);
  z-index: -1;
  opacity: 0.5;
  border-radius: 4px;
}
.hidden { display: none !important; }
.badge-premium {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  padding: 6px 14px;
  font-family: var(--font-headings);
  font-weight: 500;
  border-radius: var(--radius-round);
  font-size: 0.9rem;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0, 180, 216, 0.05);
}
.border-top { border-top: 1px solid rgba(0, 180, 216, 0.1); }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px !important; }

/* 3. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-round);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  gap: 8px;
  font-size: 1rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 5px 12px;
  font-size: 0.75rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(0, 180, 216, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -5px rgba(0, 180, 216, 0.5);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
}

.btn-whatsapp-nav {
  background-color: var(--primary-ultra-light);
  color: var(--primary-color);
  border: 1px solid rgba(0, 180, 216, 0.2);
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-whatsapp-nav:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.pulse {
  animation: pulsingBtn 2s infinite;
}

@keyframes pulsingBtn {
  0% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(0, 180, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
}

/* 4. HEADER & HEADER BRAND */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 180, 216, 0.03);
  display: flex;
  align-items: center;
}

.navbar-container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-svg {
  width: 45px;
  height: 45px;
  animation: logoBubble 4s infinite ease-in-out;
}

@keyframes logoBubble {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-subtext {
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-weight: 500;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-admin-icon {
  background-color: var(--primary-ultra-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.nav-admin-icon::after {
  display: none !important;
}

.nav-admin-icon:hover {
  background-color: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* 5. VIEW: HOME (HERO, VALUES, TESTIMONIALS, MAP) */
.hero-section {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto 60px auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 750;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 550px;
}

.hero-cta-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-blob-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 420px;
}

.visual-blob {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, #e0f2fe 100%);
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation: blobAnim 8s infinite ease-in-out;
  z-index: 1;
}

.blob-1 {
  background: var(--primary-light);
  opacity: 0.6;
  transform: scale(1.05) rotate(10deg);
}

.blob-2 {
  background: var(--secondary-hover);
  opacity: 0.4;
  transform: scale(1.1) rotate(-15deg);
  animation-duration: 12s;
}

@keyframes blobAnim {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  33% { border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%; }
  66% { border-radius: 50% 50% 30% 70% / 40% 60% 30% 70%; }
}

.hero-img {
  position: absolute;
  top: 6%;
  left: 6%;
  width: 88%;
  height: 88%;
  object-fit: cover;
  border-radius: 40% 60% 50% 50% / 50% 50% 50% 50%;
  animation: imgBlobAnim 10s infinite ease-in-out;
  z-index: 5;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--white);
}

@keyframes imgBlobAnim {
  0%, 100% { border-radius: 40% 60% 50% 50% / 50% 50% 50% 50%; }
  50% { border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%; }
}

/* Values Grid */
.section-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.3rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.grid-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card-value {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.card-value:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-light);
}

.value-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px auto;
}

.bg-blue-light { background-color: #e0f2fe; }
.bg-pink-light { background-color: #ffe4e6; }
.bg-green-light { background-color: #ecfdf5; }
.text-blue { color: var(--primary-color); }
.text-pink { color: #f43f5e; }
.text-green { color: #10b981; }

.value-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.value-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Quick Banner */
.home-services-banner {
  background: linear-gradient(rgba(0, 180, 216, 0.8), rgba(0, 119, 182, 0.85)), url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?w=1200') no-repeat center center/cover;
  padding: 100px 0;
  text-align: center;
  color: var(--white);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.banner-overlay {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

.banner-overlay h2 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 15px;
}

.banner-overlay p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* Testimonials */
.grid-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.card-testimonial {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 35px;
  border-radius: var(--radius-lg);
  position: relative;
}

.stars {
  color: #fbbf24;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 25px;
  font-size: 1rem;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--white);
  font-size: 1.1rem;
}

.user-name {
  font-size: 1rem;
  margin-bottom: 2px;
}

.user-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Map and Contact */
.grid-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.contact-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 35px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.contact-icon-wrapper {
  background-color: var(--primary-light);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-list li h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-list li p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-link {
  color: var(--primary-color);
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: underline;
}

.simulated-map {
  background: linear-gradient(135deg, #eef7f9 0%, #dbf0f3 100%);
  height: 350px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--white);
}

/* Grid of streets simulated in map */
.simulated-map::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(90deg, rgba(255,255,255,0.7) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.7) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

/* Simulated visual streets */
.simulated-map::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  height: 25px;
  background-color: var(--white);
  transform: rotate(-10deg);
  box-shadow: 0 0 10px rgba(0,0,0,0.03);
  z-index: 2;
}

.map-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 181, 167, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: mapPulse 2s infinite ease-out;
  z-index: 3;
}

@keyframes mapPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 10;
  color: var(--primary-color);
  font-size: 2.2rem;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.15));
  animation: bouncePin 2s infinite alternate;
}

@keyframes bouncePin {
  0% { transform: translate(-50%, -100%); }
  100% { transform: translate(-50%, -115%); }
}

.pin-tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-dark);
  color: var(--white);
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  font-family: var(--font-headings);
}

.pin-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--text-dark) transparent transparent transparent;
}

.map-labels {
  position: absolute;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-label {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: rgba(255,255,255,0.8);
  padding: 2px 6px;
  border-radius: 4px;
}

.label-street { top: 35%; left: 10%; transform: rotate(-10deg); }
.label-landmark { top: 15%; right: 15%; }

.map-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

/* 6. VIEW: SERVICES (SPA CARDS) */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  margin-top: 20px;
}

.card-service {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-service:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-light);
}

.service-img-wrapper {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.card-service:hover .service-img {
  transform: scale(1.1);
}

.service-badge-age {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-hover);
  padding: 5px 12px;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-sm);
}

.service-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.service-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 180, 216, 0.08);
  padding-top: 20px;
  margin-bottom: 20px;
}

.meta-duration {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-price {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* 7. VIEW: SHOP (E-COMMERCE CATALOG & DRAWER) */
.shop-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  flex-wrap: wrap;
  gap: 20px;
}

.main-page-title {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.btn-cart {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  border: 1px solid rgba(0, 180, 216, 0.15);
  position: relative;
}

.btn-cart:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.cart-badge-count {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -8px;
  box-shadow: var(--shadow-sm);
  animation: popBadge 0.3s ease;
}

@keyframes popBadge {
  0% { transform: scale(0); }
  80% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.shop-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  background-color: var(--white);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-round);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-sm);
}

.search-input-wrapper i {
  color: var(--primary-color);
}

.search-input-wrapper input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  width: 100%;
}

.filter-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-filter {
  background-color: var(--white);
  border: 1px solid var(--primary-light);
  color: var(--text-dark);
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-round);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-filter:hover, .btn-filter.active {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  border-color: var(--primary-color);
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.card-product {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-product:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-light);
}

.product-img-wrapper {
  height: 200px;
  overflow: hidden;
  background-color: var(--primary-ultra-light);
  position: relative;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-product:hover .product-img {
  transform: scale(1.08);
}

.product-badge-stock {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  font-family: var(--font-headings);
  font-weight: 600;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-sm);
}

.product-badge-out {
  background-color: var(--text-muted);
  color: var(--white);
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.product-description {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: 600;
}

.btn-add-cart-icon {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-add-cart-icon:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

/* Shopping Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--white);
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid rgba(0, 180, 216, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.35rem;
}

.btn-close-drawer {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-close-drawer:hover {
  color: var(--color-danger);
}

.cart-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.cart-empty-message {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

.cart-empty-message i {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 15px;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--primary-ultra-light);
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.btn-qty {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--primary-light);
  background-color: var(--white);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.qty-val {
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-remove-item {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 10px;
  transition: color 0.2s ease;
}

.btn-remove-item:hover {
  color: var(--color-danger);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid rgba(0, 180, 216, 0.1);
  background-color: var(--bg-soft-blue);
}

.cart-totals {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.cart-total-price {
  color: var(--primary-hover);
}

.cart-delivery-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-whatsapp-checkout {
  background-color: #25d366;
  color: var(--white);
  border: none;
  width: 100%;
  padding: 12px;
  font-family: var(--font-headings);
  font-size: 1rem;
  border-radius: var(--radius-round);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-checkout:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
}

/* 8. VIEW: BLOG (GRID & VIEWER) */
.grid-blog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  margin-top: 20px;
}

.card-blog {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-blog:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-light);
}

.blog-img-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-blog:hover .blog-img {
  transform: scale(1.05);
}

.blog-badge-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--white);
  color: var(--primary-hover);
  padding: 4px 10px;
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-round);
}

.blog-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-footer {
  border-top: 1px solid rgba(0, 180, 216, 0.08);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.blog-author {
  font-weight: 600;
  color: var(--text-dark);
}

.blog-read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Blog Article Viewer Modal */
.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.3s ease forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.blog-modal-content {
  background-color: var(--white);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideInModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideInModal {
  from { transform: translateY(40px); }
  to { transform: translateY(0); }
}

.btn-close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 100;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background-color: var(--color-danger);
  color: var(--white);
}

.blog-modal-body {
  padding: 40px;
}

.blog-modal-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 25px;
}

.blog-modal-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.blog-modal-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.blog-modal-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dark);
}

/* 9. VIEW: CHATBOT WIDGET */
.chatbot-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.chatbot-toggle-bubble {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 180, 216, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-toggle-bubble:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 30px rgba(0, 180, 216, 0.35);
}

.chatbot-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  padding: 4px;
}

.chatbot-avatar svg {
  width: 100%;
  height: 100%;
}

.bubble-notification {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  font-family: var(--font-headings);
  font-weight: 700;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.pulse-ring {
  animation: pulseRing 1.5s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(255, 181, 167, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 181, 167, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 181, 167, 0); }
}

.bubble-tooltip {
  position: absolute;
  right: 120%;
  background-color: var(--white);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: var(--radius-round);
  font-family: var(--font-headings);
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--primary-light);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.chatbot-toggle-bubble:hover .bubble-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Chat window */
.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  height: 520px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  animation: zoomInChat 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomInChat {
  from { transform: scale(0.85) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  padding: 16px 20px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-header-avatar {
  background-color: rgba(255,255,255,0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.chatbot-header-info h4 {
  color: var(--white);
  font-size: 0.95rem;
}

.chatbot-status {
  font-size: 0.7rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: 50%;
  display: inline-block;
}

.chatbot-close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.chatbot-close-btn:hover {
  opacity: 1;
}

.chatbot-messages {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  animation: bubblePop 0.25s ease forwards;
}

@keyframes bubblePop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.chat-bubble.bot {
  background-color: var(--white);
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 180, 216, 0.04);
}

.chat-bubble.user {
  background-color: var(--primary-color);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.15);
}

.chatbot-writing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
}

.chatbot-writing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: typingDot 1.2s infinite ease-in-out;
}

.chatbot-writing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-writing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.chatbot-quick-options {
  padding: 0 20px 15px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-chat-option {
  background-color: var(--white);
  border: 1px solid var(--primary-light);
  color: var(--primary-hover);
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: var(--radius-round);
  cursor: pointer;
  font-family: var(--font-headings);
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-chat-option:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.chatbot-input-panel {
  padding: 12px 20px;
  border-top: 1px solid rgba(0, 180, 216, 0.1);
  background-color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-input-panel input {
  flex-grow: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dark);
}

#chatbot-send-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.05rem;
  cursor: pointer;
}

#chatbot-send-btn:hover {
  color: var(--primary-hover);
}

/* 10. VIEW: ADMIN DASHBOARD (SIDEBAR, KPI, TABLE, CALENDAR) */
.admin-login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

.admin-login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: var(--glass-border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border-radius: var(--radius-lg);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  font-family: var(--font-headings);
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.login-form input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-light);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.login-form input:focus {
  border-color: var(--primary-color);
}

.alert {
  padding: 10px 15px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-danger {
  background-color: #ffe5e5;
  color: var(--color-danger);
  border: 1px solid #ffcccc;
}

.alert-success {
  background-color: #e6f9f3;
  color: var(--color-success);
  border: 1px solid #ccf2e6;
}

.btn-block {
  width: 100%;
}

/* Control Panel container */
.admin-dashboard-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  width: 95%;
  max-width: 1350px;
  margin: 0 auto 50px auto;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 650px;
}

.admin-sidebar {
  background-color: var(--primary-ultra-light);
  border-right: 1px solid rgba(0, 180, 216, 0.1);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 35px;
}

.admin-sidebar-header i {
  font-size: 2.2rem;
  color: var(--primary-color);
}

.admin-sidebar-header h3 {
  font-size: 1.15rem;
}

.admin-sidebar-header span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.admin-nav-link {
  background: none;
  border: none;
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.admin-nav-link:hover, .admin-nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary-hover);
}

.admin-sidebar-footer {
  margin-top: 30px;
}

.btn-logout {
  width: 100%;
  background: none;
  border: 1px solid var(--secondary-color);
  color: #e63946;
  font-size: 0.85rem;
}

.btn-logout:hover {
  background-color: #ffe5e5;
}

.admin-main-workarea {
  padding: 40px;
  overflow-y: auto;
  max-height: 80vh;
}

.admin-tab-content {
  display: none;
  animation: fadeInTab 0.3s ease forwards;
}

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

@keyframes fadeInTab {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab-header {
  margin-bottom: 30px;
}

.tab-header h2 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.tab-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* Metrics Cards */
.grid-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card-metric {
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
}

.card-metric.bg-blue { background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%); }
.card-metric.bg-pink { background: linear-gradient(135deg, #ffb5a7 0%, #fa9b8b 100%); }
.card-metric.bg-mint { background: linear-gradient(135deg, #2ec4b6 0%, #17a398 100%); }
.card-metric.bg-purple { background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%); }

.icon-metric {
  font-size: 2.2rem;
  opacity: 0.85;
}

.metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.metric-value {
  font-size: 1.6rem;
  margin-top: 4px;
}

/* Admin Table styles */
.dashboard-table-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 180, 216, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dashboard-table-card .card-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 180, 216, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-table-card .card-header h3 {
  font-size: 1.15rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.admin-table th, .admin-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.admin-table th {
  background-color: var(--primary-ultra-light);
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--text-dark);
}

.admin-table tr:hover {
  background-color: #f8fafc;
}

.baby-cell {
  font-weight: 600;
  color: var(--text-dark);
}

.baby-cell span {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-round);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.Confirmada { background-color: #e6f9f3; color: var(--color-success); }
.status-badge.Pendiente { background-color: #fef3c7; color: #d97706; }
.status-badge.Cancelada { background-color: #ffe5e5; color: var(--color-danger); }

.table-actions {
  display: flex;
  gap: 8px;
}

.btn-tbl-action {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.btn-tbl-confirm { background-color: #e6f9f3; color: var(--color-success); }
.btn-tbl-confirm:hover { background-color: var(--color-success); color: var(--white); }
.btn-tbl-edit { background-color: var(--primary-ultra-light); color: var(--primary-color); }
.btn-tbl-edit:hover { background-color: var(--primary-color); color: var(--white); }
.btn-tbl-delete { background-color: #ffe5e5; color: var(--color-danger); }
.btn-tbl-delete:hover { background-color: var(--color-danger); color: var(--white); }

.table-thumb {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--primary-ultra-light);
}

/* 11. CALENDAR VIEW SYSTEM */
.calendar-workspace {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  margin-top: 20px;
}

.calendar-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 25px;
  border: 1px solid rgba(0, 180, 216, 0.08);
  box-shadow: var(--shadow-sm);
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.btn-cal-nav {
  background-color: var(--primary-ultra-light);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

.calendar-month-title {
  font-size: 1.25rem;
}

.calendar-weekdays-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  min-height: 250px;
}

.calendar-day-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.calendar-day-cell:hover {
  background-color: var(--primary-ultra-light);
}

.calendar-day-cell.prev-next-month {
  color: #cbd5e1;
  background-color: transparent;
  cursor: default;
}

.calendar-day-cell.today-cell {
  background-color: var(--primary-ultra-light);
  border: 1.5px solid var(--primary-light);
  color: var(--primary-hover);
}

.calendar-day-cell.selected-cell {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
}

.day-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  align-self: center;
  margin-bottom: 4px;
}

.calendar-day-cell.selected-cell .day-badge-dot {
  background-color: var(--white);
}

/* Booking Details Sidebar */
.booking-details-sidebar {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 180, 216, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-details-header {
  padding: 20px;
  background-color: var(--primary-ultra-light);
  border-bottom: 1px solid rgba(0, 180, 216, 0.08);
}

.sidebar-details-header h3 {
  font-size: 1.1rem;
}

.sidebar-details-content {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.no-bookings-placeholder {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
  font-size: 0.85rem;
}

.sidebar-booking-card {
  background-color: var(--bg-soft-blue);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 15px;
  position: relative;
}

.sidebar-booking-card.status-Pendiente {
  border-left-color: var(--color-warning);
  background-color: #fffbeb;
}

.sidebar-booking-card.status-Cancelada {
  border-left-color: var(--color-danger);
  background-color: #fef2f2;
}

.sb-time {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-hover);
  margin-bottom: 4px;
}

.sb-baby {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.sb-service {
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.sb-parent {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sb-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px dashed rgba(0,0,0,0.05);
  padding-top: 10px;
}

/* Modals inside tab */
.admin-booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.admin-modal-card h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--primary-color);
}

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

.col-6 { width: 50%; }
.col-12 { width: 100%; }

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-light);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

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

.modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}

/* Settings Form Specifics */
.settings-form-container {
  max-width: 650px;
}

.settings-section {
  padding: 20px 0;
}

.settings-section h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 12. UNIVERSAL FOOTER */
.universal-footer {
  background-color: var(--primary-ultra-light);
  border-top: 1px solid rgba(0, 180, 216, 0.1);
  padding: 60px 0 20px 0;
  position: relative;
  z-index: 1;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  background-color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.footer-socials a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footer-links-grid h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-links-grid ul {
  list-style: none;
}

.footer-links-grid ul li {
  margin-bottom: 10px;
}

.footer-links-grid ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links-grid ul li a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

.footer-links-grid p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(0, 180, 216, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-admin-login-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-admin-login-link:hover {
  color: var(--primary-color);
}

/* 13. RESPONSIVE MEDIA QUERIES */
@media (max-width: 991px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  
  .grid-contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .admin-dashboard-container {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  
  .admin-sidebar-header {
    margin-bottom: 0;
  }
  
  .admin-sidebar-nav {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    padding: 15px 0 0 0;
    gap: 5px;
  }
  
  .admin-nav-link {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  
  .calendar-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 85px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 85px);
    background-color: var(--white);
    flex-direction: column;
    padding: 40px 20px;
    gap: 30px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-whatsapp-text {
    display: none;
  }
  
  .btn-whatsapp-nav {
    padding: 8px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-links-grid {
    grid-template-columns: 1fr;
  }
  
  /* Highly Premium Mobile Viewport Optimization for Chatbot */
  .chatbot-widget {
    bottom: 20px;
    right: 20px;
  }

  .chatbot-window {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 90px;
    width: calc(100vw - 20px);
    height: calc(100vh - 110px);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2100;
  }
}

@media (max-width: 576px) {
  .chatbot-widget {
    bottom: 15px;
    right: 15px;
  }

  .chatbot-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    z-index: 2200;
  }
  
  .chatbot-messages {
    padding: 15px;
    flex-grow: 1;
  }
}
