* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

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

.login-card {
  width: 360px;
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.login-card h1 {
  margin: 0 0 8px;
}

.login-card p {
  margin: 0 0 24px;
  color: #6b7280;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  background: white;
}

button {
  width: 100%;
  padding: 12px;
  background: #111827;
  color: white;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}

button:hover {
  background: #1f2937;
}

.error-box {
  margin-bottom: 12px;
  color: #b91c1c;
  background: #fee2e2;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.hidden {
  display: none;
}

.topbar{
  background:#111827;
  color:white;
  padding:15px;
  display:flex;
  justify-content:space-between;
}

.cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  padding:20px;
}

.card{
  background:white;
  padding:20px;
  border-radius:10px;
  box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.card div{
  font-size:32px;
  font-weight:bold;
}

.subscription-summary {
  padding: 0;
  margin-bottom: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-button {
  width: auto;
  padding: 8px 12px;
  background: #e5e7eb;
  color: #111827;
  border-radius: 8px;
  font-size: 14px;
}

.filter-button:hover,
.filter-button.active {
  background: #111827;
  color: white;
}


.page {
  padding: 20px;
}

.topbar a {
  color: white;
  margin-right: 15px;
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

th, td {
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: #f9fafb;
  color: #6b7280;
}

.badge-online {
  background: #dcfce7;
  color: #166534;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 13px;
}

.badge-offline {
  background: #fee2e2;
  color: #991b1b;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 13px;
}


.successBox{
  margin-top:20px;
  background:#ecfdf5;
  border:1px solid #86efac;
  padding:20px;
  border-radius:10px;
}

.success-box {
  margin-bottom: 12px;
  color: #166534;
  background: #dcfce7;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.successBox code{
  display:block;
  background:white;
  padding:10px;
  margin-bottom:10px;
  border-radius:8px;
}


body {
  background: #f3f4f6;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #111827;
  color: white;
  padding: 24px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
}

.sidebar h2 {
  margin: 0 0 32px;
}

.sidebar a {
  display: block;
  color: #e5e7eb;
  text-decoration: none;
  padding: 12px 0;
}

.sidebar a:hover {
  color: white;
}

.sidebar button {
  margin-top: 32px;
  background: #374151;
}

.main {
  margin-left: 240px;
  padding: 32px;
  width: calc(100% - 240px);
}

.page-title {
  margin-top: 0;
}

.topbar {
  display: none;
}
textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  font-family: Arial, sans-serif;
}

.subscription-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}
.portal-preview-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.phone-preview {
  width: 320px;
  min-height: 560px;
  border: 12px solid #222;
  border-radius: 32px;
  overflow: hidden;
  background: #f3f4f6;
}

.preview-bg {
  min-height: 560px;
  padding: 40px 20px;
  text-align: center;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preview-logo {
  max-width: 120px;
  max-height: 120px;
  margin-bottom: 20px;
}

#previewTitle {
  font-size: 24px;
  margin-bottom: 10px;
}

#previewWelcome {
  font-size: 15px;
  margin-bottom: 24px;
}

#previewButton {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 24px;
}

#previewKvkk {
  font-size: 11px;
  color: #555;
}
.table-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #f3f4f6;
}
.section-title {
  margin: 28px 0 14px;
  font-size: 22px;
}

.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.online {
  background: #dcfce7;
  color: #166534;
}

.status-badge.offline {
  background: #fee2e2;
  color: #991b1b;
}

.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 10px 14px;
  background: #111827;
  color: white;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.button-link:hover {
  background: #1f2937;
  text-decoration: none;
}

.button-link.secondary {
  background: #e5e7eb;
  color: #111827;
}

.button-link.secondary:hover {
  background: #d1d5db;
}

.button-link.small {
  padding: 6px 10px;
  font-size: 12px;
  width: auto;
}

.danger-zone {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.danger-zone p {
  margin: 6px 0 12px;
  color: #6b7280;
  font-size: 14px;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 10px 14px;
  background: #b91c1c;
  color: white;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.danger-button:hover {
  background: #991b1b;
}

.danger-button.small {
  padding: 6px 10px;
  font-size: 12px;
}

.command-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.command-toolbar strong {
  font-size: 14px;
}

.install-ip-control {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  margin-top: 10px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.install-ip-control input {
  width: 180px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
}

.detail-grid p {
  overflow-wrap: anywhere;
}

.install-command {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 14px;
  background: #111827;
  color: #f9fafb;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.5;
}
