:root {
      --bg: #f4f7fb;
      --primary: #2563eb;
      --success: #16a34a;
      --warning: #eab308;
      --danger: #dc2626;
      --orange: #f97316;
    }

    body {
      background: var(--bg);
      font-family: "Inter", "Segoe UI", Arial, sans-serif;
      margin: 0;
      padding: 0;
    }

    /* HEADER */
    .dashboard-header {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 16px 24px;
      background: #ffffff;
      border-bottom: 2px solid #e5e7eb;
    }

    .dashboard-header img {
      height: 55px;
    }

    .dashboard-header h1 {
      font-size: 20px;
      font-weight: 700;
      color: #0f172a;
      margin: 0;
    }

    /* MOBILE VIEW: KEEP LEFT–RIGHT */
    @media (max-width: 576px) {
      .dashboard-header {
        flex-direction: row;
        /* keep horizontal */
        justify-content: space-between;
      }

      .dashboard-header img {
        height: 42px;
      }

      .dashboard-header h1 {
        font-size: 15px;
        text-align: right;
      }

    }

    @media (max-width: 300px) {
      .dashboard-header {
        flex-direction: row;
        /* keep horizontal */
        justify-content: space-between;
      }

      .dashboard-header img {
        height: 42px;
      }

      .dashboard-header h1 {
        font-size: 15px;
        text-align: right;
      }

    }

    @media (max-width: 360px) {
      .dashboard-header h1 {
        font-size: 16px;
      }
    }

    .dashboard-header h1 {
      white-space: nowrap;
    }

    /* MOBILE OPTIMIZATION */
    @media (max-width: 576px) {
      .dashboard-header {
        flex-direction: column;
        text-align: center;
      }

      .dashboard-header h1 {
        font-size: 20px;
      }

      .stat-card {
        height: 105px;
      }

      .stat-count {
        font-size: 30px;
      }
    }

    @media (max-width: 300px) {
      .dashboard-header {
        flex-direction: column;
        text-align: center;
      }

      .dashboard-header h1 {
        font-size: 20px;
      }

      .stat-card {
        height: 105px;
      }

      .stat-count {
        font-size: 30px;
      }
    }

    /* LOCATION BLOCK */
    .location-block {
      background: #ffffff;
      border-radius: 14px;
      padding: 16px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    }

    .location-title {
      font-size: 18px;
      font-weight: 700;
      color: #1e293b;
    }

    .total-count {
      font-size: 14px;
      color: #64748b;
      margin-bottom: 12px;
      display: block;
    }

    /* CARD */
    .stat-card {
      height: 120px;
      border-radius: 12px;
      color: #ffffff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
      transition: transform 0.2s ease;
    }

    .stat-card:hover {
      transform: translateY(-4px);
    }

    .stat-icon {
      font-size: 28px;
      margin-bottom: 6px;
      opacity: 0.9;
    }

    .stat-count {
      font-size: 24px;
      font-weight: 800;
      line-height: 1;
    }

    .stat-label {
      font-size: 14px;
      font-weight: 500;
      margin-top: 4px;
      opacity: 0.95;
    }

    /* COLORS */
    .present {
      background: linear-gradient(135deg, #22c55e, #15803d);
    }

    .remote {
      background: linear-gradient(135deg, #fde047, #facc15);
      color: #1f2933;
    }

    .leave {
      background: linear-gradient(135deg, #fb7185, #be123c);
    }

    .notin {
      background: linear-gradient(135deg, #fdba74, #ea580c);
    }

     .collapse {
      display: none;
    }

    .collapse.show {
      display: block;
    }

    .location-block .badge {
      font-size: 0.8rem;
    }
    .total-employee-card {
  border-radius: 16px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
}

.total-employee-card .label {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

.total-employee-card .count {
  font-size: 1rem;
  font-weight: 700;
  margin: 8px 0;
}

.total-employee-card .date {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* 📱 Mobile tweaks */
@media (max-width: 576px) {
  .total-employee-card .count {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .total-employee-card {
    padding: 12px;
    border-radius: 14px;
    width: 100%;
  }

  .total-employee-card .label {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }

  .total-employee-card .count {
    font-size: 1.8rem;
    margin: 4px 0;
  }

  .total-employee-card .date {
    font-size: 0.7rem;
  }
}

/* ===== LOADER ===== */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
