:root {
  --pink: #ff006e;
  --pink-dark: #d90058;
  --pink-light: #ff4d9a;
  --bg-dark: #0d1117;
  --bg-darker: #010409;
  --border-color: #30363d;
}

body {
  background-color: var(--bg-dark);
  color: #e6edf3;
}

.text-pink {
  color: var(--pink) !important;
}

.bg-pink {
  background-color: var(--pink) !important;
}

.border-pink {
  border-color: var(--pink) !important;
}

.btn-pink {
  background-color: var(--pink);
  border-color: var(--pink);
  color: white;
}

.btn-pink:hover {
  background-color: var(--pink-dark);
  border-color: var(--pink-dark);
  color: white;
}

.btn-outline-pink {
  background-color: transparent;
  border-color: var(--pink);
  color: var(--pink);
}

.btn-outline-pink:hover {
  background-color: var(--pink);
  border-color: var(--pink);
  color: white;
}

.card {
  background-color: #161b22;
  border-color: var(--border-color);
}

.card-header {
  background-color: #21262d;
  border-bottom-color: var(--border-color);
}

.form-control,
.form-select {
  background-color: #0d1117;
  border-color: var(--border-color);
  color: #e6edf3;
}

.form-control:focus,
.form-select:focus {
  background-color: #0d1117;
  border-color: var(--pink);
  color: #e6edf3;
  box-shadow: 0 0 0 0.25rem rgba(255, 0, 110, 0.25);
}

.navbar-dark {
  background-color: var(--bg-darker) !important;
}

.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gradient-text {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero content blur for better readability */
.hero-content-blur {
  background-color: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin: 0 auto;
  max-width: 900px;
  border: 1px solid rgba(255, 0, 110, 0.2);
}

/* Neural Network Background */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

.neural-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255, 0, 110, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 77, 154, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 0, 110, 0.03) 0%, transparent 70%);
}

/* Floating particles animation */
@keyframes float-particle {

  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* Grid overlay effect */
.neural-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 0, 110, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.collection-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.collection-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 0, 110, 0.2);
}

.api-key-box {
  background-color: #0d1117;
  border: 1px solid var(--pink);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

/* Landing page improvements */
.hero-section .card {
  transition: all 0.3s ease;
  background-color: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(48, 54, 61, 0.5);
}

.hero-section .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(255, 0, 110, 0.15);
  background-color: rgba(22, 27, 34, 0.8);
  border-color: var(--pink);
}

.hero-section .card h3 i {
  display: inline-block;
  transition: transform 0.3s ease;
}

.hero-section .card:hover h3 i {
  transform: scale(1.1);
}

/* Special styling for N8N integration card */
.hero-section .card:has(.btn-pink) {
  border: 1px solid rgba(255, 0, 110, 0.3);
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.1);
}

.hero-section .card:has(.btn-pink):hover {
  border-color: var(--pink);
  box-shadow: 0 0 30px rgba(255, 0, 110, 0.25);
}

.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
}

.navbar-nav .nav-link {
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--pink) !important;
}

/* Drawer Styles */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--bg-darker);
  border-bottom: 1px solid var(--pink);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.drawer-toggle {
  background: none;
  border: none;
  color: var(--pink);
  font-size: 28px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-toggle:hover {
  background-color: rgba(255, 0, 110, 0.1);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1100;
}

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

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background-color: var(--bg-darker);
  border-right: 1px solid var(--border-color);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
}

.drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  min-height: 64px;
}

.drawer-close {
  background: none;
  border: none;
  color: #e6edf3;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--pink);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.drawer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-nav li {
  margin: 0;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: #e6edf3;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 16px;
  gap: 12px;
}

.drawer-nav a:hover {
  background-color: rgba(255, 0, 110, 0.1);
  color: var(--pink);
  padding-left: 24px;
}

.drawer-nav a i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.drawer-nav .btn {
  margin: 8px 20px;
  width: calc(100% - 40px);
  justify-content: center;
}

/* Ajuste do main para não ficar atrás do header */
main {
  margin-top: 64px;
}

/* Responsivo */
@media (max-width: 768px) {
  .drawer {
    width: 85%;
    max-width: 320px;
  }
}

/* WhatsApp Floating 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 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
  }

  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

/* Responsivo para mobile */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }
}