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

:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* CBGTecnologia Tech Dark Theme Palette */
  --bg-primary: #0a0e1a;
  --bg-secondary: #121829;
  --bg-tertiary: #1a2238;
  
  --card-bg: rgba(18, 24, 41, 0.75);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-glow: rgba(59, 130, 246, 0.15);

  --color-primary: #3b82f6; /* Tech Blue */
  --color-primary-glow: rgba(59, 130, 246, 0.3);
  --color-secondary: #06b6d4; /* Electric Cyan */
  --color-success: #10b981; /* Emeral Green */
  --color-warning: #f59e0b; /* Amber Yellow */
  --color-danger: #ef4444; /* Coral Red */

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

/* Base Styles */
body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
}

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

/* Glassmorphism Panel */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--card-border-glow);
}

/* Glowing text and buttons */
.text-glow {
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.btn-glow {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glow:hover {
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
}

/* Custom Sliders (Range Input) */
.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 9999px;
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-secondary);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
  transition: transform 0.1s ease;
}

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

.custom-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-secondary);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
  transition: transform 0.1s ease;
  border: none;
}

.custom-range::-moz-range-thumb:hover {
  transform: scale(1.25);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Circular Progress Bar */
.circle-progress {
  transform: rotate(-90deg);
}

.circle-progress-bg {
  fill: none;
  stroke: var(--bg-tertiary);
}

.circle-progress-bar {
  fill: none;
  stroke: url(#cyan-blue-gradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Toast Notification Container */
#toast-container {
  z-index: 100;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%) translateY(0);
    opacity: 0;
  }
  to {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}

.toast-message.fade-out {
  animation: slideOut 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@keyframes slideOut {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
