/* Minimal dark theme for NetPhish Command Center */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #e5e7eb;
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  background: #020617;
  border-right: 1px solid #1e293b;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
}

.sidebar__header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.sidebar__logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #0ea5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #020617;
  margin-right: 10px;
}

.sidebar__brand-title {
  font-weight: 600;
}

.sidebar__brand-subtitle {
  font-size: 12px;
  color: #64748b;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar__link {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #cbd5f5;
  text-decoration: none;
  font-size: 14px;
}

.sidebar__link:hover {
  background: #0f172a;
}

.sidebar__link--active {
  background: #0ea5e9;
  color: #020617;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  padding: 16px 20px;
  border-bottom: 1px solid #1e293b;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar__title {
  margin: 0;
  font-size: 20px;
}

.topbar__actions {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: #0ea5e9;
  color: #020617;
}

.btn--primary:hover {
  background: #38bdf8;
}

.btn--secondary {
  background: #1e293b;
  color: #e5e7eb;
  border: 1px solid #334155;
}

.btn--secondary:hover {
  background: #334155;
}

.btn--sm {
  padding: 4px 10px;
  font-size: 12px;
}

.detail-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 0;
}

.detail-list dt {
  color: #9ca3af;
  font-weight: 500;
}

.detail-list dd {
  margin: 0;
}

.status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.status--online {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.status--offline {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

.status--suspended {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

.status--queued {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

.status--sent {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.status--delivered {
  background: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.status--failed {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

.text-error {
  color: #fca5a5;
  font-size: 12px;
}

.form {
  max-width: 400px;
  margin-top: 12px;
}

.form__group {
  margin-bottom: 14px;
}

.form__group label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #9ca3af;
}

.form__input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 14px;
}

.form__input:focus {
  outline: none;
  border-color: #0ea5e9;
}

.form__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.content {
  padding: 20px;
}

.card {
  background: #020617;
  border-radius: 10px;
  border: 1px solid #1e293b;
  padding: 16px 18px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid #0f172a;
}

.table th {
  font-weight: 500;
  color: #9ca3af;
}

.table__empty {
  text-align: center;
  color: #6b7280;
  padding: 16px 0;
}

.actions-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-msg {
  font-size: 13px;
  font-weight: 500;
}

.status-msg--ok {
  color: #22c55e;
}

.status-msg--err {
  color: #ef4444;
}

.alert {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
}

.alert--error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid #ef4444;
  color: #fecaca;
}

.alert--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid #22c55e;
}
.alert--warning {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid #eab308;
}

.callout {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #bae6fd;
}

.callout strong {
  color: #e0f2fe;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.badge--system {
  background: rgba(100, 116, 139, 0.35);
  color: #cbd5e1;
}

.text-muted {
  color: #9ca3af;
  font-size: 13px;
  margin: 0 0 12px 0;
}

textarea.form__input {
  resize: vertical;
  min-height: 60px;
}

