body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #f1f5f9;
  color: #0f172a;
}

.card {
  border-radius: 16px;
  border: 1px solid rgba(100, 116, 139, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.card__header {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
}

.card__subtitle {
  font-size: 0.875rem;
  color: #64748b;
}

.card__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
}

.card__value {
  font-size: 2rem;
  font-weight: 600;
  color: #0f172a;
}

.card__hint {
  font-size: 0.75rem;
  color: #94a3b8;
}

.sidebar {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  width: 18rem;
  background: #0f172a;
  padding: 32px 24px;
  color: #f8fafc;
}

@media (min-width: 1024px) {
  .sidebar {
    display: flex;
  }
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.2);
  color: #0ea5e9;
  font-weight: 600;
}

.sidebar__nav {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar__link {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.sidebar__link:hover {
  background: rgba(148, 163, 184, 0.18);
  color: #ffffff;
}

.sidebar__footer {
  margin-top: 40px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.7);
  padding: 20px;
}

.sidebar__logout {
  margin-top: 16px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease;
}

.sidebar__logout:hover {
  background: rgba(148, 163, 184, 0.18);
}

.sidebar--open {
  display: flex;
  position: fixed;
  inset: 0;
  width: 18rem;
  z-index: 60;
}

.sidebar__overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 50;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(248, 250, 252, 0.9);
  font-size: 1.2rem;
  color: #1e293b;
}

.topbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 24px 32px;
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.page-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #0f172a;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #64748b;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn-xs {
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  border: none;
  box-shadow: 0 15px 25px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 30px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.btn-secondary:hover {
  background: rgba(14, 165, 233, 0.08);
}

.input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border 150ms ease, box-shadow 150ms ease;
}

.input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(148, 163, 184, 0.2);
  color: #0f172a;
  text-transform: capitalize;
}

.status-running {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.status-paused {
  background: rgba(250, 204, 21, 0.15);
  color: #ca8a04;
}

.status-error {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
}

.status-sent {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

.status-delivered {
  background: rgba(34, 197, 94, 0.15);
  color: #047857;
}

.status-read {
  background: rgba(139, 92, 246, 0.15);
  color: #5b21b6;
}

.status-failed {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
}

.status-waiting {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.status-connected {
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
}

.status-maturing {
  background: rgba(14, 165, 233, 0.2);
  color: #0369a1;
}

.status-disconnected {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
}

.notification__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.7);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 150ms ease;
}

.notification__button:hover {
  background: rgba(148, 163, 184, 0.3);
}

.notification__badge {
  position: absolute;
  top: 4px;
  right: 6px;
  min-width: 18px;
  padding: 2px 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
}

.notification__dropdown {
  position: absolute;
  right: 0;
  margin-top: 12px;
  width: 320px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
  padding: 16px;
  z-index: 50;
}

.notification__dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.notification__mark-all {
  font-size: 0.75rem;
  color: #0ea5e9;
  background: transparent;
  border: none;
  cursor: pointer;
}

.notification__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 240px;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow-y: auto;
}

.notification__item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.6);
  display: grid;
  gap: 4px;
}

.notification__item--unread {
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: rgba(224, 242, 254, 0.6);
}

.notification__item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.notification__item-time {
  font-size: 0.7rem;
  color: #94a3b8;
}

.notification__item-body {
  font-size: 0.8rem;
  color: #475569;
}

.notification__footer {
  margin-top: 12px;
  text-align: center;
}

.notification__view-all {
  font-size: 0.85rem;
  color: #0ea5e9;
  text-decoration: none;
}

.wizard {
  max-width: 760px;
  width: calc(100vw - 2rem);
}

@media (min-width: 1024px) {
  .wizard {
    width: 720px;
  }
}

.wizard__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
}

.wizard__step {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(226, 232, 240, 0.6);
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.wizard__step--active {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.35);
}

.wizard__panel {
  display: block;
}

.wizard__panel.hidden {
  display: none;
}

.wizard__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
}

.modal.hidden {
  display: none;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 60;
}

.modal__backdrop.hidden {
  display: none;
}

.modal__content {
  width: min(480px, calc(100% - 32px));
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  padding: 24px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
}

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

.modal__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

.modal__close {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
}

.modal__body {
  margin-top: 8px;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background-color: #e0f2fe;
  color: #0f172a;
  font-weight: 500;
  text-transform: lowercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.badge:hover {
  background-color: #bae6fd;
}
