/* KiboCode.cl - Custom Enterprise Styling & Animations */

:root {
  --neon-cyan: #00F0FF;
  --neon-blue: #3B82F6;
  --neon-emerald: #10B981;
  --neon-purple: #8B5CF6;
  --dark-canvas: #070B14;
  --card-bg: rgba(15, 23, 42, 0.75);
  --border-subtle: rgba(51, 65, 85, 0.6);
}

body {
  background-color: var(--dark-canvas);
  color: #F8FAFC;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0B1120;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Tech Grid & Glow Utilities */
.bg-tech-grid {
  background-image: radial-gradient(rgba(0, 240, 255, 0.08) 1px, transparent 1px), radial-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

.glow-cyan {
  box-shadow: 0 0 25px -5px rgba(0, 240, 255, 0.35);
}

.glow-emerald {
  box-shadow: 0 0 25px -5px rgba(16, 185, 129, 0.35);
}

.glow-purple {
  box-shadow: 0 0 25px -5px rgba(139, 92, 246, 0.35);
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 20%, #00F0FF 80%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #FFFFFF 20%, #10B981 80%, #00F0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.border-gradient-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.border-gradient-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 240, 255, 0.15);
}

/* Master-Detail Split View Active Item */
.splitview-card {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.splitview-card.active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.12), rgba(15, 23, 42, 0.9));
  border-left: 3px solid #00F0FF;
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 4px 20px -2px rgba(0, 240, 255, 0.2);
}

/* Toast Container */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Drag & Drop Visuals */
.draggable-item {
  cursor: grab;
  user-select: none;
}

.draggable-item:active {
  cursor: grabbing;
}

.drag-over {
  border: 2px dashed #00F0FF !important;
  background-color: rgba(0, 240, 255, 0.08) !important;
}

.drag-ghost {
  opacity: 0.4;
}

/* Modal Transitions */
.modal-backdrop {
  backdrop-filter: blur(8px);
}
