body:has(.details-dialog .card) {
  overflow: hidden;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.user-filter {
  max-width: 450px;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

::placeholder{
  color: #bfbfbf !important;
}

.card {
  box-shadow: 0.2rem 0.2rem 0.2rem rgba(0, 0, 0, 0.1);
}

.card-body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  word-break: break-word;
}

.details-dialog.toggle {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  .card {
    position: relative;
    max-width: 80%;
    width: 550px;

    .card-body {
      flex-direction: column;
    }

    .btn {
      position: absolute;
      right: 1rem;
      top: 1rem;
    }
  }
}

.pagination {
  padding-block: 2rem;
  display: flex;
  justify-content: center;
}

.disabled {
  opacity: 0.3;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
  color: transparent;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


@media (max-width: 768px) {
  .header-container {
    justify-content: center;
  }

  .logo {
    text-align: center;
    margin-bottom: 1rem;
  }
}
