/* ContrHub custom styles — v4 premium design system */
[v-cloak] { display: none; }

/* ══════════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════════ */
:root {
  --c-brand: #3b82f6;
  --c-brand-dark: #2563eb;
  --c-accent: #8b5cf6;
  --c-sidebar: linear-gradient(175deg, #0c1222 0%, #162040 40%, #0f172a 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px -10px rgba(0,0,0,0.1), 0 8px 16px -6px rgba(0,0,0,0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ══════════════════════════════════════════
   TRANSITIONS
   ══════════════════════════════════════════ */
.fade-enter-active, .fade-leave-active { transition: opacity 0.2s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

.page-enter-active { transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.page-leave-active { transition: opacity 0.15s ease; }
.page-enter-from { opacity: 0; transform: translateY(12px); }
.page-leave-to { opacity: 0; }

.modal-enter-active { transition: opacity 0.2s ease; }
.modal-leave-active { transition: opacity 0.15s ease; }
.modal-enter-from, .modal-leave-to { opacity: 0; }
.modal-enter-active .modal-panel { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease; }
.modal-leave-active .modal-panel { transition: transform 0.15s ease, opacity 0.15s ease; }
.modal-enter-from .modal-panel { transform: scale(0.92) translateY(16px); opacity: 0; }
.modal-leave-to .modal-panel { transform: scale(0.97); opacity: 0; }

.slide-enter-active { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-leave-active { transition: transform 0.25s ease-in; }
.slide-enter-from { transform: translateX(-100%); }
.slide-leave-to { transform: translateX(-100%); }

.toast-enter-active { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease; }
.toast-leave-active { transition: transform 0.2s ease, opacity 0.15s ease; }
.toast-enter-from { transform: translateX(100%) scale(0.9); opacity: 0; }
.toast-leave-to { transform: translateX(40px); opacity: 0; }

/* ══════════════════════════════════════════
   STATUS BADGES — with glowing dots
   ══════════════════════════════════════════ */
.status-actif { color: #059669; background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.status-actif::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #059669; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 6px rgba(5,150,105,0.5); }
.status-brouillon { color: #6b7280; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); }
.status-brouillon::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; margin-right: 6px; vertical-align: middle; }
.status-en_validation { color: #b45309; background: linear-gradient(135deg, #fef3c7, #fde68a); }
.status-en_validation::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d97706; margin-right: 6px; vertical-align: middle; animation: dot-pulse 2s infinite; }
.status-en_resiliation { color: #b91c1c; background: linear-gradient(135deg, #fee2e2, #fecaca); }
.status-en_resiliation::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #dc2626; margin-right: 6px; vertical-align: middle; animation: dot-pulse 1.5s infinite; }
.status-clos { color: #4b5563; background: linear-gradient(135deg, #e5e7eb, #d1d5db); }
.status-archive { color: #9ca3af; background: #f9fafb; }

@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px transparent; }
}

/* ══════════════════════════════════════════
   CRITICITE BADGES
   ══════════════════════════════════════════ */
.criticite-critique { color: #dc2626; background: linear-gradient(135deg, #fee2e2, #fecaca); }
.criticite-standard { color: #2563eb; background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.criticite-faible { color: #6b7280; background: #f3f4f6; }

/* ══════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
html { scroll-behavior: smooth; }
::selection { background: rgba(59, 130, 246, 0.15); color: inherit; }

/* ══════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════ */
.sidebar-gradient {
  background: var(--c-sidebar);
}
.sidebar-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(59,130,246,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 100%, rgba(139,92,246,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.sidebar-gradient ::-webkit-scrollbar { width: 3px; }
.sidebar-gradient ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 10px; }

.nav-link-active {
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(99,102,241,0.12)) !important;
  border-right: 3px solid #60a5fa;
  color: #fff !important;
  box-shadow: inset 0 0 30px rgba(59,130,246,0.05), 0 0 16px rgba(59,130,246,0.08);
}

.logo-glow { text-shadow: 0 0 30px rgba(96, 165, 250, 0.4), 0 0 60px rgba(96, 165, 250, 0.1); }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 39; }

/* ══════════════════════════════════════════
   SPINNER & SKELETON
   ══════════════════════════════════════════ */
.spinner { width: 36px; height: 36px; border: 3px solid #e5e7eb; border-top-color: var(--c-brand); border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton-card { background: white; border-radius: var(--radius-md); border: 1px solid #f1f5f9; padding: 1.5rem; box-shadow: var(--shadow-sm); }
.skeleton-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; margin-bottom: 0.75rem; }
.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.w-3-4 { width: 75%; }
.skeleton-line.w-1-2 { width: 50%; }
.skeleton-line.w-1-3 { width: 33%; }
.skeleton-circle { width: 48px; height: 48px; border-radius: var(--radius-md); background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; flex-shrink: 0; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ══════════════════════════════════════════
   GLASSMORPHISM
   ══════════════════════════════════════════ */
.glass {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.glass-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ══════════════════════════════════════════
   KPI CARDS — premium layered shadows
   ══════════════════════════════════════════ */
.kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.kpi-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left 0.7s ease;
}
.kpi-card:hover::after { left: 100%; }
.kpi-blue::before { background: linear-gradient(90deg, #3b82f6, #818cf8); }
.kpi-orange::before { background: linear-gradient(90deg, #f59e0b, #fb923c); }
.kpi-red::before { background: linear-gradient(90deg, #ef4444, #f97316); }
.kpi-green::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.kpi-purple::before { background: linear-gradient(90deg, #8b5cf6, #ec4899); }

/* ══════════════════════════════════════════
   CARDS & TABLES
   ══════════════════════════════════════════ */
.card-hover { transition: transform 0.2s ease, box-shadow 0.25s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.table-row-hover { transition: background-color 0.15s ease; }
.table-row-hover:hover { background-color: rgba(59, 130, 246, 0.03); }
.table-row-hover:nth-child(even) { background-color: rgba(248, 250, 252, 0.6); }
.table-row-hover:nth-child(even):hover { background-color: rgba(59, 130, 246, 0.03); }

thead.gradient-header { background: linear-gradient(180deg, #f8fafc, #f1f5f9); }
.sticky-thead th { position: sticky; top: 0; background: linear-gradient(180deg, #f8fafc, #f1f5f9); z-index: 5; }

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn-press { transition: transform 0.1s ease, box-shadow 0.15s ease; }
.btn-press:active { transform: scale(0.96); }

.action-btn { display: inline-flex; align-items: center; padding: 6px 12px; font-size: 0.75rem; font-weight: 500; border-radius: var(--radius-sm); transition: all 0.15s ease; cursor: pointer; }
.action-btn:active { transform: scale(0.95); }

/* ══════════════════════════════════════════
   AVATAR
   ══════════════════════════════════════════ */
.avatar-gradient {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.4);
}

/* ══════════════════════════════════════════
   NOTIFICATION & BADGES
   ══════════════════════════════════════════ */
.badge-pulse { animation: pulse-badge 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse-badge { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.05); } }

.notif-dot {
  position: absolute; top: -2px; right: -2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #ef4444; border: 2px solid white;
  animation: notif-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes notif-ping {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ══════════════════════════════════════════
   STAGGERED ANIMATIONS
   ══════════════════════════════════════════ */
.stagger-fade > * { animation: stagger-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.stagger-fade > *:nth-child(1) { animation-delay: 0s; }
.stagger-fade > *:nth-child(2) { animation-delay: 0.07s; }
.stagger-fade > *:nth-child(3) { animation-delay: 0.14s; }
.stagger-fade > *:nth-child(4) { animation-delay: 0.21s; }
.stagger-fade > *:nth-child(5) { animation-delay: 0.28s; }
.stagger-fade > *:nth-child(6) { animation-delay: 0.35s; }
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════ */
.timeline-dot { position: relative; }
.timeline-dot::before { content: ''; position: absolute; left: 7px; top: 24px; bottom: -12px; width: 2px; background: linear-gradient(180deg, #e2e8f0, transparent); }
.timeline-dot:last-child::before { display: none; }

/* ══════════════════════════════════════════
   FORM INPUTS — premium styling
   ══════════════════════════════════════════ */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 1px 2px rgba(0,0,0,0.04);
}
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="url"], input[type="tel"],
input[type="date"], select, textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
input[type="file"]::file-selector-button { border-radius: var(--radius-sm); transition: background-color 0.15s ease; }

/* ══════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════ */
.login-bg {
  background: linear-gradient(-45deg, #020617, #0f172a, #1e1b4b, #0c1631);
  background-size: 400% 400%;
  animation: login-gradient 20s ease infinite;
}
.login-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}
/* Animated mesh lines */
.login-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 25% 20%, rgba(59,130,246,0.12), transparent),
    radial-gradient(ellipse 40% 50% at 75% 80%, rgba(139,92,246,0.1), transparent),
    radial-gradient(ellipse 35% 30% at 60% 30%, rgba(6,182,212,0.07), transparent);
  pointer-events: none;
  animation: login-mesh 12s ease-in-out infinite alternate;
}
@keyframes login-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes login-mesh {
  0% { opacity: 0.8; }
  100% { opacity: 1; transform: scale(1.05); }
}

.login-orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: float-orb 10s ease-in-out infinite; }
.login-orb-1 { width: 350px; height: 350px; background: rgba(59,130,246,0.15); top: -80px; right: -80px; }
.login-orb-2 { width: 250px; height: 250px; background: rgba(139,92,246,0.12); bottom: -50px; left: -50px; animation-delay: -4s; }
.login-orb-3 { width: 180px; height: 180px; background: rgba(6,182,212,0.1); top: 35%; left: 15%; animation-delay: -7s; }
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(25px, -25px) scale(1.08); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(-20px, -15px) scale(1.03); }
}

/* Login card shine effect */
.login-card-shine {
  position: relative;
  overflow: hidden;
}
.login-card-shine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,0.03) 60deg, transparent 120deg);
  animation: login-shine 8s linear infinite;
}
@keyframes login-shine { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   EMPTY STATES
   ══════════════════════════════════════════ */
.empty-state-icon {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  margin: 0 auto 1rem;
  animation: empty-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
@keyframes empty-bounce { from { transform: scale(0.7) rotate(-5deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }

/* ══════════════════════════════════════════
   SECTION HEADER
   ══════════════════════════════════════════ */
.section-header { position: relative; padding-left: 16px; }
.section-header::before {
  content: '';
  position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--c-brand), var(--c-accent));
}

/* ══════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════ */
.pagination-btn {
  padding: 6px 14px; font-size: 0.8125rem; border-radius: var(--radius-sm);
  border: 1px solid #e5e7eb; transition: all 0.15s ease;
  color: #4b5563; background: #fff;
}
.pagination-btn:hover:not(:disabled) { background: #f9fafb; border-color: #d1d5db; color: #1f2937; }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-current {
  padding: 6px 14px; font-size: 0.8125rem; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--c-brand), #6366f1);
  color: white; font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* ══════════════════════════════════════════
   TEXT & DECORATIVE
   ══════════════════════════════════════════ */
.text-gradient { background: linear-gradient(135deg, var(--c-brand), var(--c-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.link-underline { position: relative; text-decoration: none; }
.link-underline::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--c-brand), var(--c-accent)); border-radius: 1px; transition: width 0.25s ease; }
.link-underline:hover::after { width: 100%; }

.gradient-divider { height: 2px; background: linear-gradient(90deg, transparent, var(--c-brand) 30%, var(--c-accent) 70%, transparent); border: none; margin: 1rem 0; }
.card-divider { height: 1px; background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent); }

/* ══════════════════════════════════════════
   TOOLTIP
   ══════════════════════════════════════════ */
.tooltip-container { position: relative; }
.tooltip-container::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) scale(0.9);
  padding: 5px 12px; background: #0f172a; color: white;
  font-size: 0.7rem; border-radius: var(--radius-sm);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.tooltip-container:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }

/* ══════════════════════════════════════════
   WORKFLOW STEPPER
   ══════════════════════════════════════════ */
.workflow-stepper { display: flex; align-items: flex-start; }
.workflow-step { flex: 1; text-align: center; position: relative; padding: 0 8px; }
.workflow-step:not(:last-child)::after {
  content: ''; position: absolute; top: 20px;
  left: calc(50% + 22px); right: calc(-50% + 22px);
  height: 3px; background: #e2e8f0; border-radius: 2px;
}
.workflow-step.step-done:not(:last-child)::after { background: linear-gradient(90deg, #10b981, #34d399); }
.workflow-step.step-active:not(:last-child)::after { background: linear-gradient(90deg, #f59e0b, #e2e8f0); }
.workflow-node {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; font-weight: 700; font-size: 0.875rem;
  border: 3px solid; transition: all 0.3s ease;
}
.step-pending .workflow-node { background: #f9fafb; border-color: #d1d5db; color: #9ca3af; }
.step-active .workflow-node { background: #fffbeb; border-color: #f59e0b; color: #d97706; box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.12); animation: step-pulse 2s ease infinite; }
.step-done .workflow-node { background: linear-gradient(135deg, #10b981, #059669); border-color: #059669; color: white; box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35); }
.step-refused .workflow-node { background: linear-gradient(135deg, #ef4444, #dc2626); border-color: #dc2626; color: white; box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35); }
@keyframes step-pulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.12); } 50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.05); } }

/* ══════════════════════════════════════════
   TOASTS
   ══════════════════════════════════════════ */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 500; box-shadow: var(--shadow-xl); backdrop-filter: blur(8px); min-width: 280px; max-width: 400px; }
.toast-success { background: linear-gradient(135deg, rgba(16,185,129,0.95), rgba(5,150,105,0.95)); color: white; }
.toast-error { background: linear-gradient(135deg, rgba(239,68,68,0.95), rgba(220,38,38,0.95)); color: white; }
.toast-info { background: linear-gradient(135deg, rgba(59,130,246,0.95), rgba(99,102,241,0.95)); color: white; }

/* ══════════════════════════════════════════
   MISC FOCUS & GLOW
   ══════════════════════════════════════════ */
.input-gradient-focus { position: relative; border-radius: var(--radius-md); }
.input-gradient-focus::before { content: ''; position: absolute; inset: -2px; border-radius: 14px; background: linear-gradient(135deg, var(--c-brand), var(--c-accent), #06b6d4); opacity: 0; transition: opacity 0.2s ease; z-index: -1; }
.input-gradient-focus:focus-within::before { opacity: 1; }

.ring-gradient { position: relative; }
.ring-gradient::before { content: ''; position: absolute; inset: -3px; border-radius: inherit; padding: 3px; background: linear-gradient(135deg, var(--c-brand), var(--c-accent), #ec4899); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.2s; }
.ring-gradient:hover::before, .ring-gradient:focus-within::before { opacity: 1; }

/* ══════════════════════════════════════════
   MAIN BACKGROUND
   ══════════════════════════════════════════ */
.bg-dotted {
  background-color: #f8fafc;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(148,163,184,0.15) 1px, transparent 0);
  background-size: 20px 20px;
}

/* ══════════════════════════════════════════
   GREETING & COUNT-UP
   ══════════════════════════════════════════ */
.greeting-text { animation: greeting-fade 0.6s ease both; }
@keyframes greeting-fade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.count-up { display: inline-block; animation: count-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes count-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ══════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════ */
.alert-success-animated { animation: alert-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes alert-slide-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ══════════════════════════════════════════
   ICON INTERACTIONS
   ══════════════════════════════════════════ */
.icon-bounce:hover [data-lucide] svg, .icon-bounce:hover i { animation: icon-bounce 0.4s ease; }
@keyframes icon-bounce { 0% { transform: scale(1); } 40% { transform: scale(1.2) rotate(-5deg); } 100% { transform: scale(1) rotate(0); } }

/* ══════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════ */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #94a3b8; }
.breadcrumb a { color: #64748b; text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--c-brand); }
.breadcrumb-sep { color: #cbd5e1; }

/* ══════════════════════════════════════════
   UPLOAD ZONE
   ══════════════════════════════════════════ */
.upload-zone {
  border: 2px dashed #cbd5e1; border-radius: var(--radius-lg);
  padding: 2rem; text-align: center;
  transition: all 0.25s ease; cursor: pointer;
  background: rgba(248,250,252,0.5);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--c-brand);
  background: rgba(59, 130, 246, 0.03);
  box-shadow: inset 0 0 20px rgba(59,130,246,0.03);
}

/* ══════════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════════ */
.progress-bar-animated { transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.progress-bar-gradient { background: linear-gradient(90deg, var(--c-brand), var(--c-accent)); border-radius: 999px; }

/* ══════════════════════════════════════════
   HOVER EFFECTS
   ══════════════════════════════════════════ */
.hover-scale { transition: transform 0.2s ease; }
.hover-scale:hover { transform: scale(1.02); }
.fade-up { animation: fade-up 0.4s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 767px) {
  .desktop-sidebar { display: none; }
  .main-content { margin-left: 0 !important; }
}
@media (min-width: 768px) {
  .mobile-hamburger { display: none !important; }
  .sidebar-overlay { display: none !important; }
  .mobile-sidebar { display: none !important; }
}

/* Lucide fix */
[data-lucide] svg { display: inline-block; vertical-align: middle; }
