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

/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  /* Brand Colors */
  --google-blue: #4285F4;
  --google-red: #EA4335;
  --google-yellow: #FBBC05;
  --google-green: #34A853;
  
  --bg-color: #FFFFFF;
  --text-dark: #202124;
  --text-medium: #5F6368;
  --text-light: #F1F3F4;
  
  /* Footer Colors */
  --footer-bg: #2C2D30;
  --footer-bottom: #000000;
  --footer-text: #E8EAED;
  --footer-link: #8AB4F8;

  /* Typography */
  --font-family-title: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-in-out;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 85px;

  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-family-body);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Typography Rules
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-title);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-medium);
}

a {
  color: var(--google-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Section 1: Sticky Header
   ========================================================================== */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid #E8EAED;
}

.logo-svg {
  height: 32px;
  width: auto;
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
}

/* Navigation Links - Far Right */
.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
  margin-left: auto; /* Push navigation menu to the far right */
}

.nav-link {
  font-family: var(--font-family-title);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-medium);
  padding: 8px 12px;
  border-radius: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--google-blue);
  background-color: rgba(66, 133, 244, 0.05);
  text-decoration: none;
}

/* ==========================================================================
   Section 2: Hero Slider
   ========================================================================== */
.slider-container {
  position: relative;
  width: 100%;
  height: 600px; /* Force height to 600px */
  margin: 0 auto; /* No gap between header and slider */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out; /* Light fade transition */
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  padding: 40px 5%;
  color: #FFFFFF;
}

.slide-title {
  font-family: var(--font-family-title);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-desc {
  font-size: 1.1rem;
  color: #F1F3F4;
  max-width: 600px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 10;
  transition: var(--transition-smooth);
}

.slider-arrow:hover {
  background-color: #FFFFFF;
  scale: 1.08;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-dark);
}

.arrow-left {
  left: 20px;
}

.arrow-right {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background-color: #FFFFFF;
  width: 24px;
  border-radius: 5px;
}

/* ==========================================================================
   Section 3 & 6: Spacers
   ========================================================================== */
.spacer-30 {
  height: 30px;
  width: 100%;
}

/* ==========================================================================
   Section 4, 7, 9: Typography Layouts
   ========================================================================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.heading-primary {
  font-family: var(--font-family-title);
  font-size: 2.75rem;
  font-weight: 800;
  text-align: center;
  margin: 20px 0;
  background: linear-gradient(135deg, var(--google-blue), #8A3FFC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.heading-secondary {
  font-family: var(--font-family-title);
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin: 30px 0;
  color: var(--text-dark);
}

.heading-tertiary {
  font-family: var(--font-family-title);
  font-size: 1.85rem;
  font-weight: 600;
  text-align: center;
  margin: 30px 0;
  color: var(--text-dark);
}

/* ==========================================================================
   Section 5: Feature Split Section
   ========================================================================== */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 20px;
}

.feature-image-container {
  width: 100%;
  aspect-ratio: 800 / 600; /* Strict aspect ratio */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.feature-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--google-blue);
  background-color: rgba(66, 133, 244, 0.1);
  padding: 6px 12px;
  border-radius: 50px;
}

.feature-title {
  font-size: 1.75rem;
  color: var(--text-dark);
}

.feature-desc {
  font-size: 1.05rem;
  line-height: 1.7;
}

