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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0014;
  color: #DDE0F0;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* Navbar */
.navbar {
  background: #12121e;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #00e5ff;
  box-shadow: 0 2px 20px rgba(0, 229, 255, 0.3);
}
.nav-brand {
  font-size: 20px;
  font-weight: 700;
  color: #00e5ff;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}
.nav-user {
  color: #DDE0F0;
  font-size: 14px;
}

/* Login */
.login-card {
  max-width: 400px;
  margin: 120px auto;
  text-align: center;
  background: #12121e;
  padding: 48px 32px;
  border-radius: 12px;
  border: 1px solid #00e5ff;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}
.login-card h1 {
  font-size: 32px;
  color: #00e5ff;
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}
.login-card p {
  color: #888;
  margin-bottom: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-twitch { background: #9147ff; color: #fff; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, #00e5ff, #0099cc);
  color: #0a0014;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}
.btn-primary:hover { box-shadow: 0 0 25px rgba(0, 229, 255, 0.5); }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn:not(.btn-twitch):not(.btn-primary):not(.btn-danger) { background: #1a1a2e; color: #DDE0F0; border: 1px solid #2a2a3e; }

/* Container */
.container { max-width: 900px; margin: 0 auto; padding: 24px; }

/* Status bar */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #12121e;
  border-radius: 8px;
  border: 1px solid #1a1a2e;
}

/* Overlay info */
.overlay-info {
  margin-bottom: 24px;
  padding: 16px;
  background: #12121e;
  border-radius: 8px;
  border: 1px solid #00e5ff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}
.overlay-info h3 { color: #00e5ff; margin-bottom: 8px; }
.overlay-info label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 8px; }
.overlay-url-row { display: flex; gap: 8px; }
.overlay-url-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #00e5ff;
  border-radius: 4px;
  background: #0a0014;
  color: #ffaa00;
  font-family: monospace;
  font-size: 13px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}
.tab {
  padding: 10px 20px;
  background: #12121e;
  border: 1px solid #1a1a2e;
  border-radius: 6px 6px 0 0;
  color: #888;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.tab.active {
  background: #0a0014;
  border-color: #00e5ff;
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-header h2 { font-size: 18px; }

/* Commands table */
.commands-table {
  width: 100%;
  border-collapse: collapse;
}
.commands-table th, .commands-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #1a1a2e;
}
.commands-table th {
  color: #00e5ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cmd-name { font-weight: 600; color: #00e5ff; font-family: monospace; }
.cmd-response {
  max-width: 400px;
  color: #aaa;
  font-size: 13px;
  line-height: 1.4;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-info { background: #15689A; color: #fff; }
.badge-stream_info { background: linear-gradient(135deg, #00e5ff, #0099cc); color: #0a0014; }
.badge-fun { background: linear-gradient(135deg, #ffaa00, #ff6600); color: #0a0014; }
.badge-custom { background: #2ecc71; color: #fff; }

/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: #1a1a2e; border-radius: 11px; cursor: pointer; transition: 0.3s;
  border: 1px solid #2a2a3e;
}
.toggle-slider::before {
  content: ""; position: absolute; height: 16px; width: 16px;
  left: 3px; bottom: 3px; background: #666; border-radius: 50%; transition: 0.3s;
}
.toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, #00e5ff, #0099cc);
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); background: #fff; }

/* Add command form */
.add-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: #12121e;
  border-radius: 8px;
  border: 1px solid #1a1a2e;
}
.add-form input {
  padding: 8px 12px;
  border: 1px solid #2a2a3e;
  border-radius: 4px;
  background: #0a0014;
  color: #DDE0F0;
  font-size: 13px;
}
.add-form input:focus {
  outline: none;
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}
.add-form input:first-child { flex: 0 0 150px; }

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.full-width { grid-column: span 2; }
.form-group label { font-size: 12px; color: #00e5ff; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input {
  padding: 10px 12px;
  border: 1px solid #2a2a3e;
  border-radius: 6px;
  background: #12121e;
  color: #DDE0F0;
  font-size: 14px;
}
.form-group input:focus {
  outline: none;
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.muted { color: #666; font-size: 13px; margin-bottom: 16px; }

.favorite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #12121e;
  border-radius: 6px;
  margin-bottom: 6px;
  border: 1px solid #1a1a2e;
  transition: border-color 0.2s;
}
.favorite-row:hover {
  border-color: #00e5ff;
}
.fav-username {
  font-weight: 600;
  color: #00e5ff;
  font-family: monospace;
}
