
/* =========================================================
   Premium Dashboard Enhancements (Imported from HR Dashboard)
========================================================= */

  body { background: #f4f6fb !important;  color: #1e293b; }
  .bg-light { background: #f4f6fb !important; }

  /* ── Hero Header ─────────────────────────────── */
  .dashboard-hero {
    background: linear-gradient(135deg, #00256A 0%, #00409a 60%, #1a5cbf 100%);
    border-radius: 20px; padding: 28px 32px 26px;
    position: relative; overflow: hidden; margin-bottom: 28px;
  }
  .dashboard-hero::after {
    content: '';
    position: absolute; width: 380px; height: 380px; top: -120px; right: -80px;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px; padding: 4px 14px;
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.9);
    letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 10px;
  }
  .hero-title {
    font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 5px;
  }
  .hero-subtitle { color: rgba(255,255,255,0.65); font-size: 13.5px; margin: 0; }
  .hero-welcome { color: rgba(255,255,255,0.9); font-weight: 600; }

  /* ── Action Buttons ──────────────────────────── */
  .btn-action {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
    color: #fff; border-radius: 10px; padding: 7px 14px;
    font-size: 12.5px; font-weight: 500; text-decoration: none;
    transition: all 0.2s ease; cursor: pointer; white-space: nowrap;
  }
  .btn-action:hover { background: rgba(255,255,255,0.24); color: #fff; transform: translateY(-1px); }
  .btn-action.primary-cta {
    background: #fff; color: #00256A; border-color: transparent; font-weight: 600;
  }
  .btn-action.primary-cta:hover { background: #e8eeff; color: #00256A; }
  .btn-action.red-cta {
    background: rgba(239,68,68,0.15); border-color: rgba(255,120,120,0.4); color: #fca5a5;
  }
  .btn-action.red-cta:hover { background: rgba(239,68,68,0.3); color: #fff; }

  /* ── Stat Cards ──────────────────────────────── */
  .stat-card-premium {
    background: #fff;
    border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 22px 24px; position: relative; overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .stat-card-premium:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,37,106,0.1); }
  .stat-card-premium .stat-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 14px;
  }
  .stat-card-premium .stat-value {
    font-size: 32px; font-weight: 800; color: #00256A; line-height: 1;
  }
  .stat-card-premium .stat-label {
    font-size: 12px; color: #94a3b8; font-weight: 500;
    margin-top: 4px; text-transform: uppercase; letter-spacing: 0.4px;
  }
  .stat-card-premium .stat-accent { position: absolute; right: 0; top: 0; width: 4px; height: 100%; border-radius: 0 16px 16px 0; }

  /* ── Section Cards ───────────────────────────── */
  .section-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; }
  .section-header {
    background: #f8faff; border-bottom: 1px solid #e8eef8;
    padding: 14px 20px; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; flex-wrap: wrap;
  }
  .section-title-text {
    font-size: 14px; font-weight: 700; color: #1e293b;
    display: flex; align-items: center; gap: 8px;
  }
  .dot-indicator { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

  /* ── Leaderboard Table ───────────────────────── */
  .leader-table { width: 100%; border-collapse: collapse; }
  .leader-table th {
    background: #f1f5f9; color: #64748b;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    padding: 10px 16px; border-bottom: 1px solid #e2e8f0; white-space: nowrap;
  }
  .leader-table td { padding: 11px 16px; font-size: 13px; color: #475569; border-bottom: 1px solid #f1f5f9; }
  .leader-table tr:last-child td { border-bottom: none; }
  .leader-table tr:hover td { background: #f8faff; }
  .score-pill {
    background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0;
    border-radius: 20px; padding: 2px 12px; font-size: 12px; font-weight: 700;
  }

  /* ── Quick Actions Panel ─────────────────────── */
  .quick-action-item {
    display: flex; align-items: center; gap: 14px;
    background: #f8faff; border: 1px solid #e8eef8;
    border-radius: 12px; padding: 14px 16px; text-decoration: none; color: inherit;
    transition: all 0.2s ease;
  }
  .quick-action-item:hover { background: #eef3ff; border-color: #c7d7ff; color: inherit; }
  .quick-action-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    flex-shrink: 0;
  }
  .quick-action-label { font-size: 13px; font-weight: 600; color: #1e293b; }
  .quick-action-sub   { font-size: 11px; color: #94a3b8; margin-top: 1px; }

  /* ── Alert Box ───────────────────────────────── */
  .alert-pending {
    background: #fff7ed; border: 1px solid #fde68a; border-radius: 12px; padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .alert-clear {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 14px 16px;
  }
  .btn-finalize {
    background: #ef4444; color: #fff; border: none;
    border-radius: 10px; padding: 8px 16px; font-size: 12.5px; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap; transition: background 0.2s;
  }
  .btn-finalize:hover { background: #dc2626; }

  /* ── Search Input ────────────────────────────── */
  .search-wrap { position: relative; }
  .search-wrap .bi-search { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 13px; }
  .search-input {
    border: 1px solid #e2e8f0 !important; border-radius: 10px !important;
    padding: 7px 12px 7px 32px !important; font-size: 13px !important;
    width: 220px !important; color: #1e293b !important;
    background: #fff !important; transition: all 0.2s ease;
  }
  .search-input:focus { border-color: #4f7ef5 !important; box-shadow: 0 0 0 3px rgba(79,126,245,0.15) !important; outline: none !important; }
  .search-input::placeholder { color: #94a3b8 !important; }

  /* ── Evaluations Table ───────────────────────── */
  .eval-table { width: 100%; border-collapse: collapse; }
  .eval-table thead th {
    background: #f1f5f9; color: #64748b;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    padding: 11px 16px; border-bottom: 1px solid #e2e8f0; white-space: nowrap;
  }
  .eval-table tbody td {
    padding: 11px 16px; font-size: 13px; color: #475569;
    border-bottom: 1px solid #f1f5f9; vertical-align: middle;
  }
  .eval-table tbody tr:last-child td { border-bottom: none; }
  .eval-table tbody tr:hover td { background: #f8faff; }

  .emp-name-cell { font-weight: 700; color: #1e293b !important; }
  .branch-tag {
    background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe;
    border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 500;
  }
  .score-chip { font-weight: 700; color: #00256A; }
  .rating-tag { color: #64748b; font-size: 12.5px; }

  /* Status pills */
  .status-pill {
    display: inline-flex; align-items: center; gap: 5px;
    border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 600;
  }
  .sp-dot { width: 6px; height: 6px; border-radius: 50%; }
  .sp-secondary { background: #f1f5f9; color: #64748b; }
  .sp-secondary .sp-dot { background: #94a3b8; }
  .sp-primary   { background: #eff6ff; color: #1d4ed8; }
  .sp-primary   .sp-dot { background: #3b82f6; }
  .sp-warning   { background: #fffbeb; color: #b45309; }
  .sp-warning   .sp-dot { background: #f59e0b; }
  .sp-info      { background: #ecfeff; color: #0e7490; }
  .sp-info      .sp-dot { background: #06b6d4; }
  .sp-danger    { background: #fff1f2; color: #be123c; }
  .sp-danger    .sp-dot { background: #f43f5e; }
  .sp-success   { background: #f0fdf4; color: #15803d; }
  .sp-success   .sp-dot { background: #22c55e; }

  /* Progress mini bar */
  .mini-bar { height: 3px; border-radius: 2px; background: #e2e8f0; margin-top: 5px; width: 100px; }
  .mini-fill { height: 100%; border-radius: 2px; background: #3b82f6; }

  /* Action buttons in table */
  .btn-tbl {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid #e2e8f0; background: #fff;
    color: #64748b; transition: all 0.18s ease; text-decoration: none; font-size: 14px;
  }
  .btn-tbl:hover { transform: scale(1.08); }
  .btn-tbl.view { color: #4f7ef5; border-color: #c7d7ff; }
  .btn-tbl.view:hover { background: #eff6ff; color: #1d4ed8; }
  .btn-tbl.pdf  { color: #ef4444; border-color: #fecaca; }
  .btn-tbl.pdf:hover  { background: #fff1f2; color: #dc2626; }
  .btn-tbl.disabled-tbl { opacity: 0.3; pointer-events: none; }

  /* Row count badge */
  .count-badge {
    background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe;
    border-radius: 20px; padding: 2px 10px; font-size: 11px; font-weight: 600; margin-left: 6px;
  }

  /* ── Modal ───────────────────────────────────── */
  .modal-content { border-radius: 16px; border: 1px solid #e2e8f0; }
  .modal-header { background: #f8faff; border-bottom: 1px solid #e8eef8; border-radius: 16px 16px 0 0; padding: 18px 24px; }
  .modal-body   { padding: 24px; }
  .modal-footer { border-top: 1px solid #e8eef8; padding: 16px 24px; background: #f8faff; border-radius: 0 0 16px 16px; }
  .modal-label  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; margin-bottom: 5px; }

  /* ── Rating Filter ───────────────────────────── */
  .filter-row { display: flex; align-items: center; gap: 10px; background: #f8faff; border: 1px solid #e8eef8; border-radius: 12px; padding: 12px 16px; }
  .filter-label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; }

  /* ── Empty State ─────────────────────────────── */
  .empty-state { padding: 60px 20px; text-align: center; color: #94a3b8; }
  .empty-state i { font-size: 48px; display: block; margin-bottom: 12px; opacity: 0.4; }

  @media (max-width: 768px) {
    .search-input { width: 150px !important; }
    .dashboard-hero { padding: 18px; }
    .hero-title { font-size: 20px; }
  }
