* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #0f1420;
  color: #e6e9ef;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #161c2b;
  border-bottom: 1px solid #232a3d;
}
.topbar a {
  color: #9db4ff;
  text-decoration: none;
  margin-left: 18px;
  font-size: 14px;
}
.topbar .brand { font-weight: 700; font-size: 18px; color: #fff; }
.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

.card {
  background: #161c2b;
  border: 1px solid #232a3d;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}

.isp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .isp-grid { grid-template-columns: 1fr; } }

.isp-card { display: flex; align-items: center; justify-content: space-between; }
.isp-name { font-size: 16px; font-weight: 600; }
.isp-ip { font-size: 12px; color: #8b93a7; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.status-up { background: #35d07f; box-shadow: 0 0 8px #35d07f; }
.status-down { background: #ff5c5c; box-shadow: 0 0 8px #ff5c5c; }
.status-text { font-size: 13px; color: #b7bdcb; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #232a3d; font-size: 14px; }
th { color: #8b93a7; font-weight: 600; }

.btn {
  background: #3d5cff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
}
.btn.secondary { background: #232a3d; }
.btn.danger { background: #ff5c5c; }
.btn.small { padding: 5px 10px; font-size: 12px; margin-right: 6px; }

form.inline { display: inline; }

input, select, textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #2a3350;
  background: #0f1420;
  color: #e6e9ef;
  font-size: 14px;
  margin-bottom: 10px;
}
label { font-size: 12px; color: #8b93a7; display: block; margin-bottom: 4px; }

.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.login-box { width: 340px; }
.error { color: #ff5c5c; font-size: 13px; margin-bottom: 10px; }

.iframe-wrap { border: 1px solid #232a3d; border-radius: 10px; overflow: hidden; margin-top: 10px; }
.iframe-wrap iframe { width: 100%; height: 500px; border: none; display: block; }

h1, h2 { margin-top: 0; }