.btn-primary {
  align-self: flex-start;
  font-family: var(--font-family-title);
  font-weight: 600;
  background-color: var(--google-blue);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(66, 133, 244, 0.2);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: #357ae8;
  box-shadow: 0 6px 14px rgba(66, 133, 244, 0.3);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ==========================================================================
   Section 8: 5-Column Image Gallery
   ========================================================================== */
.gallery-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card:hover img {
  scale: 1.08;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-label {
  color: #FFFFFF;
  font-family: var(--font-family-title);
  font-size: 0.95rem;
  font-weight: 600;
}

.gallery-sublabel {
  color: var(--text-light);
  font-size: 0.75rem;
}

/* ==========================================================================
   Section 10: 3-Column Secondary Gallery
   ========================================================================== */
.gallery-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.secondary-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 2;
  box-shadow: 0 0 15px rgba(66, 133, 244, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.secondary-card:hover {
  box-shadow: 0 0 25px rgba(66, 133, 244, 0.4);
  transform: translateY(-5px);
}

.secondary-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secondary-card:hover img {
  scale: 1.05;
}

/* AI Laser Scan Line */
.secondary-card::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #8AB4F8;
  box-shadow: 0 0 15px 5px rgba(138, 180, 248, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.secondary-card:hover::after {
  opacity: 1;
  animation: laserScan 1.5s infinite linear;
}

@keyframes laserScan {
  0% { top: -10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

.secondary-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.secondary-card:hover .secondary-overlay {
  opacity: 1;
}

.secondary-title {
  color: #FFFFFF;
  font-family: var(--font-family-title);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.secondary-desc {
  color: #E8EAED;
  font-size: 0.85rem;
}

/* ==========================================================================
   Section 11: Main Footer
   ========================================================================== */
.footer-main {
  background-color: var(--footer-bg);
  padding: 60px 5% 40px 5%;
  color: var(--footer-text);
  margin-top: auto;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.5fr;
  gap: 40px;
}

.footer-brand h4 {
  color: #FFFFFF;
  font-size: 1.35rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  color: #BDC1C6;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-address p,
.footer-address a {
  color: lightgrey !important;
}

.footer-links h5 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #BDC1C6;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--footer-link);
  text-decoration: none;
  padding-left: 4px;
}

.footer-newsletter h5 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.newsletter-input {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 10px 14px;
  color: #FFFFFF;
  font-family: var(--font-family-body);
  font-size: 0.9rem;
  flex-grow: 1;
  outline: none;
  transition: var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--google-blue);
  background-color: rgba(255, 255, 255, 0.12);
}

.newsletter-btn {
  background-color: var(--google-blue);
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 0 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  background-color: #357ae8;
}

/* ==========================================================================
   Section 12: Bottom Footer Bar
   ========================================================================== */
.footer-bottom {
  background-color: var(--footer-bottom);
  color: #FFFFFF;
  text-align: center;
  padding: 20px 20px;
  font-size: 0.85rem;
  font-family: var(--font-family-body);
  border-top: 1px solid #202124;
}

.footer-bottom p {
  color: #9AA0A6;
  margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet Layout (up to 992px) */
@media (max-width: 992px) {
  .slider-container {
    border-radius: 0;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .heading-primary {
    font-size: 2.25rem;
  }
  
  .feature-split {
    gap: 30px;
  }
  
  .gallery-5col {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Mobile Layout (up to 768px) */
@media (max-width: 768px) {
  .sticky-header {
    padding: 0 16px;
    height: 60px;
  }
  
  .mobile-menu-btn {
    display: block;
    margin-left: auto;
  }
  
  .nav-menu {
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 999;
  }

  .nav-menu.mobile-active {
    display: flex;
  }
  
  .slider-container {
    height: 500px; /* slightly shorter height on tablets/mobile for better UX */
  }
  
  .slider-arrow {
    width: 38px;
    height: 38px;
  }
  
  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }
  
  .slide-title {
    font-size: 1.5rem;
  }
  
  .slide-desc {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .feature-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-text {
    padding: 0;
  }
  
  .gallery-5col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-3col {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Very Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .gallery-5col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Section: Ticker Section
   ========================================================================== */
.ticker-section {
  display: flex;
  align-items: center;
  background-color: #87CEEB; /* Sky blue */
  height: 44px;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-family: var(--font-family-title);
  box-shadow: inset 0 -2px 5px rgba(0,0,0,0.05), inset 0 2px 5px rgba(0,0,0,0.05);
}

.ticker-label {
  background-color: #1A73E8; /* Contrasting blue label background */
  color: #FFFFFF;
  font-weight: 700;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  letter-spacing: 1.2px;
  z-index: 10;
  box-shadow: 3px 0 6px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.ticker-wrapper {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  font-size: 0.95rem;
  color: #202124; /* Google standard dark grey for legibility against sky blue */
  font-weight: 500;
  animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Pause ticker scrolling on hover */
.ticker-wrapper:hover .ticker-content {
  animation-play-state: paused;
  cursor: default;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: var(--transition-smooth);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  background-color: #20ba56;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   Gallery 6-Photo & Lightbox Styles
   ========================================================================== */
.gallery-6photo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.gallery-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3; /* 400x300 aspect ratio */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: block;
}

.gallery-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-photo-card:hover img {
  scale: 1.05;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  border-radius: 12px;
}

.gallery-photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-label {
  color: #FFFFFF;
  font-family: var(--font-family-title);
  font-size: 1.25rem;
  font-weight: 600;
  border: 2px solid #FFFFFF;
  padding: 8px 20px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.gallery-photo-card:hover .photo-label {
  background-color: #FFFFFF;
  color: var(--text-dark);
}

/* Lightbox Overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: none; /* Flex when active */
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10001;
}

.lightbox-close:hover {
  color: var(--google-red);
  transform: scale(1.1);
}

.lightbox-caption {
  color: #FFFFFF;
  font-family: var(--font-family-title);
  font-size: 1.15rem;
  font-weight: 500;
  text-align: center;
}

/* Responsive Overrides for 6-Photo Gallery */
@media (max-width: 992px) {
  .gallery-6photo {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .gallery-6photo {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   Admin Portal & CMS Dashboard Styles
   ========================================================================== */
:root {
  /* Default Theme (Dark Mode) */
  --admin-bg: #121214;
  --admin-card-bg: #1E1E24;
  --admin-border: #2D2D35;
  --admin-text: #E2E8F0;
  --admin-text-muted: #A0AEC0;
  --admin-input-bg: #2D2D35;
  --admin-input-border: #3F3F4A;
  --admin-input-text: #FFFFFF;
  --admin-sidebar-bg: #1A1A1E;
  --admin-header-bg: #1E1E24;
  --admin-title-text: #FFFFFF;
  --admin-tab-hover: rgba(255, 255, 255, 0.02);
  --admin-btn-text: #FFFFFF;
  --admin-shadow: rgba(0, 0, 0, 0.4);
}

.light-theme {
  /* Light Theme Mode */
  --admin-bg: #F7FAFC;
  --admin-card-bg: #FFFFFF;
  --admin-border: #E2E8F0;
  --admin-text: #2D3748;
  --admin-text-muted: #718096;
  --admin-input-bg: #FFFFFF;
  --admin-input-border: #CBD5E0;
  --admin-input-text: #2D3748;
  --admin-sidebar-bg: #EDF2F7;
  --admin-header-bg: #FFFFFF;
  --admin-title-text: #1A202C;
  --admin-tab-hover: rgba(0, 0, 0, 0.02);
  --admin-btn-text: #2D3748;
  --admin-shadow: rgba(0, 0, 0, 0.06);
}

.admin-body {
  background-color: var(--admin-bg);
  color: var(--admin-text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s, color 0.3s;
}

/* Login Panel Styling */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 20px;
}

.login-card {
  background-color: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px var(--admin-shadow);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.admin-logo {
  text-align: center;
  margin-bottom: 30px;
}

.admin-logo svg {
  height: 36px;
  width: auto;
}

.login-card h2 {
  font-family: 'Outfit', sans-serif;
  color: var(--admin-title-text);
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  transition: color 0.3s;
}

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

.form-group label {
  display: block;
  color: var(--admin-text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
  font-weight: 500;
  transition: color 0.3s;
}

.form-input {
  width: 100%;
  background-color: var(--admin-input-bg);
  border: 1px solid var(--admin-input-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--admin-input-text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background-color 0.3s, color 0.3s;
}

.form-input:focus {
  border-color: var(--google-blue);
}

.btn-admin {
  width: 100%;
  background-color: var(--google-blue);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-admin:hover {
  background-color: #357ae8;
}

/* Dashboard Panel Styling */
.dashboard-header {
  background-color: var(--admin-header-bg);
  border-bottom: 1px solid var(--admin-border);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s, border-color 0.3s;
}

.dashboard-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--admin-title-text);
  font-size: 1.25rem;
  transition: color 0.3s;
}

.dashboard-logo-text span {
  font-weight: 400;
  color: var(--google-blue);
  font-size: 0.85rem;
  background-color: rgba(66, 133, 244, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.btn-logout {
  background: none;
  border: 1px solid #EA4335;
  color: #EA4335;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

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

.btn-refresh-cache {
  background: none;
  border: 1px solid var(--google-blue);
  color: var(--google-blue);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-refresh-cache:hover {
  background-color: var(--google-blue);
  color: #FFFFFF;
}

/* Dark/Light theme switch icon styling */
.btn-theme-toggle {
  background: none;
  border: 1px solid var(--admin-border);
  color: var(--admin-text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-theme-toggle:hover {
  color: var(--admin-title-text);
  border-color: var(--admin-title-text);
  background-color: var(--admin-tab-hover);
}

.btn-theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex-grow: 1;
  min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
  background-color: var(--admin-sidebar-bg);
  border-right: 1px solid var(--admin-border);
  padding: 20px 0;
  transition: background-color 0.3s, border-color 0.3s;
}

.tab-nav {
  list-style: none;
}

.tab-nav-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--admin-text-muted);
  text-align: left;
  padding: 14px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.tab-nav-btn:hover {
  color: var(--admin-title-text);
  background-color: var(--admin-tab-hover);
}

.tab-nav-btn.active {
  color: var(--google-blue);
  background-color: rgba(66, 133, 244, 0.06);
  border-left: 4px solid var(--google-blue);
  padding-left: 20px;
}

.dashboard-content {
  padding: 40px;
  max-width: 1100px;
  width: 100%;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.panel-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 15px;
  transition: border-color 0.3s;
}

.panel-header h3 {
  font-size: 1.5rem;
  color: var(--admin-title-text);
  transition: color 0.3s;
}

.panel-header p {
  color: var(--admin-text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
  transition: color 0.3s;
}

.editor-card {
  background-color: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  transition: background-color 0.3s, border-color 0.3s;
}

.card-title {
  color: var(--admin-title-text);
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--admin-border);
  transition: color 0.3s, border-color 0.3s;
}

.field-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.image-upload-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 8px;
}

.image-preview-box {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  border: 1px solid var(--admin-input-border);
  background-color: var(--admin-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: background-color 0.3s, border-color 0.3s;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-actions {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-input-label {
  background-color: var(--admin-input-bg);
  border: 1px solid var(--admin-input-border);
  border-radius: 6px;
  padding: 8px 16px;
  color: var(--admin-input-text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  display: inline-block;
  align-self: flex-start;
}

.file-input-label:hover {
  background-color: var(--admin-border);
}

.dashboard-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  position: sticky;
  bottom: 20px;
  background-color: var(--admin-bg);
  padding: 15px 0;
  border-top: 1px solid var(--admin-border);
  transition: background-color 0.3s, border-color 0.3s;
}

.btn-save {
  background-color: var(--google-green);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Outfit', sans-serif;
}

.btn-save:hover {
  background-color: #2e964b;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--admin-card-bg);
  border-left: 4px solid var(--google-blue);
  color: var(--admin-input-text);
  padding: 16px 28px;
  border-radius: 6px;
  box-shadow: 0 10px 25px var(--admin-shadow);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.toast.success {
  border-left-color: var(--google-green);
}

.toast.error {
  border-left-color: var(--google-red);
}

/* Responsive Dashboard */
@media (max-width: 992px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  
  .dashboard-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--admin-border);
    padding: 10px 0;
    display: flex;
    overflow-x: auto;
  }
  
  .tab-nav {
    display: flex;
  }
  
  .tab-nav-btn {
    padding: 12px 20px;
    white-space: nowrap;
    border-left: none;
  }
  
  .tab-nav-btn.active {
    border-left: none;
    border-bottom: 3px solid var(--google-blue);
    background-color: transparent;
  }
  
  .dashboard-content {
    padding: 20px;
  }
  
  .field-grid-2, .field-grid-3 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

