* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #12141a;
  color: #e8e8e8;
}
.hidden { display: none !important; }

.screen#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: #1c1f28;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}

#login-screen .card {
  width: 320px;
  text-align: center;
}

input {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0f1115;
  color: #fff;
  font-size: 15px;
}

button {
  width: 100%;
  padding: 10px 12px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  background: #4f7cff;
  color: white;
  font-size: 15px;
  cursor: pointer;
}
button:hover { background: #6a90ff; }
button:disabled { background: #444; cursor: not-allowed; }
button.secondary { background: #333; }
button.link-btn {
  width: auto;
  background: transparent;
  color: #9db4ff;
  font-size: 13px;
  text-decoration: underline;
  margin-left: 12px;
  padding: 0px;
  white-space: nowrap;
}

.error { color: #ff6b6b; min-height: 20px; }
.feedback { min-height: 20px; font-size: 14px; }
.muted { color: #888; font-size: 13px; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #1c1f28;
}
.header-right { margin-left : 15px; text-align : right; }

header h1 {
  display: flex;
  align-items: center;
}

main {
  max-width: 700px;
  margin: 24px auto;
  padding: 0 16px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #2a2d38;
}
.status-label { color: #aaa; }

.badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.badge.online { background: #1e4d2b; color: #6ee7a0; }
.badge.offline { background: #4d1e1e; color: #ff8a8a; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
th, td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #2a2d38;
  font-size: 14px;
}
th { color: #888; font-weight: 600; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal .card { width: 320px; }
.modal-actions { display: flex; gap: 8px; }

.ballondor {
  width : 30px;
  height : 30px;
  border : 2px solid white;
  border-radius : 15px;
  padding : 1px;
  margin : 0 1pxi -1px;
}
