/* Hytale Panel - Clean Dark Theme */
:root {
  --bg: #0f172a;
  --card: #1e293b;
  --border: #334155;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --dim: #94a3b8;
  --text: #f1f5f9;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

/* Status indicators */
.status-online {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}
.status-offline {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px var(--accent); }
  50%      { box-shadow: 0 0 16px var(--accent), 0 0 24px var(--accent); }
}

/* Buttons */
.btn-primary {
  background: var(--accent); color: white; font-weight: 600;
  border-radius: 0.5rem; transition: background 0.15s;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-danger {
  background: #ef4444; color: white; font-weight: 600;
  border-radius: 0.5rem; transition: background 0.15s;
}
.btn-danger:hover:not(:disabled) { background: #dc2626; }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-warning {
  background: #f59e0b; color: white; font-weight: 600;
  border-radius: 0.5rem; transition: background 0.15s;
}
.btn-warning:hover:not(:disabled) { background: #d97706; }
.btn-warning:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: var(--border); color: var(--text); font-weight: 500;
  border-radius: 0.5rem; transition: background 0.15s;
}
.btn-secondary:hover:not(:disabled) { background: #475569; }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Form inputs */
input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 0.5rem;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}
input:disabled, select:disabled, textarea:disabled {
  opacity: 0.6; cursor: not-allowed;
}

/* Console */
.console-box {
  background: #020617;
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #e2e8f0;
}
.console-line { color: #a3e635; word-break: break-word; }

/* Progress bars */
.progress-bg {
  background: var(--bg);
  border-radius: 0.25rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 0.25rem;
  transition: width 0.5s ease;
}

/* Sidebar */
.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}
.sidebar.open { transform: translateX(0); }
@media (min-width: 768px) {
  .sidebar { transform: translateX(0) !important; }
  .sidebar-overlay { display: none !important; }
}

.nav-item {
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.nav-item:hover, .nav-item.active {
  background: rgba(34, 197, 94, 0.08);
  border-left-color: var(--accent);
}
.nav-item:hover svg, .nav-item.active svg { color: var(--accent); }

/* Toast */
.toast {
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: toast-slide 0.3s ease;
}
.toast.error { background: #ef4444; }
.toast.warning { background: #f59e0b; }
@keyframes toast-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Spinner */
.spinner {
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
