:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #e5eefc;
  background: #081120;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1280px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(63, 127, 255, 0.25), transparent 32%),
    linear-gradient(180deg, #081120 0%, #101a30 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
}

#app {
  min-height: 100vh;
}

.page {
  min-height: 100vh;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border: 1px solid rgba(143, 170, 255, 0.2);
  border-radius: 24px;
  background: rgba(9, 18, 36, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(80, 126, 255, 0.16);
  color: #8eb1ff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  color: #f5f8ff;
}

.subtext {
  margin-top: 8px;
  color: #93a4c8;
  font-size: 14px;
}

.form,
.sidebar-actions,
.pagination-card {
  display: grid;
  gap: 16px;
}

.form {
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #c1d2f5;
  font-size: 14px;
}

.field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(143, 170, 255, 0.2);
  border-radius: 12px;
  background: rgba(11, 24, 46, 0.92);
  color: #f5f8ff;
  outline: none;
}

.field input:focus {
  border-color: #4b80ff;
  box-shadow: 0 0 0 3px rgba(75, 128, 255, 0.18);
}

.primary-button,
.secondary-button,
.ghost-button,
.log-list-item {
  border-radius: 12px;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 44px;
  padding: 0 16px;
}

.primary-button {
  background: linear-gradient(135deg, #4b80ff 0%, #7c6bff 100%);
  color: #ffffff;
  font-weight: 600;
}

.secondary-button {
  background: rgba(75, 128, 255, 0.14);
  color: #d7e3ff;
  border: 1px solid rgba(75, 128, 255, 0.24);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.04);
  color: #d7e3ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.log-list-item:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.message {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.message-info {
  background: rgba(88, 130, 255, 0.1);
  color: #c8d7ff;
}

.message-success {
  background: rgba(30, 173, 110, 0.12);
  color: #8ae0b9;
}

.message-error {
  background: rgba(255, 89, 89, 0.12);
  color: #ffadad;
}

.admin-page {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  padding: 20px;
}

.sidebar,
.content {
  border: 1px solid rgba(143, 170, 255, 0.14);
  border-radius: 24px;
  background: rgba(8, 17, 32, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.sidebar {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 16px;
  padding: 24px;
}

.pagination-card {
  grid-template-columns: repeat(2, 1fr);
}

.compact-field input {
  height: 40px;
}

.log-list {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: calc(100vh - 320px);
  overflow: auto;
}

.log-list-item {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #edf3ff;
  text-align: left;
  border: 1px solid transparent;
  word-break: break-all;
}

.log-list-item.active {
  border-color: rgba(75, 128, 255, 0.45);
  background: rgba(75, 128, 255, 0.16);
}

.content {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
  padding: 24px;
  min-width: 0;
}

.content-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.log-content {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: #050b16;
  color: #dbe8ff;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  body {
    min-width: 0;
  }

  .admin-page {
    grid-template-columns: 1fr;
  }

  .log-list {
    max-height: 320px;
  }
}
