:root {
  --bg: #081833;
  --bg-2: #102a52;
  --text: #0f1f33;
  --card: #ffffff;
  --line: #dbe4f0;
  --ok: #0b8457;
  --warn: #d17e12;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, #1f467e 0%, transparent 30%),
    linear-gradient(150deg, var(--bg), var(--bg-2));
}

.topbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.caption {
  margin: 0 0 8px;
  color: #d1def5;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.topbar h1 {
  margin: 0;
  color: #eef4ff;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #0f3767;
  background: #f0f6ff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 20px;
}

.panel,
.modules,
.users-panel {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid #eff3f9;
  padding: 18px;
  box-shadow: 0 8px 26px rgba(0, 7, 18, 0.25);
}

.panel h2,
.modules h3 {
  margin: 0 0 8px;
}

.panel p {
  margin: 0;
  line-height: 1.5;
}

.modules-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.module-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.module-card h4 {
  margin: 0 0 6px;
}

.module-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.status {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
}

.status-building {
  color: var(--ok);
}

.status-planned {
  color: var(--warn);
}

.users-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.users-header h3 {
  margin: 0;
}

.users-actions {
  display: flex;
  gap: 8px;
}

.users-actions input {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 220px;
  height: 36px;
  padding: 0 10px;
}

.users-actions button {
  border: 0;
  border-radius: 8px;
  background: #0e5fc7;
  color: #fff;
  height: 36px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 600;
}

.users-actions button.ghost {
  background: #f0f6ff;
  color: #113b71;
}

.helper {
  margin: 10px 0;
  font-size: 13px;
}

.users-message {
  min-height: 20px;
  margin-bottom: 8px;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-top: 1px solid #edf2f8;
  padding: 10px 8px;
  text-align: left;
}

td.actions {
  display: flex;
  gap: 8px;
}

td.actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 32px;
  padding: 0 10px;
  background: white;
  cursor: pointer;
}

.tag-active {
  color: var(--ok);
  font-weight: 700;
}

.tag-blocked {
  color: #b64343;
  font-weight: 700;
}
