/* Rushworks Portal - App-specific styles */
/* Replaces Bootstrap entirely — uses Tailwind utilities + custom component classes */
/* All colors use var(--color-*) custom properties from theme files */

/* Global box-sizing reset (previously provided by Bootstrap) */
*, *::before, *::after { box-sizing: border-box; }

/* Brand color overrides */
:root,
[data-theme="light"] {
  --color-primary: #8E2323;
  --color-primary-hover: #7a1e1e;
  --color-secondary: #161616;
  --color-accent: #8fb1d5;
  --color-accent-secondary: #e54a2d;
  --color-danger: #af3b3b;
  --color-success: #198754;
  --color-warning: #ffc107;
  --color-info: #0dcaf0;

  --color-bg-base: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #f8f9fa;
  --color-bg-muted: rgba(142, 35, 35, 0.08);

  --color-text-primary: #161616;
  --color-text-secondary: #6c757d;
  --color-text-on-primary: #ffffff;

  --color-border: #dee2e6;
  --color-border-focus: #8E2323;

  --shadow-primary: 0 4px 15px rgba(142, 35, 35, 0.15);
}

/* ===== Layout ===== */
.container {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ===== Links ===== */
a {
  text-decoration: none !important;
  color: var(--color-primary);
  transition: color 0.15s;
}
a:focus, a:hover {
  color: var(--color-accent-secondary);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.5;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.65; pointer-events: none; }

/* Override common +btn mixin oversized padding */
button.py-3, a.py-3 { padding-top: 0.4rem !important; padding-bottom: 0.4rem !important; }
button.px-6, a.px-6 { padding-left: 1rem !important; padding-right: 1rem !important; }
button.text-base, a.text-base { font-size: 0.875rem !important; }
.btn-sm { font-size: 0.8rem; padding: 0.25rem 0.5rem; }
.btn-xs { font-size: 0.72rem; padding: 0.15rem 0.4rem; }
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-on-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-text-on-primary);
}
.btn-secondary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-text-on-primary);
}
.btn-secondary:hover { opacity: 0.85; }
.btn-success {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-on-primary);
}
.btn-success:hover { background-color: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn-danger {
  background-color: var(--color-danger);
  border-color: var(--color-danger);
  color: var(--color-text-on-primary);
}
.btn-danger:hover { opacity: 0.85; }
.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: transparent;
}
.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-on-primary);
}
.btn-outline-secondary {
  color: var(--color-secondary);
  border-color: var(--color-border);
  background-color: transparent;
}
.btn-outline-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-text-on-primary);
}
.btn-light {
  background-color: var(--color-bg-subtle);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}
.btn-light:hover { background-color: var(--color-border); }
.btn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  font-size: 1.25rem;
  line-height: 1;
}
.btn-close::before { content: '×'; }
.btn-close:hover { opacity: 1; }

/* ===== Cards ===== */
.card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
}
.card-body { padding: 1rem; }
.card-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-subtle);
}
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }

/* ===== Forms ===== */
.form-control, .form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  transition: border-color 0.15s;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px var(--color-bg-muted);
}
.form-control-sm, .form-select-sm {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}
.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-primary);
}
textarea.form-control { resize: vertical; }

/* ===== Input Group ===== */
.input-group {
  display: flex;
  align-items: stretch;
}
.input-group > .form-control,
.input-group > .form-select {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  border-radius: 0;
}
.input-group > :first-child { border-radius: 0.375rem 0 0 0.375rem; }
.input-group > :last-child { border-radius: 0 0.375rem 0.375rem 0; }
.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}

/* ===== Tables ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.table th, .table td {
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
}
.table thead th {
  font-weight: 600;
  color: var(--color-text-primary);
  background-color: var(--color-bg-subtle);
  border-bottom-width: 2px;
}
.table-hover tbody tr:hover { background-color: var(--color-bg-subtle); }
.table-bordered th, .table-bordered td { border: 1px solid var(--color-border); }
.table-responsive { overflow-x: auto; }
.table-light { background-color: var(--color-bg-subtle); }

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.6em;
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1;
  border-radius: 0.25rem;
  white-space: nowrap;
}

/* ===== List Group ===== */
.list-group {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-group-item {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-card);
}
.list-group-item:last-child { border-bottom: none; }

/* ===== Alerts ===== */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.alert-info {
  background-color: rgba(13, 202, 240, 0.1);
  color: #055160;
  border: 1px solid rgba(13, 202, 240, 0.3);
}

/* ===== Nav Tabs ===== */
.nav-tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid var(--color-border);
}
.nav-tabs .nav-item { margin-bottom: -2px; }
.nav-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none !important;
}
.nav-tabs .nav-link:hover { color: var(--color-primary); }
.nav-tabs .nav-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

