:root {
  --bg: #edf2f7;
  --card: #ffffff;
  --ink: #0f172a;
  --accent: #0f766e;
  --line: #d7e0ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top left, #f8fafc 0%, #eef3f9 40%, var(--bg) 100%);
  color: var(--ink);
  line-height: 1.45;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

.site-header h1 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.2px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

nav a,
button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.94rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

nav a:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

button {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.container {
  max-width: 1260px;
  margin: 1.7rem auto;
  padding: 0 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.inline-form {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.create-user-form .inline-form {
  display: flex;
  margin-bottom: 0.5rem;
  align-items: center;
}

.create-user-form label {
  min-width: 150px;
  font-weight: 600;
}

.create-user-form input[type="text"],
.create-user-form input[type="email"],
.create-user-form input[type="password"] {
  min-width: 280px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.user-table th,
.user-table td {
  border: 1px solid var(--line);
  padding: 0.62rem;
  text-align: left;
  vertical-align: top;
}

.user-table th {
  background: #f8fafc;
  font-size: 0.9rem;
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.messages li {
  border: 1px solid var(--line);
  padding: 0.65rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: #fff;
}

@media (max-width: 800px) {
  .site-header {
    flex-direction: column;
  }

  .user-table,
  .user-table thead,
  .user-table tbody,
  .user-table th,
  .user-table td,
  .user-table tr {
    display: block;
  }

  .user-table thead {
    display: none;
  }

  .user-table tr {
    border: 1px solid var(--line);
    margin-bottom: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
  }

  .user-table td {
    border: none;
    border-bottom: 1px solid var(--line);
  }
}
