/* Syncro AI Admin Panel Custom Styles */
@layer base {
  body {
    background-color: #090A0F;
    color: #D7E2EA;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 138, 0, 0.5);
}

/* Active Nav Tab Style */
.nav-tab {
  color: rgba(215, 226, 234, 0.6);
  cursor: pointer;
}
.nav-tab:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.04);
}
.nav-tab.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(255, 138, 0, 0.15) 0%, rgba(255, 62, 62, 0.05) 100%);
  border: 1px solid rgba(255, 138, 0, 0.3);
  box-shadow: 0 0 15px rgba(255, 138, 0, 0.1);
}
.nav-tab.active i {
  color: #FF8A00;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-new {
  background-color: rgba(255, 138, 0, 0.15);
  color: #FF8A00;
  border: 1px solid rgba(255, 138, 0, 0.3);
}

.status-contacted {
  background-color: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-indiscussion {
  background-color: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-proposalsent {
  background-color: rgba(234, 179, 8, 0.15);
  color: #FACC15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-converted {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-closed {
  background-color: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Priority Badges */
.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.priority-urgent {
  background-color: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.priority-high {
  background-color: rgba(249, 115, 22, 0.15);
  color: #FB923C;
  border: 1px solid rgba(249, 115, 22, 0.3);
}
.priority-medium {
  background-color: rgba(56, 189, 248, 0.12);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.priority-low {
  background-color: rgba(148, 163, 184, 0.12);
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Role Badges */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}
.role-superadmin {
  background-color: rgba(168, 85, 247, 0.15);
  color: #D8B4FE;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.role-admin {
  background-color: rgba(255, 138, 0, 0.15);
  color: #FFD4A3;
  border: 1px solid rgba(255, 138, 0, 0.4);
}
.role-manager {
  background-color: rgba(56, 189, 248, 0.15);
  color: #BAE6FD;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.role-salesagent {
  background-color: rgba(16, 185, 129, 0.15);
  color: #A7F3D0;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Landing Page Source Badges */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
}
.source-main {
  background-color: rgba(255, 138, 0, 0.12);
  color: #FFD4A3;
  border: 1px solid rgba(255, 138, 0, 0.3);
}
.source-profile {
  background-color: rgba(59, 130, 246, 0.12);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.source-leads {
  background-color: rgba(168, 85, 247, 0.12);
  color: #D8B4FE;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.source-other {
  background-color: rgba(100, 116, 139, 0.12);
  color: #CBD5E1;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Lead Journey Timeline Stepper Styles */
.timeline-container {
  position: relative;
  padding-left: 1.5rem;
}
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.45rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 138, 0, 0.6) 0%, rgba(168, 85, 247, 0.4) 50%, rgba(16, 185, 129, 0.3) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0C0E14;
  border: 2px solid #FF8A00;
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.5);
  z-index: 2;
}

.timeline-dot.dot-status {
  border-color: #38BDF8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}
.timeline-dot.dot-assigned {
  border-color: #A855F7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}
.timeline-dot.dot-converted {
  border-color: #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.timeline-dot.dot-communication {
  border-color: #FACC15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

/* Confirm Dialog Modal Animations */
@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.6);
  }
}

.modal-animate-in {
  animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glow-danger {
  animation: pulseGlow 2s infinite;
}

/* Row Deletion Animation */
.row-deleting {
  opacity: 0;
  transform: translateX(-20px);
  background-color: rgba(239, 68, 68, 0.15) !important;
  transition: all 0.35s ease-out;
}

/* Toast Animations */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }
}
.toast-enter {
  animation: toastIn 0.25s ease-out forwards;
}
.toast-exit {
  animation: toastOut 0.25s ease-in forwards;
}

/* User Activity Calendar Styles */
.cal-day-cell {
  position: relative;
  min-height: 78px;
  border-radius: 1rem;
  padding: 0.625rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
}
.cal-day-cell:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 138, 0, 0.4);
  background: rgba(255, 255, 255, 0.04);
}
.cal-day-cell.cal-active {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.04) 100%);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}
.cal-day-cell.cal-active:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}
.cal-day-cell.cal-selected {
  border-color: #FF8A00 !important;
  background: linear-gradient(145deg, rgba(255, 138, 0, 0.18) 0%, rgba(255, 62, 62, 0.08) 100%) !important;
  box-shadow: 0 0 25px rgba(255, 138, 0, 0.35) !important;
  transform: scale(1.02);
  z-index: 10;
}
.cal-day-cell.cal-empty {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
  background: transparent;
  border-color: transparent;
}

/* Pagination Control Styles */
.pagination-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s ease-out;
  cursor: pointer;
  user-select: none;
}
.pagination-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: translateY(-1px);
}
.pagination-btn:active:not(:disabled) {
  transform: translateY(0);
}
.pagination-btn.active {
  background: linear-gradient(135deg, #FF8A00 0%, #FF3E3E 100%) !important;
  border-color: #FF8A00 !important;
  color: #FFFFFF !important;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(255, 138, 0, 0.35);
}
.pagination-btn.active-purple {
  background: linear-gradient(135deg, #A855F7 0%, #6366F1 100%) !important;
  border-color: #A855F7 !important;
  color: #FFFFFF !important;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.35);
}
.pagination-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}


