/* Custom styles for OpportunityHub */

* {
  box-sizing: border-box;
}

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

/* Sidebar transition */
.sidebar-enter {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.sidebar-open {
  transform: translateX(0);
}

/* Table row hover */
.table-row-hover:hover {
  background-color: #f8fafc;
  cursor: pointer;
}

/* Modal overlay */
.modal-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

/* Stage badge animations */
.stage-badge {
  transition: all 0.2s ease;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

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

/* Toast notifications */
.toast {
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Active nav item */
.nav-item-active {
  background-color: #1d4ed8;
  color: white !important;
}
.nav-item-active svg {
  color: white !important;
}

/* Card hover effect */
.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Print styles */
@media print {
  .no-print { display: none !important; }
  .print-full { width: 100% !important; margin: 0 !important; }
}

/* Mobile responsive tweaks */
@media (max-width: 768px) {
  .sidebar { position: fixed; z-index: 50; height: 100vh; }
  .main-content { margin-left: 0 !important; }
}
