/* ================================================================
   ARS Connection — Premium Design Upgrade v2.0
   Glassmorphism · Micro-animations · Premium Components
   ================================================================ */

/* ── Additional Google Font: DM Sans for headings ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Enhanced Design Tokens ── */
:root {
  --primary:        #E11D48;
  --primary-hover:  #BE123C;
  --primary-glow:   rgba(225, 29, 72, 0.25);
  --primary-light:  rgba(225, 29, 72, 0.12);

  /* Richer dark palette */
  --bg:             #08080C;
  --bg-card:        #0F1117;
  --bg-secondary:   #161B27;
  --bg-hover:       #1C2333;
  --bg-input:       #0D1120;
  --bg-glass:       rgba(15, 17, 23, 0.7);

  /* Borders */
  --border:         rgba(255,255,255,0.06);
  --border-light:   rgba(255,255,255,0.10);
  --border-glow:    rgba(225, 29, 72, 0.3);

  /* Text */
  --text:           #F1F5F9;
  --text-muted:     #94A3B8;
  --text-dim:       #475569;

  /* Extended palette */
  --success:   #10B981;
  --warning:   #F59E0B;
  --danger:    #EF4444;
  --info:      #3B82F6;
  --purple:    #8B5CF6;
  --teal:      #06B6D4;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow:     0 4px 20px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 30px var(--primary-glow);

  /* Geometry */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Sidebar */
  --sidebar-width: 260px;
  --header-height: 64px;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.2s var(--ease-out);
  --transition-slow: all 0.35s var(--ease-out);
}

/* ── Base typography upgrade ── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(225,29,72,0.08) 0%, transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .page-title, .card-title, .modal-title {
  font-family: 'DM Sans', 'Inter', sans-serif;
}

/* ══════════════════════════════════════════════════
   SIDEBAR — Premium glassmorphism sidebar
   ══════════════════════════════════════════════════ */

.sidebar {
  background: rgba(9, 10, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 30px rgba(0,0,0,0.3);
}

/* Subtle top gradient accent */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #F97316, var(--purple));
  border-radius: 0;
}

/* Brand area */
.sidebar-brand {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(225,29,72,0.06) 0%, transparent 60%);
}

.brand-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Nav section titles */
.nav-section-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 12px 20px 4px;
  opacity: 0.7;
}

/* Nav links — elevated hover */
.nav-link {
  margin: 1px 10px;
  border-radius: var(--radius-sm);
  border-left: none !important;
  padding: 9px 12px;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-light), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  transform: translateX(2px);
}

.nav-link:hover::before {
  opacity: 0.3;
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(225,29,72,0.25), rgba(225,29,72,0.10));
  border: 1px solid rgba(225,29,72,0.2);
  font-weight: 600;
}

.nav-link.active::before {
  opacity: 1;
}

.nav-link.active svg {
  color: var(--primary);
  filter: drop-shadow(0 0 6px var(--primary));
}

.nav-link svg {
  transition: var(--transition);
  opacity: 0.6;
}

.nav-link:hover svg {
  opacity: 1;
}

/* Sidebar footer user pill */
.sidebar-user {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 10px;
  background: rgba(255,255,255,0.02);
  transition: var(--transition);
}

.sidebar-user:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-light);
}

/* ══════════════════════════════════════════════════
   HEADER — Frosted glass header
   ══════════════════════════════════════════════════ */

.header {
  height: var(--header-height);
  background: rgba(8,8,12,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.2);
}

/* Header search — pill style */
.header-search {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 0 16px;
  gap: 10px;
  transition: var(--transition);
  max-width: 360px;
}

