/* KAY People 360 - iOS Liquid Glossy Light Glass Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #f1f4fb;
  --bg-card: rgba(255, 255, 255, 0.68);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(255, 255, 255, 0.85);
  --border-subtle: rgba(203, 213, 225, 0.4);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Brand Gradients */
  --grad-primary: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --grad-logo: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #06b6d4 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-rose: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);

  /* iOS Liquid Gloss Shadows & Specular Reflection */
  --shadow-glass: 0 12px 32px -4px rgba(99, 102, 241, 0.07), 0 4px 12px rgba(15, 23, 42, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  --shadow-gloss: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.05), 0 8px 20px rgba(79, 70, 229, 0.25);
  --shadow-hover: 0 20px 40px -10px rgba(99, 102, 241, 0.15), inset 0 1px 2px #ffffff;

  /* System Access Roles */
  --role-developer: #0891b2;
  --role-super-admin: #d97706;
  --role-admin: #4f46e5;
  --role-user: #059669;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  /* Ambient Floating Liquid Orbs */
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  color: #4f46e5;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
  color: #4338ca;
}

/* App Main Container */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation - iOS Translucent Glossy Glass */
.sidebar {
  width: 265px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-right: 1px solid var(--border-glass);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.03), inset -1px 0 0 rgba(255, 255, 255, 0.8);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  max-height: 100vh;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25);
  border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--grad-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin: 16px 12px 8px;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nav-link.active {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: var(--shadow-gloss);
}

.nav-link.active svg {
  stroke: #ffffff;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.sidebar-user {
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.user-details h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

/* Global Overflow Safety */
html, body {
  overflow-x: hidden;
  width: 100%;
}

.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

/* Main Content Area */
.main-content {
  margin-left: 265px;
  flex: 1;
  padding: 32px 36px;
  width: calc(100% - 265px);
  max-width: calc(100% - 265px);
  min-width: 0;
  box-sizing: border-box;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.page-title h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  background: var(--grad-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-title p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* iPhone Liquid Glossy Glass Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-glass);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}

/* Subtle glossy diagonal sheen overlay */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Grid Layouts & Overflow Protection */
.grid-4, .grid-3, .grid-2 {
  display: grid;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.grid-4 > *, .grid-3 > *, .grid-2 > * {
  min-width: 0;
}

/* --- COMPREHENSIVE LAPTOP & SCREEN RESPONSIVE BREAKPOINTS --- */

/* 1. Large Laptops / Desktops (1367px to 1600px) */
@media (max-width: 1600px) {
  .sidebar {
    width: 245px;
  }
  .main-content {
    margin-left: 245px;
    width: calc(100% - 245px);
    max-width: calc(100% - 245px);
    padding: 28px 30px;
  }
}

/* 2. Standard Laptops (1201px to 1366px - Typical 13.3", 14", 15.6" Windows & Mac Laptops) */
@media (max-width: 1366px) {
  .sidebar {
    width: 230px;
    padding: 20px 12px;
  }
  .brand-text {
    font-size: 17px;
  }
  .nav-link {
    padding: 10px 12px;
    font-size: 13px;
  }
  .main-content {
    margin-left: 230px;
    width: calc(100% - 230px);
    max-width: calc(100% - 230px);
    padding: 24px 22px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .grid-2 {
    gap: 16px;
  }
  .card {
    padding: 20px;
  }
  .table th, .table td {
    padding: 10px 12px;
    font-size: 12px;
  }
  .stat-card {
    padding: 16px;
    gap: 12px;
  }
  .stat-val {
    font-size: 22px;
  }
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* 3. Compact Laptops / 12" Screens / 125%-150% Scale (1025px to 1200px) */
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding: 16px 10px;
  }
  .nav-link {
    padding: 8px 10px;
    font-size: 12px;
    gap: 8px;
  }
  .nav-link svg {
    width: 16px;
    height: 16px;
  }
  .main-content {
    margin-left: 210px;
    width: calc(100% - 210px);
    max-width: calc(100% - 210px);
    padding: 20px 16px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .cups-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}

/* 4. Tablets & Collapsed Sidebar (769px to 1024px) */
@media (max-width: 1024px) {
  .sidebar {
    width: 70px;
    padding: 16px 8px;
  }
  .brand-text, .nav-section-title, .nav-link span, .user-details {
    display: none;
  }
  .nav-link {
    justify-content: center;
    padding: 12px;
  }
  .main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
    max-width: calc(100% - 70px);
    padding: 16px;
  }
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* 5. Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
    max-width: calc(100% - 70px);
    padding: 12px;
  }
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Stat Widget Cards with Liquid Gradient Accents */
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

a.stat-card:hover, a.card-clickable:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15), var(--shadow-hover);
  border-color: rgba(99, 102, 241, 0.35);
}

