:root {
  --app-max-width: 1200px;
}

body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-main {
  flex: 1 0 auto;
}

.page-footer {
  margin-top: auto;
}

.body-content {
  max-width: var(--app-max-width);
}

.section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-heading {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card {
  border-radius: 0.6rem;
  border-color: var(--bs-gray-700);
}

.card-header {
  font-weight: 600;
  background: var(--bs-gray-800);
  border-bottom-color: var(--bs-gray-700);
}

.list-group-item {
  background: var(--bs-dark);
  border-color: var(--bs-gray-700);
}

.table thead th {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.table-action {
  min-width: 90px;
}

/* Citizens table shared behaviors */
tr.user-row {
  cursor: pointer;
}

tr.user-row .copy-btn {
  padding: 2px 8px;
  margin-left: 6px;
  font-size: 0.9em;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

tr.user-row:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

tr.user-row:hover .copy-btn {
  opacity: 1;
}

.email-cell {
  white-space: nowrap;
}

.btn {
  line-height: 1.35;
}

.btn-sm {
  padding: 0.3rem 0.65rem;
}

.copy-btn {
  background: transparent;
  color: inherit;
  border: 1px solid var(--bs-gray-700);
}

.copy-btn:hover {
  background: var(--bs-gray-800);
}

/* Make table rows clickable */
td a {
  display: block;
  text-decoration: none;
  color: var(--bs-white);
}

/* Overwrite bootstrap - borders */
.list-group-item+.list-group-item {
  border-top-width: 2;
}

.list-group-item {
  color: #00bc8c !important;
}

/* For Board and TinyMCE. Makes pictures responsive */
img {
  max-width: 100%;
  height: auto;
}

.board {
  border: 1px solid gray;
  border-radius: 10px;
  margin: 10;
  padding: 10;
}

/* Hide Google Translation icon */
#gtx-trans {
  display: none !important;
}

.chat-has-messages {
  background-color: var(--bs-success);
}

/* Notification banner styles */
#notification-permission-banner,
#notification-blocked-banner {
  display: none;
  border-radius: 0;
}

/* Owner highlight for task cards */
.owner-highlight {
  color: #fff;
  font-weight: 500;
}

/* Line clamp for task descriptions */
.description-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Chat room pulse animation */
.chat-room-pulse {
  animation: text-flash 2s infinite;
}

@keyframes text-flash {

  0%,
  100% {
    opacity: 1;
    color: #0d6efd;
  }

  50% {
    opacity: 0.3;
    color: #0d6efd;
  }
}

/* Task actions layout */
.task-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.task-actions form {
  margin: 0;
  display: inline-flex;
}

.task-actions .btn {
  white-space: nowrap;
}