/* CariTalent demo mockup — shared styles beyond Tailwind CDN */

:root {
  --midnight: #0A0F1D;
  --slate-deep: #1E293B;
  --ice: #F0F4F8;
  --primary: #2563EB;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--ice);
  color: #0f172a;
}

/* Locked contact info */
.blurred {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Subtle entrance animation */
.fade-up { animation: fadeUp .35s ease-out both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Modal */
.modal-backdrop { background: rgba(10, 15, 29, .65); backdrop-filter: blur(2px); }

/* Off-canvas drawer (dashboard sidebar on mobile) */
.drawer { transition: transform .25s ease; }
@media (max-width: 1023px) {
  .drawer { transform: translateX(-100%); }
  .drawer.open { transform: translateX(0); }
}

/* Star rating */
.stars { color: #f59e0b; letter-spacing: 1px; }

/* Simple table -> avoid horizontal overflow: wrap in .table-scroll on md+ only */
.table-scroll { overflow-x: auto; }

/* Floating demo role switcher (injected by app.js) */
.role-toggle {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--midnight);
  border: 1px solid #334155;
  box-shadow: 0 10px 30px rgba(4, 10, 25, .45);
}
.role-toggle .rt-label {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0 6px 0 10px;
}
.role-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.role-toggle button:hover { color: #fff; }
.role-toggle button.rt-active { background: var(--primary); color: #fff; }
@media (max-width: 480px) {
  .role-toggle .rt-label { display: none; }
  .role-toggle button { padding: 0 10px; }
  .role-toggle button span { display: none; } /* icons only on small phones */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
