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

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

/* Login */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: #1c1f26;
  border: 1px solid #2d3139;
  border-radius: 8px;
  padding: 40px;
  width: 380px;
  text-align: center;
}

.login-container h1 {
  font-size: 24px;
  margin-bottom: 4px;
  color: #f0f0f0;
}

.subtitle {
  color: #8b8fa3;
  margin-bottom: 24px;
  font-size: 14px;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #8b8fa3;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  background: #0f1117;
  border: 1px solid #2d3139;
  border-radius: 6px;
  color: #e1e4e8;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #58a6ff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #2d3139;
  border-radius: 6px;
  background: #1c1f26;
  color: #e1e4e8;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn:hover {
  background: #2d3139;
}

.btn-primary {
  background: #238636;
  border-color: #2ea043;
  color: #fff;
}

.btn-primary:hover {
  background: #2ea043;
}

.btn-danger {
  background: #da3633;
  border-color: #f85149;
  color: #fff;
}

.btn-danger:hover {
  background: #f85149;
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 32px;
  font-size: 16px;
}

/* Messages */
.error-msg {
  background: #3d1a1a;
  border: 1px solid #da3633;
  color: #f85149;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}

.success-msg {
  background: #1a3d2a;
  border: 1px solid #238636;
  color: #3fb950;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #161920;
  border-bottom: 1px solid #2d3139;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand {
  font-weight: 600;
  font-size: 15px;
}

.nav-user {
  color: #8b8fa3;
  font-size: 13px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-running {
  background: #1a3d2a;
  color: #3fb950;
}

.status-stopped {
  background: #3d1a1a;
  color: #f85149;
}

.status-not_found {
  background: #3d3a1a;
  color: #d29922;
}

/* Dashboard */
.dashboard-container {
  height: calc(100vh - 49px);
  display: flex;
  flex-direction: column;
}

.start-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
}

.start-panel h2 {
  font-size: 20px;
}

.start-panel p {
  color: #8b8fa3;
  font-size: 14px;
}

.status-text {
  color: #8b8fa3;
  font-size: 13px;
  margin-top: 8px;
}

/* Tabs */
.tabs {
  display: flex;
  background: #161920;
  border-bottom: 1px solid #2d3139;
}

.tab {
  padding: 10px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8b8fa3;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  color: #e1e4e8;
}

.tab.active {
  color: #e1e4e8;
  border-bottom-color: #58a6ff;
}

.tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.panel {
  flex: 1;
}

.panel iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* Admin */
.admin-container {
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.admin-container h2 {
  margin-bottom: 20px;
}

.card {
  background: #1c1f26;
  border: 1px solid #2d3139;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 16px;
  font-size: 15px;
}

.form-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.form-checkbox {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
}

.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e1e4e8;
  cursor: pointer;
}

/* Table */
.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.user-table th,
.user-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #2d3139;
}

.user-table th {
  color: #8b8fa3;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
}

.user-table tr:hover {
  background: #161920;
}

.actions {
  display: flex;
  gap: 6px;
}

.inline-form {
  display: block;
}
