/* ==========================================================================
   MUTEKI EAS - Core Design System & Styles
   ========================================================================== */

/* Variables: Custom Harmonious Palette (HSL Tailored Colors) */
:root {
  --bg-color: #080b11;
  --panel-bg: rgba(13, 20, 35, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.15);
  
  /* HSL Tailored Brand Colors (Anzen Blue & Anzen Emerald) */
  --primary-hue: 217; /* Deep Tech Blue */
  --secondary-hue: 150; /* Safety Green/Emerald */
  
  --primary: hsl(var(--primary-hue), 90%, 55%);
  --primary-glow: hsla(var(--primary-hue), 90%, 55%, 0.3);
  --secondary: hsl(var(--secondary-hue), 80%, 45%);
  --secondary-glow: hsla(var(--secondary-hue), 80%, 45%, 0.3);
  
  /* Text and Accents */
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Base Settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Ambient Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -100px;
  right: -50px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  bottom: 10%;
  left: -150px;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, hsl(290, 85%, 50%) 0%, transparent 70%);
  top: 40%;
  right: 10%;
  opacity: 0.15;
}

/* Reusable UI Components */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--primary) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 8s linear infinite;
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.glassmorphism {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delayed {
  opacity: 0;
  animation: fadeIn 1s ease-out 0.4s forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-hover-lift {
  transition: var(--transition-smooth);
}

.animate-hover-lift:hover {
  transform: translateY(-6px);
  border-color: var(--primary-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

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

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

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 11, 17, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
}

.logo-accent {
  color: var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--text-primary);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition-smooth);
}

nav ul li a:hover::after, nav ul li a.active::after {
  width: 100%;
}

/* Buttons */
.btn-primary-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-primary-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(263, 90%, 45%) 100%);
  border: none;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-secondary);
}