.header-search:focus-within {
  border-color: var(--primary);
  background: rgba(225,29,72,0.05);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.header-search input::placeholder {
  color: var(--text-dim);
  font-size: 13px;
}

/* Role badge in header */
.header-role-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.header-role-badge.role-admin { background: rgba(225,29,72,0.12); color: #E11D48; border-color: rgba(225,29,72,0.2); }
.header-role-badge.role-ceo   { background: rgba(245,158,11,0.12); color: #F59E0B; border-color: rgba(245,158,11,0.2); }
.header-role-badge.role-director { background: rgba(139,92,246,0.12); color: #8B5CF6; border-color: rgba(139,92,246,0.2); }
.header-role-badge.role-manager { background: rgba(59,130,246,0.12); color: #3B82F6; border-color: rgba(59,130,246,0.2); }
.header-role-badge.role-team_leader { background: rgba(16,185,129,0.12); color: #10B981; border-color: rgba(16,185,129,0.2); }
.header-role-badge.role-sales_team { background: rgba(6,182,212,0.12); color: #06B6D4; border-color: rgba(6,182,212,0.2); }
.header-role-badge.role-hr { background: rgba(244,114,182,0.12); color: #F472B6; border-color: rgba(244,114,182,0.2); }

/* Header buttons */
.header-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.header-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-light);
  transform: scale(1.05);
}

/* Notification badge — pulsing */
.notif-count {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: notif-pulse 2s ease-in-out infinite;
}

@keyframes notif-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--primary); }
  50%       { box-shadow: 0 0 14px var(--primary), 0 0 20px rgba(225,29,72,0.4); }
}

/* User menu pill */
.header-user-menu {
  border-radius: 40px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 5px 12px 5px 6px;
  gap: 8px;
  transition: var(--transition);
}

.header-user-menu:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--border-light);
}

/* ══════════════════════════════════════════════════
   CARDS — Premium glassmorphism cards
   ══════════════════════════════════════════════════ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── Stat Cards (Dashboard) ── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition-slow);
  overflow: hidden;
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-card-accent {
  border-left: 2px solid var(--primary);
  background: linear-gradient(135deg, rgba(225,29,72,0.06) 0%, var(--bg-card) 40%);
}

.stat-icon {
  border-radius: var(--radius);
  width: 46px;
  height: 46px;
}

.stat-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ── Mini stats ── */
.mini-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: var(--transition);
}

.mini-stat:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.mini-stat-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
}

/* ══════════════════════════════════════════════════
   BUTTONS — Elevated premium buttons
   ══════════════════════════════════════════════════ */

