/* Custom styles for ZKYNET ERP & CRM (Modern Executive SaaS Theme) */
body {
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  background-color: #f8fafc;
}

/* Glassmorphism & Header */
.glass-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Dialog Backdrop with Soft Blur */
dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Dialog Enhancements & Anti-Overflow Protection */
dialog {
  overflow-x: hidden !important;
  max-width: min(94vw, 48rem);
  box-sizing: border-box;
}

dialog * {
  box-sizing: border-box;
}

#modal-create-quote {
  max-width: min(94vw, 50rem) !important;
  overflow-x: hidden !important;
}

#modal-create-quote select,
#modal-create-quote input {
  max-width: 100%;
}

/* Modern Card Drop Shadows */
.card-modern {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease-in-out;
}

.card-modern:hover {
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 24px -4px rgba(15, 23, 42, 0.06);
}

/* ======================================================== */
/* NAVEGACIÓN LATERAL: ESTILOS DEFAULT, HOVER Y ACTIVO      */
/* ======================================================== */
.nav-item-btn {
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  color: #475569;
}

.nav-item-btn .nav-title {
  color: #0f172a;
  transition: color 0.18s ease;
}

.nav-item-btn .nav-subtext {
  color: #64748b;
  transition: color 0.18s ease;
}

/* Hover en botones inactivos */
.nav-item-btn:not(.active):hover {
  background-color: #f1f5f9;
}

.nav-item-btn:not(.active):hover .nav-title {
  color: #2563eb;
}

/* ESTADO ACTIVO: Vibrante ZKYNET Blue, contraste 100% nítido y legible */
.nav-item-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px -1px rgba(37, 99, 235, 0.35) !important;
}

.nav-item-btn.active .nav-title {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.nav-item-btn.active .nav-subtext {
  color: #dbeafe !important;
}

.nav-item-btn.active .nav-icon-container {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.nav-item-btn.active #badge-renewals {
  background: #ffffff !important;
  color: #1d4ed8 !important;
  border-color: #ffffff !important;
}

/* Column min-height for kanban */
.kanban-col {
  min-height: 520px;
}

/* Lucide Icon Base Sizing Helper */
.lucide {
  stroke-width: 2.15px;
}

/* ======================================================== */
/* VALERIA 3D AVATAR & BOTÓN ASISTENTE ANIMADO               */
/* ======================================================== */
@keyframes valeriaFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-2.5px) rotate(1deg);
  }
}

@keyframes valeriaHalo {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.12);
  }
}

.valeria-avatar-bounce {
  animation: valeriaFloat 3.6s ease-in-out infinite;
  transform-origin: center;
}

.valeria-avatar-glow {
  position: absolute;
  inset: -3px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.55) 0%, rgba(59, 130, 246, 0.25) 50%, transparent 75%);
  border-radius: 9999px;
  filter: blur(4px);
  animation: valeriaHalo 3s ease-in-out infinite;
  pointer-events: none;
}

/* Dashboard Widgets Transición */
.dashboard-widget {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease;
}

.dashboard-widget:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

/* ======================================================== */
/* KANBAN PIPELINE DRAG & DROP INTERACTIVO                 */
/* ======================================================== */
.kanban-card {
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card:hover {
  transform: translateY(-2px);
  border-color: #60a5fa;
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
}

.kanban-card.is-dragging {
  opacity: 0.45 !important;
  transform: scale(0.96) rotate(1.5deg) !important;
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.25) !important;
}

.kanban-dropzone {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 480px;
}

.kanban-dropzone.drag-active {
  background-color: rgba(239, 246, 255, 0.95) !important;
  border: 2px dashed #2563eb !important;
  box-shadow: inset 0 2px 8px rgba(37, 99, 235, 0.08);
}

/* Scrollable requirement box inside Kanban card */
.card-requirement-box {
  max-height: 85px;
  overflow-y: auto;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}
.card-requirement-box::-webkit-scrollbar {
  width: 4px;
}
.card-requirement-box::-webkit-scrollbar-track {
  background: transparent;
}
.card-requirement-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.card-requirement-box::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

