* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  background-color: #0a0a0a;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

hr {
  width: 100%;
  border: none;
  border-top: 1px solid #333;
  margin: 1.5rem 0;
}

.container {
  width: 100%;
  max-width: 800px;
  background-color: #131313;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.login-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.title {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
}

.form-block {
  width: 100%;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}

.control-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  color: #b0b0b0;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 8px;
  background-color: #1e1e1e;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-control:focus {
  box-shadow: 0 0 0 2px #4a6fa5;
}

.form-control--images {
  cursor: pointer;
}

.submit-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  background-color: #4a6fa5;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
  align-self: center;
}

.submit-btn:hover {
  background-color: #5a80b5;
  transform: translateY(-1px);
}

.users-container {
  width: 100%;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.user-card {
  background-color: #131313;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s ease;
  border: 1px solid #252525;
  position: relative;
}

.user-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  border-color: #4a6fa5;
}

.user-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.user-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.user-card p,
.user-card span {
  font-size: 0.9rem;
  color: #b0b0b0;
  line-height: 1.5;
}

.user-card span {
  word-break: break-all;
}

.user-card-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.btn-edit,
.btn-remove {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-edit {
  background-color: #4a6fa5;
  color: white;
}

.btn-edit:hover {
  background-color: #5a80b5;
}

.btn-remove {
  background-color: #8a4a4a;
  color: white;
}

.btn-remove:hover {
  background-color: #9a5a5a;
}

.edit-form-dialog  {
  width: 90%;
  max-width: 500px;
  border: none;
  border-radius: 12px;
  padding: 2rem;
  background-color: #131313;
  color: #e0e0e0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 1000;
}


.edit-form-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.close-edit-form-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: #8a4a4a;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-edit-form-btn:hover {
  background-color: #9a5a5a;
}

@media (max-width: 640px) {
  body {
    padding: 1rem;
  }

  .container {
    padding: 1.5rem;
  }

  .title {
    font-size: 1.8rem;
  }

  .users-container {
    grid-template-columns: 1fr;
  }

  .user-card {
    padding: 1.2rem;
  }

  .edit-form-dialog {
    padding: 1.5rem;
    width: 95%;
  }
}