.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.15s;
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  box-shadow: 0 2px 12px rgba(225,29,72,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
  box-shadow: 0 4px 20px rgba(225,29,72,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
  color: var(--text);
}

.btn-danger {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 2px 12px rgba(239,68,68,0.25);
  border: none;
}

.btn-danger:hover {
  box-shadow: 0 4px 20px rgba(239,68,68,0.4);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 2px 12px rgba(16,185,129,0.25);
  border: none;
}

/* ══════════════════════════════════════════════════
   FORMS — Refined input design
   ══════════════════════════════════════════════════ */

.form-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea,
.modal-form .form-group input,
.modal-form .form-group select,
.modal-form .form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-size: 13px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(225,29,72,0.04);
  box-shadow: 0 0 0 3px rgba(225,29,72,0.12), 0 1px 4px rgba(0,0,0,0.2);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

/* ══════════════════════════════════════════════════
   MODALS — Elevated modal
   ══════════════════════════════════════════════════ */

.modal-overlay {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.03) inset;
  max-width: 620px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, transparent 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-body {
  padding: 24px;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: var(--danger);
}

/* ══════════════════════════════════════════════════
   TOASTS — Premium notification toasts
   ══════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(110%) scale(0.95);
  transition: all 0.35s var(--ease-spring);
  min-width: 280px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toast.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.toast-success { border-left: 3px solid var(--success); }
.toast-success .toast-icon { color: var(--success); }
.toast-error   { border-left: 3px solid var(--danger);  }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info    { border-left: 3px solid var(--info);    }
.toast-info .toast-icon { color: var(--info); }

/* ══════════════════════════════════════════════════
   TABLES — Premium data tables
   ══════════════════════════════════════════════════ */

.data-table {
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s;
}

.data-table tr:hover td {
  background: rgba(255,255,255,0.025);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ══════════════════════════════════════════════════
   AVATARS — Refined with ring
   ══════════════════════════════════════════════════ */

.avatar {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════
   STATUS PILLS & BADGES — Refined
   ══════════════════════════════════════════════════ */

.status-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-green  { background: rgba(16,185,129,0.12);  color: #10B981; border: 1px solid rgba(16,185,129,0.2); }
.badge-yellow { background: rgba(245,158,11,0.12);  color: #F59E0B; border: 1px solid rgba(245,158,11,0.2); }

/* ══════════════════════════════════════════════════
   NOTIFICATIONS PANEL — Glassmorphism dropdown
   ══════════════════════════════════════════════════ */

.notifications-panel {
  position: absolute;
  top: calc(var(--header-height) + 4px);
  right: 12px;
  width: 380px;
  background: rgba(13,17,28,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notif-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.notif-panel-header h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.notif-list {
  overflow-y: auto;
  flex: 1;
}

.notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: background 0.15s;
}

.notif-item:hover  { background: rgba(255,255,255,0.03); }
.notif-item.unread { background: rgba(225,29,72,0.04); }
.notif-item.unread:hover { background: rgba(225,29,72,0.07); }

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.notif-message {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  line-height: 1.4;
}

.notif-time {
  font-size: 10px;
  color: var(--text-dim);
  display: block;
  margin-top: 4px;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ══════════════════════════════════════════════════
   USER DROPDOWN — Glassmorphism
   ══════════════════════════════════════════════════ */

.user-dropdown {
  position: absolute;
  top: calc(var(--header-height) + 4px);
  right: 12px;
  width: 280px;
  background: rgba(13,17,28,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
  animation: dropdownIn 0.2s var(--ease-spring);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(225,29,72,0.06), transparent);
  border-bottom: 1px solid var(--border);
}

.dropdown-name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

.dropdown-email {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

.dropdown-role {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary-light);
  color: var(--primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.dropdown-item.danger:hover {
  background: rgba(239,68,68,0.08);
  color: var(--danger);
}

/* ══════════════════════════════════════════════════
   CAMPAIGN CARDS — Polished
   ══════════════════════════════════════════════════ */

.camp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition-slow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.camp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
}

.camp-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.camp-progress-fill {
  background: linear-gradient(90deg, var(--primary), #F97316);
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(225,29,72,0.3);
}

/* ══════════════════════════════════════════════════
   MESSAGING — Modern chat UI
   ══════════════════════════════════════════════════ */

.messaging-layout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.msg-sidebar {
  background: rgba(255,255,255,0.01);
  border-right: 1px solid var(--border);
}

.msg-contact {
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.msg-contact:hover { background: rgba(255,255,255,0.04); }

.msg-contact.active {
  background: linear-gradient(135deg, rgba(225,29,72,0.12), rgba(225,29,72,0.05));
  border-left: 2px solid var(--primary);
}

.bubble-mine {
  background: linear-gradient(135deg, #E11D48, #BE123C);
  box-shadow: 0 2px 8px rgba(225,29,72,0.25);
}

.bubble-theirs {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
}

/* ══════════════════════════════════════════════════
   KANBAN BOARD — Task cards
   ══════════════════════════════════════════════════ */

.kanban-column {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.kanban-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ══════════════════════════════════════════════════
   EMPLOYEE CARDS — Premium grid
   ══════════════════════════════════════════════════ */

.employee-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
}

.employee-card:hover {
  border-color: rgba(225,29,72,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 0 1px rgba(225,29,72,0.1);
}

/* ══════════════════════════════════════════════════
   LOADER — Smooth spinner
   ══════════════════════════════════════════════════ */

.loader {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.05);
  border-top-color: var(--primary);
  border-right-color: rgba(225,29,72,0.3);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ══════════════════════════════════════════════════
   FILTER BAR — Pill-style controls
   ══════════════════════════════════════════════════ */

.filter-select, .status-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  transition: var(--transition);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
}

.filter-select:focus, .status-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.search-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  background: rgba(225,29,72,0.04);
}

/* ══════════════════════════════════════════════════
   PAGE TRANSITIONS — Refined
   ══════════════════════════════════════════════════ */

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-enter { animation: pageEnter 0.3s var(--ease-out) forwards; }

/* ══════════════════════════════════════════════════
   BROWSER NOTIFICATION PERMISSION BANNER
   ══════════════════════════════════════════════════ */

.notif-permission-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(13,17,28,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9998;
  max-width: 500px;
  width: 90%;
  transition: transform 0.5s var(--ease-spring), opacity 0.4s;
  opacity: 0;
}

.notif-permission-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.notif-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(225,29,72,0.2), rgba(225,29,72,0.08));
  border: 1px solid rgba(225,29,72,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  animation: bellRing 1.5s ease-in-out 0.8s;
}

@keyframes bellRing {
  0%,100% { transform: rotate(0); }
  20%      { transform: rotate(15deg); }
  40%      { transform: rotate(-15deg); }
  60%      { transform: rotate(8deg); }
  80%      { transform: rotate(-5deg); }
}

.notif-banner-text { flex: 1; }
.notif-banner-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; font-family: 'DM Sans', sans-serif; }
.notif-banner-desc  { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.notif-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════
   PUSH NOTIFICATION POPUP (browser-style)
   ══════════════════════════════════════════════════ */

.push-notif-popup {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 340px;
  background: rgba(13,17,28,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.03) inset;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  z-index: 9997;
  transform: translateX(380px);
  opacity: 0;
  transition: all 0.4s var(--ease-spring);
}

.push-notif-popup.show {
  transform: translateX(0);
  opacity: 1;
}

.push-notif-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #E11D48, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(225,29,72,0.3);
}

.push-notif-body { flex: 1; min-width: 0; }
.push-notif-app  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 3px; }
.push-notif-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; font-family: 'DM Sans', sans-serif; }
.push-notif-msg   { font-size: 12px; color: var(--text-muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.push-notif-time  { font-size: 10px; color: var(--text-dim); margin-top: 4px; }

.push-notif-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: var(--transition);
  line-height: 1;
}

.push-notif-close:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ══════════════════════════════════════════════════
   ATTENDANCE CHECK-IN — Hero upgrade
   ══════════════════════════════════════════════════ */

.attendance-hero {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(225,29,72,0.04) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.attendance-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(225,29,72,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.clock-display {
  font-family: 'DM Sans', sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════════
   QUICK ACTIONS — Dashboard grid upgrade
   ══════════════════════════════════════════════════ */

.quick-action-btn {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition-slow);
}

.quick-action-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ══════════════════════════════════════════════════
   EMPTY STATES
   ══════════════════════════════════════════════════ */

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-dim);
}

.empty-state h3 {
  margin: 16px 0 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: var(--text-muted);
}

.empty-state p { font-size: 13px; color: var(--text-dim); }

/* ══════════════════════════════════════════════════
   SCROLLBAR — Premium thin scrollbar
   ══════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ══════════════════════════════════════════════════
   SELECTION
   ══════════════════════════════════════════════════ */

::selection {
  background: rgba(225,29,72,0.3);
  color: #fff;
}

/* ══════════════════════════════════════════════════
   ROLE INDICATOR DOT (sidebar user)
   ══════════════════════════════════════════════════ */

.role-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.role-indicator.role-admin     { background: #E11D48; box-shadow: 0 0 4px #E11D48; }
.role-indicator.role-ceo       { background: #F59E0B; box-shadow: 0 0 4px #F59E0B; }
.role-indicator.role-director  { background: #8B5CF6; box-shadow: 0 0 4px #8B5CF6; }
.role-indicator.role-manager   { background: #3B82F6; box-shadow: 0 0 4px #3B82F6; }
.role-indicator.role-team_leader { background: #10B981; box-shadow: 0 0 4px #10B981; }
.role-indicator.role-sales_team  { background: #06B6D4; box-shadow: 0 0 4px #06B6D4; }
.role-indicator.role-hr          { background: #F472B6; box-shadow: 0 0 4px #F472B6; }
.role-indicator.role-employee    { background: #94A3B8; }

/* ══════════════════════════════════════════════════
   FOCUS VISIBLE — Accessibility
   ══════════════════════════════════════════════════ */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════
   PERFORMANCE BAR CHARTS — Dashboard
   ══════════════════════════════════════════════════ */

.perf-chart-bar {
  background: linear-gradient(180deg, #E11D48, rgba(225,29,72,0.3));
  border-radius: 6px 6px 0 0;
}

/* ══════════════════════════════════════════════════
   SOCIAL POST CARDS
   ══════════════════════════════════════════════════ */

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.post-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════════════
   NOTIFICATION BADGE — Animated ring
   ══════════════════════════════════════════════════ */

@keyframes ring-ping {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(2.2);  opacity: 0; }
}

.notif-btn-wrap {
  position: relative;
}

.notif-btn-wrap::after {
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: ring-ping 1.5s ease-out infinite;
  display: none;
}

.notif-btn-wrap.has-unread::after { display: block; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  #main-content { padding: 16px; }
  .notifications-panel, .user-dropdown { width: calc(100vw - 24px); right: 12px; }
  .toast-container { bottom: 16px; right: 12px; left: 12px; max-width: none; }
  .push-notif-popup { width: calc(100vw - 24px); right: 12px; }
  .notif-permission-banner { bottom: 16px; }
}