a.stat-card:hover .stat-icon {
  transform: scale(1.08);
  transition: transform 0.2s ease;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.stat-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Glossy Role Badges */
.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.badge-developer { background: rgba(8, 145, 178, 0.12); color: #0891b2; border: 1px solid rgba(8, 145, 178, 0.3); }
.badge-super_admin { background: rgba(217, 119, 6, 0.12); color: #d97706; border: 1px solid rgba(217, 119, 6, 0.3); }
.badge-admin { background: rgba(79, 70, 229, 0.12); color: #4f46e5; border: 1px solid rgba(79, 70, 229, 0.3); }
.badge-user { background: rgba(5, 150, 105, 0.12); color: #059669; border: 1px solid rgba(5, 150, 105, 0.3); }

/* iOS Glossy Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--grad-logo);
  color: #ffffff !important;
  box-shadow: var(--shadow-gloss);                                                                                                                
}

.btn-primary:hover, .btn-primary:focus, a.btn-primary:hover, a.btn-primary:focus {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.35), inset 0 1px 0 #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main) !important;
  border: 1px solid var(--border-glass);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 #ffffff;
}

.btn-secondary:hover, .btn-secondary:focus, a.btn-secondary:hover, a.btn-secondary:focus {
  color: var(--text-main) !important;
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-danger {
  background: var(--grad-rose);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}

.btn-danger:hover, .btn-danger:focus, a.btn-danger:hover, a.btn-danger:focus {
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

/* Glass Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.table th {
  padding: 14px 18px;
  background: rgba(241, 245, 249, 0.6);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.5);
}

/* Inputs & Form Controls */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

select.form-control option {
  background: #ffffff;
  color: var(--text-main);
}

/* Alert Banners */
.alert {
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-glass);
}

.alert-success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: #047857; }
.alert-error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: #b91c1c; }
.alert-warning { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); color: #b45309; }
.alert-info { background: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.3); color: #0369a1; }

/* Role Access Banner */
.role-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}

/* Rewards Cups Showcase System */
.cups-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .cups-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cup-card {
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
  border: none;
  background: transparent;
  box-shadow: none;
}

.cup-card.unlocked {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cup-card.locked {
  opacity: 0.45;
}

.cup-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 3px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cup-count-badge {
  font-size: 9px;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 2px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}

.cup-count-badge.locked-badge {
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.2);
}

.history-badge {
  font-weight: 800;
  font-size: 13px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Trophy Image Native Alpha Transparent Styling & Compact Sizes (44px) */
.trophy-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  transition: transform 0.25s ease;
}

.trophy-img:hover {
  transform: scale(1.15) translateY(-3px);
}

.trophy-img-sm {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  vertical-align: middle;
}

/* History Timeline & Item Layout */
.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.history-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.history-item:hover {
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* Interactive History Tabs */
.history-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  overflow-x: auto;
}

.history-tab-btn {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.history-tab-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
}

.history-tab-btn.active {
  background: var(--grad-logo);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.period-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.period-badge-quarter { background: rgba(99, 102, 241, 0.12); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.25); }
.period-badge-half { background: rgba(236, 72, 153, 0.12); color: #ec4899; border: 1px solid rgba(236, 72, 153, 0.25); }
.period-badge-year { background: rgba(6, 182, 212, 0.12); color: #0891b2; border: 1px solid rgba(6, 182, 212, 0.25); }

/* Sub Filter Period Pills */
.sub-filter-pill {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sub-filter-pill:hover {
  background: #ffffff;
  color: var(--text-main);
}

.sub-filter-pill.active {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Dashboard Employee Search & Selection Console */
.dash-emp-console {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-glass);
  position: relative;
}

.dash-emp-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: center;
}

@media (max-width: 768px) {
  .dash-emp-search-row {
    grid-template-columns: 1fr;
  }
}

.dash-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dash-search-input-wrap .search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.dash-search-input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.dash-search-input:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.dash-emp-select {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-emp-select:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Spotlight Card for Selected Employee */
.dash-emp-spotlight {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fadeInSpotlight 0.3s ease-out;
}

@keyframes fadeInSpotlight {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .dash-emp-spotlight {
    flex-direction: column;
    align-items: flex-start;
  }
}




