* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
  background: #1e1e2e;
  min-height: 100vh;
  padding: 20px;
  color: #e0e0e0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: #1e1e2e;
  border-radius: 25px;
  box-shadow: 9px 9px 18px #141421, -9px -9px 18px #29293d;
  overflow: hidden;
  padding-bottom: 20px;
}

.header {
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid #2f2f42;
}

.header h1 {
  font-size: 2.3rem;
  font-weight: 700;
  color: #a78bfa;
  margin-bottom: 10px;
}

.header p {
  font-size: 1rem;
  opacity: 0.8;
  color: #cbd5e1;
}

.content {
  padding: 30px;
}

.form-section {
  background: #1e1e2e;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 25px;
  box-shadow: inset 5px 5px 10px #141421, inset -5px -5px 10px #29293d;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-input,
.form-group input {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 15px;
  background: #1e1e2e;
  font-size: 1rem;
  color: #e0e0e0;
  box-shadow: inset 4px 4px 8px #141421, inset -4px -4px 8px #29293d;
  transition: all 0.2s ease-in-out;
}

.search-input:focus,
.form-group input:focus {
  outline: none;
  color: #fff !important;
  box-shadow: inset 2px 2px 6px #141421, inset -2px -2px 6px #29293d,
    0 0 0 3px #a78bfa4d;
}

.form-group {
  display: grid;
  gap: 5px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 600;
  color: #cbd5e1;
}

.btn {
  height: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 15px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background: #1e1e2e;
  color: #e0e0e0;
  box-shadow: 6px 6px 12px #141421, -6px -6px 12px #29293d;
}

.btn:active {
  box-shadow: inset 4px 4px 8px #141421, inset -4px -4px 8px #29293d;
  transform: translateY(2px);
}

.btn-primary {
  color: #a78bfa;
}

.btn-secondary {
  color: #b9b9ba;
}

.btn-danger {
  color: #f87171;
}

.btn-edit {
  color: #a78bfa;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.user-card {
  background: #1e1e2e;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 8px 8px 16px #141421, -8px -8px 16px #29293d;
  transition: all 0.3s ease;
}

.user-card:hover {
  transform: translateY(-3px);
}

.user-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.user-detail {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.user-detail strong {
  color: #e0e0e0;
}

.user-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.error-message {
  color: #f87171;
}

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #94a3b8;
}

.modal,
.modal-edit {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f0f19cc;
  z-index: 1000;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1e1e2e;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 10px 10px 20px #141421, -10px -10px 20px #29293d;
  width: 90%;
  max-width: 500px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  color: #a78bfa;
}

.close-btn,
.close-btn-edit {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #94a3b8;
}

.close-btn:hover,
.close-btn-edit:hover {
  color: #f87171;
}

@media (max-width: 768px) {
  .form-section,
  .users-grid {
    grid-template-columns: 1fr;
  }

  .user-actions {
    flex-direction: column;
  }

  .content {
    padding: 20px;
  }

  body {
    padding: 0;
  }

  .form-section .btn-primary {
    width: 100%;
  }
}
