body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: #f6f8f4;
  color: #2e342c;
}

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

.sidebar {
  width: 250px;
  background: #ffffff;
  border-right: 1px solid #dde7d4;
  padding: 24px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  font-size: 28px;
  font-weight: 700;
  color: #69c51d;
  margin-bottom: 28px;
}

.menu a {
  display: block;
  text-decoration: none;
  color: #2e342c;
  padding: 11px 14px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.menu a:hover,
.menu a.active {
  background: #eef8e3;
}

.content {
  flex: 1;
  padding: 28px;
  box-sizing: border-box;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.page-title {
  margin: 0;
  font-size: 30px;
}

.card {
  background: #ffffff;
  border: 1px solid #e7efe0;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin: 16px 0 22px;
}

.metric-label {
  color: #6c7567;
  font-size: 14px;
}

.metric-value {
  font-size: 30px;
  font-weight: 700;
  color: #69c51d;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #54604f;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dce5d3;
  border-radius: 12px;
  box-sizing: border-box;
  background: #fff;
}

textarea {
  min-height: 110px;
}

.btn {
  border: 0;
  background: #69c51d;
  color: #fff;
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn.secondary {
  background: #2e342c;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 11px;
  border-bottom: 1px solid #edf1e8;
  vertical-align: top;
}

th {
  background: #f8fbf4;
}

.status-online {
  color: #1f7a2f;
  font-weight: 700;
}

.status-offline {
  color: #b00020;
  font-weight: 700;
}

.badge-open {
  color: #b00020;
  font-weight: 700;
}

.badge-closed {
  color: #1f7a2f;
  font-weight: 700;
}

.notice {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.notice.ok {
  background: #eaf8dc;
}

.notice.err {
  background: #ffe3e3;
  color: #b00020;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 420px;
  max-width: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.login-brand {
  color: #69c51d;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 10px;
}

.login-sub {
  margin: 0 0 16px;
  color: #64705f;
}

.mono {
  font-family: Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

.actions a {
  margin-right: 8px;
}

@media (max-width: 1000px) {
  .layout { display: block; }
  .sidebar { width: 100%; height: auto; position: static; }
  .cards { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
}
