* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

header h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, #00ff88, #00ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.server-info-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.server-info-bar span {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status {
  background: #16213e;
  border: 1px solid #00ff88;
  color: #00ff88;
}

.version {
  background: #16213e;
  border: 1px solid #00ccff;
  color: #00ccff;
}

.port {
  background: #16213e;
  border: 1px solid #ffaa00;
  color: #ffaa00;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.side-panels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  background: #16213e;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #0f3460;
}

.panel h2 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #00ccff;
}

/* Консоль */
.console {
  background: #0d1117;
  border-radius: 8px;
  padding: 12px;
  height: 500px;
  overflow-y: auto;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  margin-bottom: 12px;
  scroll-behavior: smooth;
}

.console .line {
  white-space: pre-wrap;
  word-break: break-all;
}

.console .line.info { color: #8be9fd; }
.console .line.warn { color: #ffb86c; }
.console .line.error { color: #ff5555; }
.console .line.player { color: #50fa7b; }
.console .line.system { color: #bd93f9; }
.console .line.dim { color: #6272a4; }

.console-input {
  display: flex;
  gap: 8px;
}

.console-input input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #0f3460;
  background: #0d1117;
  color: #e0e0e0;
  font-family: monospace;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.console-input input:focus {
  border-color: #00ccff;
}

.console-input button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #00ff88, #00cc66);
  color: #1a1a2e;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}

.console-input button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

/* Server Details */
.server-details .info-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info-item {
  background: #0d1117;
  border-radius: 8px;
  padding: 10px 12px;
}

.ip-highlight {
  border: 1px solid #00ff88;
  background: rgba(0, 255, 136, 0.05);
}

.info-label {
  font-size: 0.75rem;
  color: #6272a4;
  display: block;
  margin-bottom: 4px;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0;
}

.ip-value {
  font-size: 1.15rem;
  color: #00ff88;
  font-family: 'Cascadia Code', monospace;
  letter-spacing: 0.5px;
  word-break: break-all;
}

.copy-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #00ff88;
  background: transparent;
  color: #00ff88;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #00ff88;
  color: #1a1a2e;
}

.copy-btn:active {
  transform: scale(0.98);
}

/* Быстрые команды */
.quick-commands {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-commands button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #0f3460;
  background: #0d1117;
  color: #e0e0e0;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.quick-commands button:hover {
  border-color: #00ccff;
  background: #16213e;
  transform: translateX(4px);
}

/* Скроллбар */
.console::-webkit-scrollbar { width: 6px; }
.console::-webkit-scrollbar-track { background: transparent; }
.console::-webkit-scrollbar-thumb { background: #0f3460; border-radius: 3px; }

/* Мобильная версия */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .console { height: 350px; }
}