/* ===== Modals (extends common/css/components.css) ===== */
/* components.css provides .modal (fixed overlay) and .modal.show (display: flex) */
.modal-dialog {
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  pointer-events: auto;
}
.modal-dialog-lg { max-width: 800px; }
.modal-dialog-xl { max-width: 1140px; }
.modal-content {
  background-color: var(--color-bg-card);
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
.modal-title { font-size: 1.1rem; font-weight: 600; margin: 0; }
.modal-body { padding: 1.25rem; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

/* ===== Dropdown ===== */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1000;
  min-width: 10rem;
  padding: 0.25rem 0;
  list-style: none;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  text-decoration: none !important;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.dropdown-item:hover { background-color: var(--color-bg-subtle); }

/* ===== Navbar ===== */
.navbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none !important;
}
.navbar-toggler {
  display: none;
  padding: 0.25rem 0.5rem;
  font-size: 1.25rem;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  cursor: pointer;
  color: var(--color-text-primary);
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}
.navbar-collapse {
  display: flex;
  align-items: center;
  flex-grow: 1;
}
.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
@media (max-width: 991.98px) {
  .navbar-toggler { display: block; }
  .navbar-collapse {
    display: none;
    width: 100%;
    flex-basis: 100%;
  }
  .navbar-collapse.show { display: block; }
  .navbar-nav { flex-direction: column; align-items: stretch; }
}

/* ===== Tab Panel (org details custom tabs) ===== */
.tab-panel { display: none; }
.tab-panel.tab-visible { display: block; }

/* ===== Project tab panes ===== */
/* Override components.css which hides .tab-content by default */
.tab-content { display: block; }
/* Project views use .tab-content > .tab-pane pattern */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===== Utility color classes ===== */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-text-secondary) !important; }
.text-muted { color: var(--color-text-secondary); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-success { color: var(--color-success); }
.text-info { color: var(--color-info); }
.text-body { color: var(--color-text-primary); }
.text-light { color: rgba(255,255,255,0.85); }
.text-white { color: #fff; }
.text-dark { color: var(--color-text-primary); }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; color: var(--color-text-on-primary) !important; }
.bg-light { background-color: var(--color-bg-subtle); }
.bg-white { background-color: #fff; }
.bg-info { background-color: rgba(13, 202, 240, 0.15); }
.border-primary { border-color: var(--color-primary) !important; }

/* ===== Misc utilities (themed overrides) ===== */
.img-fluid { max-width: 100%; height: auto; }
.img-thumbnail {
  padding: 0.25rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
}
.align-middle { vertical-align: middle; }
.flex-grow-2 { flex-grow: 2; }
.fixed-top { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; }
.border-b, .border-bottom { border-bottom: 1px solid var(--color-border); }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.075); }
.shadow { box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Tailwind utility classes (not generated by Tailwind v4 from Pug files) */
.font-bold, .fw-bold { font-weight: 700; }
.font-semibold, .fw-semibold { font-weight: 600; }
.font-medium, .fw-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.text-xs { font-size: 0.75rem; }
.text-sm, .small, small { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl, .fs-5 { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.rounded { border-radius: 0.25rem; }
.rounded-lg, .rounded-3 { border-radius: 0.5rem; }

/* Legacy Bootstrap-named aliases (kept for JS innerHTML backward compat) */
.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.d-inline-block { display: inline-block; }
.flex-column { flex-direction: column; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: end; }
.align-items-center { align-items: center; }
.align-items-end { align-items: end; }
.align-items-start { align-items: start; }
.flex-grow-1 { flex-grow: 1; }
.float-right, .float-end { float: right; }
.text-right, .text-end { text-align: right; }
.text-decoration-none { text-decoration: none !important; }
.text-capitalize { text-transform: capitalize; }
.position-absolute { position: absolute; }
.position-relative { position: relative; }
.end-0 { right: 0; }
.me-1 { margin-right: 0.25rem; } .me-2 { margin-right: 0.5rem; }
.ms-1 { margin-left: 0.25rem; } .ms-2 { margin-left: 0.5rem; } .ms-auto { margin-left: auto; }
.w-auto { width: auto !important; }
.h-100 { height: 100%; }
.w-100 { width: 100%; }
.rounded-circle { border-radius: 50%; }

/* Spacing — Tailwind scale: value * 0.25rem */
.m-0 { margin: 0; } .m-1 { margin: 0.25rem; } .m-2 { margin: 0.5rem; } .m-3 { margin: 1rem; } .m-4 { margin: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mr-1, .me-1 { margin-right: 0.25rem; } .mr-2, .me-2 { margin-right: 0.5rem; } .mr-3, .me-3 { margin-right: 1rem; }
.ml-1, .ms-1 { margin-left: 0.25rem; } .ml-2, .ms-2 { margin-left: 0.5rem; } .ml-3, .ms-3 { margin-left: 1rem; } .ml-auto, .ms-auto { margin-left: auto; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; } .mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; } .mx-auto { margin-left: auto; margin-right: auto; }
.p-0 { padding: 0; } .p-1 { padding: 0.25rem; } .p-2 { padding: 0.5rem; } .p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }
.px-0 { padding-left: 0; padding-right: 0; } .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; } .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; } .px-4 { padding-left: 1.5rem; padding-right: 1.5rem; } .px-5 { padding-left: 1.25rem; padding-right: 1.25rem; } .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; } .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; } .py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; } .py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-1 { padding-top: 0.25rem; } .pt-5 { padding-top: 3rem; } .pt-12 { padding-top: 3rem; } .pt-20 { padding-top: 5rem; } .pt-28 { padding-top: 7rem; }
.pb-0 { padding-bottom: 0; } .pb-1 { padding-bottom: 0.25rem; } .pb-12 { padding-bottom: 3rem; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 1rem; } .gap-4 { gap: 1.5rem; } .gap-5 { gap: 2rem; } .gap-6 { gap: 1.5rem; }
.g-3 { gap: 1rem; }
.gy-5 { row-gap: 3rem; }

