/* SalesForge Enterprise CSS — Pure HTML5 & Tailwind Additions */

:root {
  --color-brand-primary: 124 58 237;
  --color-coral-accent: 255 100 103;
}

/* Responsive Sidebar Navigation */
@media (min-width: 1024px) {
  #salesforge-sidebar,
  #doc-sidebar {
    position: static !important;
    transform: none !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
}
@media (max-width: 1023px) {
  #salesforge-sidebar,
  #doc-sidebar {
    position: fixed !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
}

/* Desktop Sidebar Collapsible State */
@media (min-width: 1024px) {
  #salesforge-sidebar {
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  #salesforge-sidebar.sidebar-collapsed {
    width: 4.5rem !important; /* 72px mini width */
  }
  #salesforge-sidebar.sidebar-collapsed .sidebar-text,
  #salesforge-sidebar.sidebar-collapsed .sidebar-badge,
  #salesforge-sidebar.sidebar-collapsed .sidebar-quota,
  #salesforge-sidebar.sidebar-collapsed .sidebar-user-details,
  #salesforge-sidebar.sidebar-collapsed .sidebar-section-title,
  #salesforge-sidebar.sidebar-collapsed .sidebar-cta-text {
    display: none !important;
  }
  #salesforge-sidebar.sidebar-collapsed .sidebar-cta-btn {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    justify-content: center !important;
  }
  #salesforge-sidebar.sidebar-collapsed .sidebar-nav-link {
    justify-content: center !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  #salesforge-sidebar.sidebar-collapsed .sidebar-user-card {
    justify-content: center !important;
    padding: 0.5rem 0.25rem !important;
  }
  #salesforge-sidebar.sidebar-collapsed #sidebar-collapse-btn svg {
    transform: rotate(180deg);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.25);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html:not(.dark) .glass-panel {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.glass-card {
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 12px 32px -8px rgba(124, 58, 237, 0.15);
}

html:not(.dark) .glass-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

html:not(.dark) .glass-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 12px 32px -8px rgba(124, 58, 237, 0.12);
}

/* Gradient Text */
.text-gradient-violet {
  background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 50%, #FF6467 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-coral {
  background: linear-gradient(135deg, #FF6467 0%, #E5484D 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shimmer Button */
.shimmer-button {
  background-size: 200% auto;
  background-image: linear-gradient(
    90deg,
    #7C3AED 0%,
    #A78BFA 25%,
    #FF6467 50%,
    #A78BFA 75%,
    #7C3AED 100%
  );
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Dot Grid Background */
.dot-grid-pattern {
  background-image: radial-gradient(rgba(124, 58, 237, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
}

html:not(.dark) .dot-grid-pattern {
  background-image: radial-gradient(rgba(124, 58, 237, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Noise overlay */
.bg-noise {
  background-image: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
}

/* RTL Layout Mirroring */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .sidebar-left {
  right: 0;
  left: auto;
  border-left-width: 1px;
  border-right-width: 0;
}

[dir="rtl"] .main-content {
  margin-right: 16rem;
  margin-left: 0;
}

@media (max-width: 1024px) {
  [dir="rtl"] .main-content {
    margin-right: 0;
  }
}

/* Modal and Dropdown transitions */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Toast Notification */
#salesforge-toast {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#salesforge-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========================================================
   TRENDING SAAS ANIMATIONS (Linear / Raycast / Magic UI)
   ======================================================== */

/* 1. Luminous Border Beam (Magic UI Style) */
.border-beam-wrapper {
  position: relative;
  border-radius: 1.5rem;
  padding: 1.5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px -15px rgba(124, 58, 237, 0.25);
}

.border-beam-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent 0deg,
    transparent 200deg,
    rgba(124, 58, 237, 0.4) 260deg,
    rgba(255, 100, 103, 0.9) 310deg,
    rgba(167, 139, 250, 1) 340deg,
    transparent 360deg
  );
  animation: borderRotate 7s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes borderRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.border-beam-content {
  position: relative;
  border-radius: calc(1.5rem - 1.5px);
  z-index: 1;
  background: inherit;
}

/* 2. Bento Grid Interactive Spotlight Glow (Linear / Raycast Style) */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    320px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(167, 139, 250, 0.4),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(124, 58, 237, 0.08),
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.spotlight-card:hover::before,
.spotlight-card:hover::after {
  opacity: 1;
}

/* 3. 3D Tilt Card Perspective */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* 4. AI Revenue Sonar / Live Deal Radar HUD */
.radar-screen {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(9, 9, 11, 0.96) 75%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 35px -5px rgba(16, 185, 129, 0.25), inset 0 0 25px rgba(16, 185, 129, 0.12);
  overflow: hidden;
  margin: 0 auto;
}

.radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(16, 185, 129, 0) 0deg,
    rgba(16, 185, 129, 0) 280deg,
    rgba(16, 185, 129, 0.35) 345deg,
    rgba(52, 211, 153, 0.95) 360deg
  );
  animation: radarSweep 3.5s linear infinite;
  pointer-events: none;
}

@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(16, 185, 129, 0.25);
  pointer-events: none;
}

.radar-crosshair-x {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.35), transparent);
  pointer-events: none;
}

.radar-crosshair-y {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.35), transparent);
  pointer-events: none;
}

.radar-blip {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
}

.radar-blip:hover {
  transform: translate(-50%, -50%) scale(1.4);
}

.radar-blip::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

@keyframes radarPing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}


