:root {
  --bg: #0d121a;
  --panel: #131b26;
  --panel-soft: #192332;
  --line: #253449;
  --text: #e5edf7;
  --muted: #9db0c9;
  --accent: #4b8dff;
  --accent-2: #63d3ff;
  --danger: #ff6b7a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: radial-gradient(circle at top right, #182437 0%, var(--bg) 48%);
  color: var(--text);
}

a {
  color: var(--accent-2);
}

.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

.panel {
  padding: 20px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.panel:last-child {
  border-right: none;
}

.sidebar {
  background: linear-gradient(180deg, #111927 0%, #0f1622 100%);
}

h1, h2, h3 {
  margin: 0 0 12px;
}

.status-line {
  color: var(--muted);
  margin-bottom: 14px;
}

.side-links {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.link-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  text-decoration: none;
}

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

li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
}

li.active {
  border-color: var(--accent);
  background: #173055;
}

.card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

input[type="text"],
input[type="password"],
input[type="file"],
select {
  background: #101826;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  min-height: 36px;
  padding: 7px 10px;
}

input[type="text"],
input[type="password"] {
  flex: 1;
}

button {
  cursor: pointer;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #22324b;
  color: var(--text);
  padding: 7px 12px;
}

button:hover {
  border-color: var(--accent);
}

small {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 9px 6px;
}

thead th {
  color: var(--muted);
  font-weight: 600;
}

.progress-wrap {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

progress {
  width: 100%;
  height: 12px;
  border-radius: 8px;
  overflow: hidden;
}

progress::-webkit-progress-bar {
  background: #0f1622;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.perm-form {
  display: grid;
  gap: 8px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-panel {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .panel {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}
