body {
  margin: 0;
  padding: 0;
}

.EmployeeManagement {
  font-weight: 600;
  display: flex;
  justify-content: center;
}

.employee-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.employee-card {
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 220px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.employee-card:hover,
.employee-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
  border-color: #93c5fd;
  outline: none;
}

.employee-card-image {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e2e8f0;
  margin-bottom: 10px;
}

.employee-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.employee-card-id {
  margin-top: 6px;
  font-size: 0.86rem;
  color: #475569;
  word-break: break-word;
}

.employee-list-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

@media screen and (max-width: 600px) {
  h2,
  h4 {
    font-size: 1.2rem;
  }

  .filter-row {
    flex-wrap: nowrap;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    gap: 0.35rem !important;
  }

  .filter-row .btn {
    flex: 0 0 auto;
  }

  .filter-row .form-control {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    font-size: 0.86rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .floating-navbar .navbar-brand strong {
    font-size: 0.9rem;
  }

  .floating-navbar .icon-button,
  .floating-navbar .nav-link {
    font-size: 0;
  }

  .floating-navbar .icon-button i,
  .floating-navbar .nav-link i {
    font-size: 1.2rem;
  }

  .floating-navbar .d-flex.gap-4 {
    gap: 0.5rem !important;
  }

  .modal-body {
    max-height: 55vh !important;
    overflow-y: auto;
  }

  .modal-body .form-label {
    font-size: 0.8rem;
  }

  .modal-body .form-control {
    font-size: 0.8rem;
    padding: 6px 8px;
  }

  .employee-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .employee-card {
    min-height: 190px;
    padding: 12px 10px;
  }

  .employee-card-image {
    width: 76px;
    height: 76px;
  }

  .employee-card-name {
    font-size: 0.82rem;
  }

  .employee-card-id {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 380px) {
  .employee-card-grid {
    grid-template-columns: 1fr;
  }

  .filter-row .form-control {
    font-size: 0.78rem;
  }
}

.employee-card-skeleton {
  min-height: 220px;
  border-radius: 14px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.2s ease-in-out infinite;
}

.employee-card {
  animation: cardIn 0.35s ease both;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

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