/* Hero Section */
.hero {
  padding: 10rem 0 5rem 0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  width: 90%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Stats Bar */
.stats-bar {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 6rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  backdrop-filter: blur(10px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--secondary);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.status-online {
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-green 1.5s infinite;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Services / Ecosistema Section */
.services-section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 6rem auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.8rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .services-grid {
    gap: 1rem;
  }
  .service-card {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .service-card {
    padding: 2.5rem;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  pointer-events: none;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-glow) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Visual Panel Setup Domain */
.visual-panel-section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 8rem auto;
}

.panel-card {
  border-radius: 20px;
  overflow: hidden;
}

.panel-header {
  background: rgba(8, 11, 17, 0.9);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.window-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.window-dots .dot.red { background-color: var(--error); }
.window-dots .dot.yellow { background-color: var(--warning); }
.window-dots .dot.green { background-color: var(--success); }

.window-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: monospace;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-body {
  padding: 3rem;
}

.panel-body h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.panel-body > p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 20px;
  width: 2px;
  height: calc(100% - 40px);
  background: var(--border-color);
  z-index: 0;
}

.step-item {
  display: flex;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.step-detail {
  width: 100%;
}

.step-detail h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-detail p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.code-box {
  background: rgba(8, 11, 17, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-family: monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  overflow-x: auto;
  gap: 1.5rem;
}

.code-box code {
  color: var(--secondary);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.ips-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ip-row {
  background: rgba(8, 11, 17, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-family: monospace;
  font-size: 0.9rem;
}

.ip-row code {
  color: var(--success);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: rgba(5, 7, 12, 0.8);
}

.footer-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media(max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  nav {
    display: none; /* simple mobile design */
  }
  
  .panel-body {
    padding: 1.5rem;
  }
  
  .step-item {
    gap: 1rem;
  }
  
  .code-box {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-copy {
    margin-top: 0.5rem;
    align-self: flex-end;
  }
}

/* ==========================================================================
   Interactive Dashboard & UI Additions
   ========================================================================== */

/* Tabs inside window header */
.panel-tabs {
  display: flex;
  gap: 0.8rem;
  margin-left: auto;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Hide helper */
.hidden {
  display: none !important;
}

/* Dashboard view layout */
.dashboard-view-content {
  animation: fadeIn 0.5s ease-out forwards;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.dash-card {
  background: rgba(8, 11, 17, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.dash-card.full-width-dash {
  grid-column: 1 / -1;
}

.card-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.card-header-premium h4 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-primary-neon { color: var(--primary); }
.text-secondary-neon { color: var(--secondary); }

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.online {
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Drop zone OCR upload */
.drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.03);
  box-shadow: inset 0 0 15px rgba(99, 102, 241, 0.05);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.drop-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

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

/* Progress area in drop zone */
.progress-bar-container {
  width: 100%;
  text-align: left;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  transition: width 0.1s linear;
}

.ocr-status-logs {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 80px;
  overflow-y: auto;
}

.ocr-log-line {
  animation: fadeIn 0.3s ease-out;
}

/* OCR History list */
.ocr-history {
  margin-top: 1.5rem;
}

.ocr-history h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ocr-history ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ocr-history li {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.doc-name {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.doc-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.doc-badge.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* InstalControl Meters */
.instal-meters {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.meter-box {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.meter-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--border-color);
  border-top-color: var(--secondary);
  border-right-color: var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(20, 241, 208, 0.1);
}

.meter-val {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: var(--transition-smooth);
}

.meter-lbl {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.meter-controls {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slider-control label {
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

#alert-threshold {
  color: var(--secondary);
  font-weight: 700;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  box-shadow: 0 0 8px var(--secondary-glow);
  transition: 0.1s;
}

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

.toggle-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Switch UI */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider.round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid var(--border-color);
}

.slider.round:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.switch input:checked + .slider.round {
  background-color: var(--primary);
  border-color: var(--primary);
}

.switch input:checked + .slider.round:before {
  transform: translateX(18px);
}

/* Chart widget */
.chart-container {
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* Bot Manager styles */
.bots-manager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.bot-status-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: var(--transition-smooth);
}

.bot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.bot-details {
  flex-grow: 1;
}

.bot-details h5 {
  font-size: 0.95rem;
  font-weight: 700;
}

.bot-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.bot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.bot-badge.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.bot-badge.inactive {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.btn-bot-toggle {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-success-glow {
  background: var(--success);
  color: white;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.btn-success-glow:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.btn-danger-glow {
  background: var(--error);
  color: white;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.btn-danger-glow:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* Console logs terminal widget */
.terminal-logs {
  background: #030508;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  padding: 0.7rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.btn-clear-logs {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-smooth);
}

.btn-clear-logs:hover {
  color: var(--error);
}

.terminal-body {
  padding: 1.2rem;
  font-family: monospace;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
}

.log-row {
  display: flex;
  gap: 0.6rem;
  animation: fadeIn 0.3s ease-out;
  line-height: 1.4;
}

.log-row.info { color: var(--text-secondary); }
.log-row.success { color: var(--success); }
.log-row.warning { color: var(--warning); }
.log-row.error { color: var(--error); }

.log-time { color: var(--text-muted); }
.log-source { color: var(--primary); font-weight: 600; }

/* Login Modal Popups */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-card {
  width: 90%;
  max-width: 440px;
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem 1.5rem;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.8rem;
  text-align: center;
}

.input-group-premium {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.input-group-premium label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.input-group-premium input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.input-group-premium input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  background: rgba(99, 102, 241, 0.02);
}

.full-width-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-primary-glass.logged-in {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* ==========================================================================
   Project Gallery Section Styles
   ========================================================================== */

.gallery-section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 6rem auto;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.filter-btn.active {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

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

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(13, 20, 35, 0.4);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(8, 11, 17, 0.95) 0%, rgba(8, 11, 17, 0.7) 60%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.gallery-item:hover .gallery-info-overlay {
  opacity: 1;
  transform: translateY(0);
}

.item-badge {
  background: var(--secondary-glow);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.gallery-info-overlay h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.gallery-info-overlay p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Gallery Manager Dashboard Tab Styles
   ========================================================================== */

.gallery-manager-view {
  animation: fadeIn 0.5s ease-out forwards;
}

.gallery-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.gallery-manager-header h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.gallery-manager-header p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.manager-items-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-height: 550px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom Scrollbar for Manager Grid */
.manager-items-grid::-webkit-scrollbar {
  width: 6px;
}
.manager-items-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 10px;
}
.manager-items-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.manager-items-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

.manager-item-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: var(--transition-smooth);
}

.manager-item-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.01);
}

.manager-thumb {
  position: relative;
  width: 90px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

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

.thumb-lbl {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-muted);
  font-size: 0.6rem;
  text-align: center;
  padding: 0.1rem 0;
  font-family: monospace;
}

.manager-inputs {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.manager-input-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.manager-title-input {
  flex-grow: 2;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.manager-title-input:focus {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.02);
}

.manager-category-select {
  flex-grow: 1;
  min-width: 150px;
  background: rgba(13, 20, 35, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.manager-category-select:focus {
  border-color: var(--primary);
}

.manager-desc-input {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  outline: none;
  resize: none;
  font-family: var(--font-family);
  transition: var(--transition-smooth);
}

.manager-desc-input:focus {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.02);
}

/* Floating Notification */
.floating-notif {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--success);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.floating-notif.fade-out {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

@media(max-width: 768px) {
  .manager-item-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .manager-thumb {
    align-self: center;
    width: 120px;
    height: 90px;
  }
}

/* ==========================================================================
   Gallery Lightbox Modal Styles
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-content-wrapper {
  position: relative;
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-image-container {
  width: 100%;
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--primary-glow);
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  width: 100%;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--panel-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.lightbox-caption h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0.5rem 0 0.3rem 0;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.lightbox-caption p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Lightbox Navigation Buttons */
.lightbox-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 3100;
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.2);
  transform: rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 3050;
}

.lightbox-nav-btn:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.prev-btn {
  left: 3rem;
}

.next-btn {
  right: 3rem;
}

/* Keyframes for Lightbox scaleUp */
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsiveness for Lightbox */
@media(max-width: 992px) {
  .prev-btn {
    left: 1.5rem;
  }
  .next-btn {
    right: 1.5rem;
  }
}

@media(max-width: 768px) {
  .lightbox-content-wrapper {
    width: 95%;
  }
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .prev-btn {
    left: 0.5rem;
  }
  .next-btn {
    right: 0.5rem;
  }
  .lightbox-close-btn {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Contact Section & Form Styles
   ========================================================================== */
.contact-section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 6rem auto;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem;
  border-radius: 20px;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.message-group {
  grid-column: 1 / -1;
}

.contact-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.contact-select option {
  background: var(--bg-color);
  color: var(--text-primary);
}

.contact-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  background: rgba(99, 102, 241, 0.02);
}

#enzen-contact-form textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  outline: none;
  min-height: 120px;
  resize: vertical;
  transition: var(--transition-smooth);
}

#enzen-contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  background: rgba(99, 102, 241, 0.02);
}

#btn-submit-contact {
  align-self: center;
  min-width: 220px;
  justify-content: center;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .contact-container {
    padding: 2rem 1.5rem;
  }
}

/* Nosotros / About Section */
.about-section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 6rem auto;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem;
  border-radius: 20px;
  text-align: center;
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 750px;
  margin: 0 auto;
}

.about-text-column p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: center;
}

@media (max-width: 768px) {
  .about-container {
    padding: 2rem 1.5rem;
  }
  
  .about-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
}


