:root {
  color-scheme: dark;
}

body {
  background: #000;
  color: #E8B84A;
  font-family: Consolas, 'Courier New', monospace;
  margin: 0;
  padding: 0;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px;
}

.wrap.wide {
  max-width: 760px;
}

.page-layout {
  display: flex;
  min-height: 100vh;
}

.app-switcher {
  flex: 0 0 180px;
  width: 180px;
  background: #0a0704;
  border-right: 1px solid #6b4f1a;
  padding: 24px 16px;
  box-sizing: border-box;
}

.app-switcher-title {
  color: #6b4f1a;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.app-switcher a {
  display: block;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 4px;
  text-decoration: none;
  color: #E8B84A;
}

.app-switcher a:hover {
  background: #1b1409;
}

.app-switcher a.active {
  background: #FFB020;
  color: #000;
  font-weight: bold;
}

.page-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .page-layout {
    flex-direction: column;
    min-height: 0;
  }

  .app-switcher {
    width: auto;
    flex: none;
    border-right: none;
    border-bottom: 1px solid #6b4f1a;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
  }

  .app-switcher-title {
    display: none;
  }

  .app-switcher a {
    margin-bottom: 0;
    white-space: nowrap;
  }
}

h1, h2 {
  color: #FFB020;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 20px;
}

a {
  color: #FFB020;
}

.card {
  background: #14100a;
  border: 1px solid #6b4f1a;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  color: #6b4f1a;
  font-size: 13px;
}

input {
  width: 100%;
  box-sizing: border-box;
  background: #000;
  border: 1px solid #6b4f1a;
  color: #E8B84A;
  padding: 8px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #FFB020;
}

button {
  margin-top: 18px;
  background: #FFB020;
  color: #000;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

button.secondary {
  background: transparent;
  color: #FFB020;
  border: 1px solid #6b4f1a;
}

.error {
  color: #FF5C5C;
  margin-top: 12px;
}

.hint {
  color: #6b4f1a;
  font-size: 12px;
  margin-top: 8px;
}

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

th, td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #6b4f1a;
}

th {
  color: #6b4f1a;
  font-weight: normal;
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.badge.admin {
  background: #FFB020;
  color: #000;
}

.badge.online {
  background: #39FF6A;
  color: #000;
}

.badge.offline {
  background: #333;
  color: #999;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

nav {
  margin-bottom: 24px;
}

nav a {
  margin-right: 16px;
  text-decoration: none;
}
