body {
  background: #f4f6f8;
}

.card {
  border: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.status-dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.status-dot.online { background: #198754; }
.status-dot.offline { background: #adb5bd; }

.table td, .table th {
  vertical-align: middle;
}

.message-preview {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0f2027, #203a43 45%, #2c5364);
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.contact-search {
  z-index: 5;
}

.contact-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 20;
}

.contact-result-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f1f3f5;
  background: #fff;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}

.contact-result-item:last-child {
  border-bottom: 0;
}

.contact-result-item:hover,
.contact-result-item.active {
  background: #e8f5e9;
}

.contact-result-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-result-phone {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: #495057;
}

.contact-result-notes {
  font-size: 0.75rem;
  color: #868e96;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-result-empty {
  padding: 0.75rem 0.85rem;
  color: #868e96;
  font-size: 0.9rem;
}
