:root {
  --bg-color: #0f172a; /* Slate 900 */
  --panel-bg: rgba(30, 41, 59, 0.8); /* Slate 800 with opacity */
  --text-color: #f8fafc; /* Slate 50 */
  --primary: #6366f1; /* Indigo 500 */
  --success: #10b981; /* Emerald 500 */
  --danger: #ef4444; /* Red 500 */
  --border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-color);
  margin: 0;
  padding: 20px;
}

#app {
  max-width: 1000px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.card {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.login-card {
  max-width: 400px;
  margin: 100px auto;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  box-sizing: border-box;
}

.btn {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  background: #4b5563;
  color: white;
}

.btn.primary { background: var(--primary); }
.btn.success { background: var(--success); }
.btn.danger { background: var(--danger); }

.btn:hover { opacity: 0.9; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.server-card {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.server-card h3 { margin-top: 0; }

.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.status.running { background: var(--success); color: #fff; }
.status.stopped { background: #6b7280; color: #fff; }

.actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-color);
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.tab-content {
  display: none;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
  display: block;
}

.terminal {
  background: rgba(0, 0, 0, 0.6);
  color: #4ade80; /* Emerald 400 */
  font-family: monospace;
  padding: 15px;
  height: 400px;
  overflow-y: auto;
  border-radius: 4px;
  white-space: pre-wrap;
  border: 1px solid var(--border);
}

.terminal-actions {
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}

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

.list li {
  padding: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  margin-bottom: 5px;
  border-radius: 4px;
}

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 8px;
  width: 500px;
  max-width: 90%;
  border: 1px solid var(--border);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.error { color: var(--danger); }
.mt-2 { margin-top: 10px; }
.mb-2 { margin-bottom: 10px; }
