/* PRIME Client Portal — Custom styles beyond Tailwind */

/* Material Symbols icon font settings */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Glass effects for navigation and modals */
.glass-nav,
.glass-header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Custom scrollbar (webkit) */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #353535;
  border-radius: 10px;
}

/* Ghost border — felt, not seen */
.ghost-border {
  border: 1px solid rgba(67, 70, 85, 0.15);
}

/* CTA gradient button */
.btn-gradient {
  background: linear-gradient(135deg, #2563eb, #0070f3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gradient:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}
.btn-gradient:active {
  transform: scale(0.95);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(67, 70, 85, 0.15);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover {
  background: #353535;
}
.btn-ghost:active {
  transform: scale(0.95);
}

/* Methodology badges */
.badge-agile {
  background: #2563eb;
  color: #eeefff;
}
.badge-waterfall {
  background: #7d4ce7;
  color: #f6edff;
}

/* Sidebar nav link styles */
.nav-link-active {
  border-left: 4px solid #2563eb;
  background: #1b1b1b;
  color: #ffffff;
  padding-left: 1rem;
}
.nav-link-inactive {
  color: #64748b;
  padding-left: 1.25rem;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}
.nav-link-inactive:hover {
  color: #60a5fa;
  background: rgba(27, 27, 27, 0.5);
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar mobile transition */
@media (max-width: 768px) {
  .portal-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .portal-sidebar.open {
    transform: translateX(0);
  }
}

/* Skeleton loading animation */
.skeleton {
  background: linear-gradient(90deg, #1b1b1b 25%, #2a2a2a 50%, #1b1b1b 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 0.25rem;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #e2e2e2;
  animation: toast-in 0.3s ease;
}
.toast-success { background: #065f46; }
.toast-error { background: #93000a; }
.toast-info { background: #2a2a2a; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #1b1b1b;
  border-radius: 0.75rem;
  max-width: 40rem;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 40px rgba(37, 99, 235, 0.15);
}

/* Phase stepper active pulse */
.phase-active-pulse {
  animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
}

/* Left accent bar for active items */
.active-accent {
  border-left: 4px solid #2563eb;
}

/* Form input focus styles */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 1px #2563eb;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile modal: full-width on small screens */
@media (max-width: 480px) {
  .modal-content {
    width: 96%;
    max-height: 92vh;
  }
}

/* Phase stepper horizontal scroll on mobile */
#phase-stepper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#phase-stepper::-webkit-scrollbar {
  display: none;
}