/* Sizing */
.max-w-lg { max-width: 32rem; }
.max-w-6xl { max-width: 72rem; }
.w-16 { width: 4rem; } .w-20 { width: 5rem; }
.h-20 { height: 5rem; }

/* Extra border-radius */
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

/* Extra shadows */
.shadow-xl { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* Responsive display */
@media (min-width: 992px) {
  .lg-hidden, .d-lg-none { display: none !important; }
  .align-items-lg-center { align-items: center; }
  .gap-lg-3 { gap: 1rem; }
  .ms-lg-3, .lg-ml-3 { margin-left: 1rem; }
  .lg-mt-0 { margin-top: 0; }
  .lg\:p-8 { padding: 2rem; }
  .lg\:text-4xl { font-size: 2.25rem; }
}
/* Grid row */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}
.row > [class*="col-"] { padding-left: 0.75rem; padding-right: 0.75rem; box-sizing: border-box; }
.col-12 { width: 100%; flex: 0 0 100%; }
.col-3 { width: 25%; flex: 0 0 25%; }
.col-9 { width: 75%; flex: 0 0 75%; }
.col-2 { width: 16.666%; flex: 0 0 16.666%; }
.col-10 { width: 83.333%; flex: 0 0 83.333%; }

@media (min-width: 576px) {
  .col-sm-6 { width: 50%; flex: 0 0 50%; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm\:pt-24 { padding-top: 6rem; }
  .sm\:pt-32 { padding-top: 8rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
}
@media (min-width: 768px) {
  .mt-md-0 { margin-top: 0; }
  .justify-content-md-end { justify-content: end; }
  .flex-md-row, .md\:flex-row { flex-direction: row; }
  .align-items-md-center, .md\:items-center { align-items: center; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:justify-end { justify-content: end; }
  .md\:mt-0 { margin-top: 0; }
  .col-md-2 { width: 16.666%; flex: 0 0 16.666%; }
  .col-md-3 { width: 25%; flex: 0 0 25%; }
  .col-md-4 { width: 33.333%; flex: 0 0 33.333%; }
  .col-md-5 { width: 41.666%; flex: 0 0 41.666%; }
  .col-md-6 { width: 50%; flex: 0 0 50%; }
  .col-md-7 { width: 58.333%; flex: 0 0 58.333%; }
  .col-md-8 { width: 66.666%; flex: 0 0 66.666%; }
  .col-md-12 { width: 100%; flex: 0 0 100%; }
}
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; flex: 0 0 25%; }
  .col-lg-5 { width: 41.666%; flex: 0 0 41.666%; }
  .col-lg-6 { width: 50%; flex: 0 0 50%; }
  .col-lg-7 { width: 58.333%; flex: 0 0 58.333%; }
  .mt-lg-0 { margin-top: 0; }
}

/* Project card hover */
.project-card-link .card { transition: transform 0.15s, box-shadow 0.15s; }
.project-card-link:hover .card { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

/* Drag and drop feedback */
.drop-hover { background: #e8e4fe !important; box-shadow: 0 0 0 2px #6f42c1 !important; }
.drop-hover-taskcard { background: #dbeafe !important; box-shadow: inset 0 -2px 0 0 #3b82f6; }
.drop-hover-taskzone { background: #dbeafe !important; border: 2px dashed #3b82f6 !important; }
.selected-task { background: #e0e7ff !important; box-shadow: 0 0 0 2px #4f46e5 !important; }

/* ===== Tag Badges ===== */
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15em 0.5em;
  font-size: 0.78em;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 3px;
  white-space: nowrap;
}

/* ===== Ready Checkbox ===== */
.ready-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-right: 0.25rem;
}
.ready-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ===== Agent State Indicators ===== */
.agent-state-running {
  animation: agent-pulse 1.5s ease-in-out infinite;
}
.agent-state-idle {
  opacity: 0.6;
}
.agent-state-failed {
  animation: agent-shake 0.5s ease-in-out;
}
@keyframes agent-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes agent-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* Spinner */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}
.spinner-border-sm { width: 1rem; height: 1rem; border-width: 0.2em; }
.spinner-border-lg { width: 3rem; height: 3rem; }
@keyframes spinner-border {
  to { transform: rotate(360deg); }
}
