:root {
  --dashboard-terminal-bg: #111827;
}

.brand-mark {
  align-items: center;
  background: #2fb344;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  margin-right: 0.6rem;
  width: 2rem;
}

.navbar-brand {
  justify-content: flex-start;
  white-space: normal;
}

.compact-empty {
  min-height: 100%;
  padding: 0.5rem;
}

.compact-empty .empty-img {
  color: #2fb344;
  font-size: 2.25rem;
  height: auto;
  margin: 0 0 0.5rem;
}

.terminal-box {
  background: var(--dashboard-terminal-bg);
  border-radius: 6px;
  color: #d1d5db;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  min-height: 150px;
  overflow-x: auto;
  padding: 1rem;
}

.log-line {
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.log-row {
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.4rem 0;
}

.log-row:last-child {
  border-bottom: 0;
}

.log-row-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.35rem;
}

.log-row-actions .btn {
  white-space: nowrap;
}

.log-tag {
  display: inline-block;
  min-width: 44px;
}

.log-out .log-tag {
  color: #60a5fa;
}

.log-err .log-tag {
  color: #fb7185;
}

.monitor-label {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.monitor-value {
  color: #182433;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.35rem 0 0.5rem;
}

.submetric {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  min-height: 74px;
  padding: 0.75rem;
}

.wa-status-card .submetric {
  min-height: 100%;
}

.wa-status-badge {
  margin-top: 0.35rem;
}

.wa-status-card .alert {
  border-radius: 6px;
}

.wa-status-card strong {
  display: block;
  line-height: 1.3;
}

.pm2-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pm2-actions .btn {
  min-width: 104px;
}

.pm2-notifications {
  display: grid;
  gap: 0.5rem;
}

.pm2-notification {
  align-items: center;
  border: 1px solid #e5e7eb;
  border-left-width: 4px;
  border-radius: 6px;
  display: flex;
  gap: 0.65rem;
  min-height: 38px;
  padding: 0.45rem 0.65rem;
}

.pm2-notification-info {
  border-left-color: #4299e1;
}

.pm2-notification-success {
  border-left-color: #2fb344;
}

.pm2-notification-warning {
  border-left-color: #f59f00;
}

.pm2-notification-time {
  color: #667085;
  flex-shrink: 0;
  font-size: 0.78rem;
}

.realtime-status-wrap {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  max-width: 380px;
}

.realtime-status-copy {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  min-width: 0;
}

.realtime-status-label {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.realtime-status-value {
  color: #182433;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.realtime-last-sync {
  white-space: nowrap;
}

.realtime-refresh-btn {
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}

.log-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.log-search {
  max-width: 180px;
}

.log-source {
  max-width: 150px;
}

.log-detail {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.log-detail-text {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  line-height: 1.55;
  min-height: 72px;
  padding: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.auth-page {
  background: #f8fafc;
}

.auth-card {
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.auth-brand {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 1rem 0.75rem 0.9rem;
  text-align: center;
}

.auth-brand-label {
  color: #667085;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-brand-logo {
  display: block;
  height: auto;
  max-width: 180px;
  width: 100%;
}

.auth-copy {
  margin-bottom: 1rem;
  text-align: center;
}

.auth-credit {
  border-top: 1px solid #e5e7eb;
  font-size: 0.8rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  text-align: center;
}

.personil-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.personil-search {
  max-width: 240px;
}

.personil-status {
  max-width: 180px;
}

.personil-table td,
.personil-table th {
  vertical-align: middle;
}

.personil-table td {
  white-space: nowrap;
}

.personil-table td:nth-child(3) {
  white-space: normal;
  min-width: 220px;
}

.personil-table td:nth-child(6),
.personil-table td:nth-child(7) {
  min-width: 160px;
}

.personil-table td:nth-child(9) {
  min-width: 140px;
}

@media (max-width: 575.98px) {
  .page-title {
    font-size: 1.1rem;
  }

  .navbar-brand {
    font-size: 0.9rem;
  }

  .realtime-status-wrap {
    max-width: 100%;
  }

  .personil-search,
  .personil-status {
    max-width: 100%;
  }

  .auth-brand-logo {
    max-width: 160px;
  }
}
