/* ==========================================================================
   CONDOMINIUM MANAGER PRO - DESIGN SYSTEM & GLASSMORPHISM PREMIUM
   ========================================================================== */

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

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Color Palette */
  --bg-dark-base: #070b14;
  --bg-dark-surface: #0d1527;
  --bg-dark-surface-2: #131e36;
  
  --primary-blue: #2563eb;
  --primary-light: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --cyan-accent: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --purple-accent: #8b5cf6;
  --emerald-accent: #10b981;
  --amber-accent: #f59e0b;
  --rose-accent: #f43f5e;

  /* Glass Defaults */
  --glass-bg-base: rgba(18, 28, 51, 0.55);
  --glass-bg-hover: rgba(26, 40, 71, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-light: rgba(255, 255, 255, 0.22);
  --glass-highlight: rgba(255, 255, 255, 0.35);

  /* Shadows for 3D Alto Relevo */
  --shadow-relevo-sm: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  --shadow-relevo-md: 0 12px 28px -6px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 1px 1.5px rgba(255, 255, 255, 0.25);
  --shadow-relevo-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 1.5px 2px rgba(255, 255, 255, 0.3);
  --shadow-relevo-inset: inset 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 -1px 1px rgba(255, 255, 255, 0.1);
  --shadow-btn-primary: 0 12px 26px -6px rgba(37, 99, 235, 0.55), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.4);
}

/* Global Reset & Base */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark-base);
  color: #f1f5f9;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark-base);
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 20%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 60%, rgba(139, 92, 246, 0.08) 0px, transparent 60%),
    radial-gradient(at 20% 90%, rgba(37, 99, 235, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Ambient Lights & Animated Background Blobs */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: floatLight 18s ease-in-out infinite alternate;
}

.ambient-blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, rgba(37, 99, 235, 0.05) 70%, transparent 100%);
}

.ambient-cyan {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(14, 165, 233, 0.05) 70%, transparent 100%);
}

.ambient-purple {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(124, 58, 237, 0.05) 70%, transparent 100%);
}

@keyframes floatLight {
  0% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  50% {
    transform: translateY(-40px) translateX(30px) scale(1.08);
  }
  100% {
    transform: translateY(30px) translateX(-20px) scale(0.95);
  }
}

/* Grid Pattern Overlay */
.tech-grid-bg {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

/* ==========================================================================
   REALISTIC GLASSMORPHISM & ALTO RELEVO COMPONENTS
   ========================================================================== */

/* Realistic Glass Card */
.glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%), var(--glass-bg-base);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-light);
  border-left: 1px solid var(--glass-border-light);
  box-shadow: var(--shadow-relevo-md);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* High Relief Elevated Glass Card */
.glass-panel-elevated {
  background: linear-gradient(145deg, rgba(25, 39, 69, 0.75) 0%, rgba(13, 21, 39, 0.85) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-relevo-lg);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-elevated::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-panel-elevated:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -10px rgba(0, 0, 0, 0.75), 0 0 25px rgba(59, 130, 246, 0.2), inset 0 1.5px 2px rgba(255, 255, 255, 0.4);
  border-color: rgba(96, 165, 250, 0.4);
}

/* Light Beam / Ray effect inside cards */
.light-beam {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glass-panel:hover .light-beam,
.glass-panel-elevated:hover .light-beam {
  opacity: 1;
}

/* Interactive Spotlight Card (Mouse Tracking) */
.spotlight-card {
  position: relative;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -100px);
  left: var(--mouse-x, -100px);
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}
.spotlight-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   TACTILE ALTO RELEVO BUTTONS
   ========================================================================== */

/* Primary 3D Embossed Glow Button */
.btn-relevo-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 60%, #1e40af 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(15, 23, 42, 0.6);
  box-shadow: var(--shadow-btn-primary);
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-relevo-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: 0.6s ease;
}

.btn-relevo-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 60%, #1d4ed8 100%);
  box-shadow: 0 16px 32px -4px rgba(37, 99, 235, 0.7), 0 0 20px rgba(6, 182, 212, 0.4), inset 0 1.5px 2px rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-relevo-primary:hover::before {
  left: 100%;
}

.btn-relevo-primary:active {
  transform: translateY(1px);
  box-shadow: 0 6px 14px -2px rgba(37, 99, 235, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Secondary 3D Glass Relief Button */
.btn-relevo-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(17, 24, 39, 0.85);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
  box-shadow: var(--shadow-relevo-md);
  border-radius: 0.75rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.btn-relevo-secondary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(26, 38, 64, 0.9);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -6px rgba(0, 0, 0, 0.6), inset 0 1.5px 2px rgba(255, 255, 255, 0.4);
}

.btn-relevo-secondary:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Subtle Inset Badge / Counter */
.badge-relevo {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.4), 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   HERO DASHBOARD SIMULATOR & MOCKUP STYLING
   ========================================================================== */

.dashboard-mockup-wrapper {
  perspective: 1200px;
}

.dashboard-mockup-window {
  transform: rotateX(4deg) rotateY(0deg) scale(0.98);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
  box-shadow: 
    0 35px 80px -15px rgba(0, 0, 0, 0.85),
    0 0 50px -10px rgba(59, 130, 246, 0.25),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.35);
}

.dashboard-mockup-wrapper:hover .dashboard-mockup-window {
  transform: rotateX(0deg) rotateY(0deg) scale(1);
  box-shadow: 
    0 45px 100px -15px rgba(0, 0, 0, 0.9),
    0 0 70px -5px rgba(59, 130, 246, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.45);
}

/* Dashboard UI Sub-components (Recreating the clean admin look with glass polish) */
.dash-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.dash-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.5), 0 0 15px rgba(37, 99, 235, 0.2);
}

.dash-icon-box {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 14px -2px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Glass Floating Element (e.g. Floating Notification / Fast Stat) */
.floating-pill {
  animation: floatPill 6s ease-in-out infinite alternate;
}

@keyframes floatPill {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

/* ==========================================================================
   MODULES TAB SYSTEM
   ========================================================================== */

.module-tab-btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.module-tab-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, rgba(6, 182, 212, 0.2) 100%), rgba(20, 32, 60, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.6);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.45), inset 0 1px 1.5px rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.module-content-pane {
  display: none;
  animation: fadeInPane 0.4s ease forwards;
}

.module-content-pane.active {
  display: block;
}

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

/* ==========================================================================
   INTERACTIVE ROI RANGE SLIDER
   ========================================================================== */

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #1e293b;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.9), 0 0 12px rgba(6, 182, 212, 0.8);
}

/* ==========================================================================
   GLOWING TEXT & GRADIENTS
   ========================================================================== */

.text-glow-blue {
  text-shadow: 0 0 25px rgba(59, 130, 246, 0.65);
}

.text-glow-cyan {
  text-shadow: 0 0 25px rgba(6, 182, 212, 0.65);
}

.gradient-text-primary {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   MODAL & BACKDROP
   ========================================================================== */

.modal-backdrop {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Pulsing Badge Indicator */
.status-pulse {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981;
}

.status-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: #10b981;
  opacity: 0.7;
  animation: pingPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingPulse {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
