/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f5;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout__header {
  background-color: #2c3e50;
  color: white;
  padding: 0;
}

.layout__main {
  flex: 1;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.layout__footer {
  background-color: #2c3e50;
  color: #8899a6;
  padding: 15px 20px;
  margin-top: auto;
}

/* Header */
.header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 20px;
}

.header__logo {
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.header__logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Footer */
.footer {
  max-width: 1400px;
  margin: 0 auto;
}

.footer__text {
  margin: 0;
  font-size: 12px;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 20px;
  padding: 10px 15px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.breadcrumbs__item {
  color: #0066cc;
}

.breadcrumbs__item--current {
  color: #666;
  font-weight: 500;
}

.breadcrumbs__separator {
  margin: 0 8px;
  color: #999;
}

/* Dashboard */
.dashboard__title {
  margin: 0 0 20px 0;
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
}

.dashboard__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

/* Summary Card */
.summary-card {
  background-color: white;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.summary-card__value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 5px;
}

.summary-card__label {
  display: block;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Stats Table */
.stats-table {
  width: 100%;
  background-color: white;
  border-collapse: collapse;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-table__cell {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.stats-table__cell--header {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.stats-table__cell--numeric {
  text-align: center;
  width: 80px;
}

.stats-table__cell--action {
  width: 80px;
  text-align: center;
}

.stats-table__row:hover {
  background-color: #f8f9fa;
}

.stats-table__row:last-child .stats-table__cell {
  border-bottom: none;
}

.stats-table__link {
  display: inline-block;
  padding: 5px 12px;
  background-color: #0066cc;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.stats-table__link:hover {
  background-color: #0052a3;
  text-decoration: none;
}

.stats-table__section-link {
  color: #2c3e50;
  font-weight: 500;
}

.stats-table__section-link:hover {
  color: #0066cc;
  text-decoration: none;
}

/* Progress Badge */
.progress-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.progress-badge--high {
  background-color: #d4edda;
  color: #155724;
}

.progress-badge--medium {
  background-color: #fff3cd;
  color: #856404;
}

.progress-badge--low {
  background-color: #f8d7da;
  color: #721c24;
}

/* Section View */
.section-view__title {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
}

.section-view__meta {
  margin-bottom: 20px;
}

.section-view__count {
  color: #666;
  font-size: 14px;
}

.section-view__empty {
  padding: 40px;
  text-align: center;
  color: #666;
  background-color: white;
  border-radius: 6px;
}

/* Test List */
.test-list {
  width: 100%;
  background-color: white;
  border-collapse: collapse;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.test-list__cell {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.test-list__cell--header {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.test-list__cell--id {
  width: 120px;
  font-family: "SF Mono", Monaco, monospace;
  font-size: 13px;
}

.test-list__cell--title {
  max-width: 500px;
}

.test-list__cell--numeric {
  text-align: center;
  width: 60px;
}

.test-list__cell--center {
  text-align: center;
}

.test-list__cell--tags {
  width: 180px;
  text-align: center;
}

.test-list__row:hover {
  background-color: #f8f9fa;
}

.test-list__row:last-child .test-list__cell {
  border-bottom: none;
}

.test-list__link {
  color: #333;
}

.test-list__link:hover {
  color: #0066cc;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  margin: 1px 2px;
}

.tag--automated {
  background-color: #d4edda;
  color: #155724;
}

.tag--smoke {
  background-color: #cce5ff;
  color: #004085;
}

.tag--regress,
.tag--shortregress {
  background-color: #fff3cd;
  color: #856404;
}

.tag--allcases {
  background-color: #e2e3e5;
  color: #383d41;
}

/* Test Case View */
.test-case {
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.test-case__meta {
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.test-case__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.test-case__content {
  padding: 20px;
}

.test-case__content h1 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
}

.test-case__content p {
  margin: 0 0 15px 0;
}

.test-case__content strong {
  color: #2c3e50;
}

.test-case__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.test-case__content th,
.test-case__content td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #ddd;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.test-case__content th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

.test-case__content tr:hover {
  background-color: #f8f9fa;
}

/* Meta Table */
.meta-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.meta-table__row {
  border-bottom: 1px solid #eee;
}

.meta-table__row:last-child {
  border-bottom: none;
}

.meta-table__label {
  padding: 8px 12px;
  font-weight: 600;
  color: #666;
  width: 120px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-table__value {
  padding: 8px 12px;
  color: #333;
}

.meta-table__value--yes {
  color: #155724;
  font-weight: 500;
}

.meta-table__value--no {
  color: #999;
}

.meta-table__value--warning {
  color: #856404;
  font-weight: 500;
}

/* Bool Indicator */
.bool-indicator {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.bool-indicator--yes {
  background-color: #d4edda;
  color: #155724;
}

.bool-indicator--no {
  background-color: #f8f9fa;
  color: #ccc;
}

.bool-indicator--warning {
  background-color: #fff3cd;
  color: #856404;
}

.test-list__cell--bool {
  width: 60px;
}

/* Test List Container (Expandable) */
.test-list-container {
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.test-folder-node {
  border-bottom: 1px solid #eee;
}

.test-folder-node:last-child {
  border-bottom: none;
}

.test-folder-node__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  padding-left: calc(15px + (var(--tree-depth, 0) * 20px));
  background-color: #f8f9fa;
  border-bottom: 1px solid #e1e4e8;
  font-size: 13px;
  color: #586069;
}

.test-folder-node__name {
  font-family: "SF Mono", Monaco, monospace;
  font-weight: 600;
  color: #24292e;
}

.test-folder-node__count {
  color: #6a737d;
}

.test-folder-node__item {
  padding-left: calc(var(--tree-depth, 0) * 20px);
}

.test-list-item {
  border-bottom: 1px solid #eee;
}

.test-list-item:last-child {
  border-bottom: none;
}

.test-list-item__header {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  gap: 12px;
  cursor: pointer;
}

.test-list-item__header:hover {
  background-color: #f8f9fa;
}

.test-list-item__id {
  font-family: "SF Mono", Monaco, monospace;
  font-size: 13px;
  color: #666;
  flex-shrink: 0;
  min-width: 110px;
  margin-right: 8px;
}

.test-list-item__title {
  flex: 1;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-list-item__steps {
  color: #999;
  font-size: 12px;
  flex-shrink: 0;
}

.test-list-item__badges {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.test-list-item__open {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.test-list-item__open:hover {
  background-color: #e8e8e8;
  color: #333;
  text-decoration: none;
}

.test-list-item__content {
  display: none;
  padding: 0 15px 15px 15px;
  border-top: 1px solid #eee;
  background-color: #fafafa;
}

.test-list-item[data-expanded="true"] .test-list-item__content {
  display: block;
}

.test-list-item__loading {
  padding: 20px;
  color: #999;
  text-align: center;
}

/* Inline Test Case */
.test-case-inline {
  padding: 15px 0;
}

.test-case-inline__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.meta-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  background-color: #e8e8e8;
  color: #666;
}

.meta-badge--yes {
  background-color: #d4edda;
  color: #155724;
}

.meta-badge--no {
  background-color: #f8f9fa;
  color: #999;
}

.meta-badge--warning {
  background-color: #fff3cd;
  color: #856404;
}

.test-case-inline__content {
  font-size: 14px;
  line-height: 1.6;
}

.test-case-inline__content h1 {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 15px 0;
}

.test-case-inline__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.test-case-inline__content th,
.test-case-inline__content td {
  padding: 8px 10px;
  text-align: left;
  border: 1px solid #ddd;
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.test-case-inline__content th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.test-case-inline__content p {
  margin: 0 0 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .layout__main {
    padding: 15px;
  }

  .dashboard__summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-table,
  .test-list {
    display: block;
    overflow-x: auto;
  }

  .stats-table__cell--numeric,
  .test-list__cell--numeric {
    width: auto;
  }

  .test-case__content {
    padding: 15px;
  }
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__nav {
  display: flex;
  gap: 20px;
}

.header__nav-link {
  color: #8899a6;
  font-size: 14px;
  text-decoration: none;
}

.header__nav-link:hover {
  color: white;
  text-decoration: none;
}

.header__login-link {
  color: #8899a6;
  font-size: 14px;
}

.header__login-link:hover {
  color: white;
}

/* Header User */

.header__user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.header__username {
  color: #8899a6;
  font-size: 13px;
}

.header__logout {
  background: transparent;
  border: 1px solid #8899a6;
  color: #8899a6;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.header__logout:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: white;
}

/* Flash Messages */
.flash {
  padding: 12px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.flash--notice {
  background-color: #d4edda;
  color: #155724;
}

.flash--alert {
  background-color: #f8d7da;
  color: #721c24;
}

/* Login Page */
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.login__card {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.login__title {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #2c3e50;
}

.login__subtitle {
  margin: 0 0 30px 0;
  color: #666;
}

.login__button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #24292e;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.login__button:hover {
  background-color: #1a1e22;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  background: white;
  color: #333;
}

.btn:hover {
  background: #f5f5f5;
  text-decoration: none;
}

.btn--primary {
  background: #0066cc;
  border-color: #0066cc;
  color: white;
}

.btn--primary:hover {
  background: #0052a3;
}

.btn--secondary {
  background: #6c757d;
  border-color: #6c757d;
  color: white;
}

.btn--secondary:hover {
  background: #5a6268;
}

/* Test Runs */
.test-runs__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.test-runs__title {
  margin: 0;
  font-size: 24px;
  color: #2c3e50;
}

.test-runs__section-title {
  font-size: 16px;
  color: #666;
  margin: 30px 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.test-runs__empty {
  text-align: center;
  color: #666;
  padding: 40px;
  background: white;
  border-radius: 6px;
}

/* Run List */
.run-list {
  display: grid;
  gap: 15px;
}

.run-card {
  background: white;
  border-radius: 6px;
  padding: 15px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.run-card--finished {
  opacity: 0.8;
}

.run-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.run-card__name {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.run-card__type {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.run-card__type--smoke {
  background: #cce5ff;
  color: #004085;
}

.run-card__type--short_regress {
  background: #fff3cd;
  color: #856404;
}

.run-card__type--full_regress {
  background: #d4edda;
  color: #155724;
}

.run-card__meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.run-card__stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.run-card__progress {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.run-card__progress-bar {
  height: 100%;
  background: #28a745;
  transition: width 0.3s;
}

.run-card__percent {
  font-size: 12px;
  color: #666;
  min-width: 80px;
  text-align: right;
}

/* Test Run Detail */
.test-run__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.test-run__title {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #2c3e50;
}

.test-run__type,
.test-run__status {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  margin-right: 8px;
}

.test-run__type--smoke { background: #cce5ff; color: #004085; }
.test-run__type--short_regress { background: #fff3cd; color: #856404; }
.test-run__type--full_regress { background: #d4edda; color: #155724; }

.test-run__status--active { background: #d4edda; color: #155724; }
.test-run__status--finished { background: #e2e3e5; color: #383d41; }

.test-run__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.test-run__section-title {
  font-size: 18px;
  margin: 0 0 15px 0;
  color: #2c3e50;
}

.summary-card--wide {
  grid-column: span 2;
}

.summary-card--success .summary-card__value { color: #28a745; }
.summary-card--failed .summary-card__value { color: #dc3545; }
.summary-card--blocked .summary-card__value { color: #ffc107; }

/* Forms */
.form {
  max-width: 600px;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #2c3e50;
}

.form__input,
.form__select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form__select--small {
  width: auto;
  min-width: 150px;
}

.form__hint {
  color: #666;
  font-size: 13px;
  margin-bottom: 15px;
}

.form__checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.form__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form__checkbox-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form__checkbox span {
  color: #333;
  font-size: 14px;
}

/* Collapsible Form Group Header */
.form__group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}

.form__group-header:hover {
  opacity: 0.8;
}

.form__toggle-icon {
  font-size: 12px;
  color: #666;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.participants-container {
  margin-top: 10px;
}

/* Participants List */
.participants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.participant-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background-color: #f8f9fa;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  cursor: move;
  transition: background-color 0.2s;
}

.participant-item:hover {
  background-color: #f1f3f5;
}

.participant-item.dragging {
  opacity: 0.5;
  background-color: #e8f4f8;
}

.participant-item.drag-over {
  border-color: #0066cc;
  background-color: #e8f4f8;
}

.participant-item__drag-handle {
  color: #666;
  font-size: 16px;
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}

.participant-item__drag-handle:active {
  cursor: grabbing;
}

.participant-item__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  cursor: pointer;
  margin: 0;
}

.participant-item__checkbox span {
  color: #333;
  font-size: 14px;
}

.participant-order-input {
  display: none;
}

.form__section-title {
  font-size: 16px;
  margin: 30px 0 10px 0;
  color: #2c3e50;
}

.form__errors {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.form__actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

/* Assignments */
.assignments {
  background: white;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.assignment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.assignment:last-child {
  border-bottom: none;
}

.assignment__section {
  font-weight: 500;
}

.assignment__count {
  font-weight: 400;
  color: #666;
  font-size: 13px;
  margin-left: 5px;
}

.test-run-form__title {
  margin: 0 0 20px 0;
  font-size: 24px;
  color: #2c3e50;
}

/* Execution Page */
.execution__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.execution__title {
  margin: 0 0 5px 0;
  font-size: 24px;
  color: #2c3e50;
}

.execution__run-name {
  color: #666;
  font-size: 14px;
}

.execution__progress {
  font-size: 14px;
  color: #666;
}

.execution__list {
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.execution-item {
  border-bottom: 1px solid #eee;
}

.execution-item:last-child {
  border-bottom: none;
}

.execution-item__header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  gap: 12px;
  cursor: pointer;
}

.execution-item__header:hover {
  background: #f8f9fa;
}

.execution-item__id {
  font-family: "SF Mono", Monaco, monospace;
  font-size: 13px;
  color: #666;
  flex-shrink: 0;
  min-width: 110px;
  margin-right: 8px;
}

.execution-item__title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.execution-item__status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.execution-item__marked-by {
  font-size: 11px;
  color: #999;
}

.execution-item__actions {
  display: flex;
  gap: 4px;
  padding: 0 15px 12px 15px;
}

.execution-item__content {
  display: none;
  padding: 0 15px 15px 15px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.execution-item__content--visible {
  display: block;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-badge--not_tested {
  background: #e9ecef;
  color: #6c757d;
}

.status-badge--success {
  background: #d4edda;
  color: #155724;
}

.status-badge--failed {
  background: #f8d7da;
  color: #721c24;
}

.status-badge--blocked {
  background: #fff3cd;
  color: #856404;
}

/* Status Buttons */
.status-btn-form {
  display: inline;
}

.status-btn {
  width: 36px;
  height: 36px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.status-btn:hover {
  transform: scale(1.1);
}

.status-btn--success {
  color: #28a745;
}

.status-btn--success:hover,
.status-btn--success.status-btn--active {
  background: #28a745;
  border-color: #28a745;
  color: white;
}

.status-btn--failed {
  color: #dc3545;
}

.status-btn--failed:hover,
.status-btn--failed.status-btn--active {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
}

.status-btn--blocked {
  color: #ffc107;
}

.status-btn--blocked:hover,
.status-btn--blocked.status-btn--active {
  background: #ffc107;
  border-color: #ffc107;
  color: #333;
}

.status-btn--not_tested {
  color: #6c757d;
}

.status-btn--not_tested:hover,
.status-btn--not_tested.status-btn--active {
  background: #6c757d;
  border-color: #6c757d;
  color: white;
}

/* Dashboard Active Runs */
.dashboard__active-runs {
  margin-bottom: 25px;
}

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

.dashboard__subtitle {
  margin: 0;
  font-size: 18px;
  color: #2c3e50;
}

.dashboard__view-all {
  font-size: 13px;
  color: #0066cc;
}

.run-list--compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

/* Loading States */
.status-btn--loading {
  pointer-events: none;
  opacity: 0.6;
}

.status-btn--loading::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile Execution Page */
@media (max-width: 768px) {
  .execution-item__header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .execution-item__id {
    width: auto;
  }

  .execution-item__title {
    width: 100%;
    order: 3;
    white-space: normal;
  }

  .execution-item__actions {
    gap: 8px;
  }

  .status-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .run-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.global-menus {
  position: relative;
}

.global-menus__triggers {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.global-menus__trigger {
  border: 1px solid #d0d7de;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.global-menus__trigger:hover {
  background: #f6f8fa;
}

.global-menus__overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
}

.global-menus__panel {
  width: min(640px, 100%);
  height: 100%;
  background: #ffffff;
  color: #111827;
  overflow-y: auto;
  padding: 1rem;
  box-shadow: -8px 0 20px rgba(0, 0, 0, 0.12);
}

.global-menus__panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.global-menus__title {
  margin: 0;
  font-size: 1.2rem;
  color: #111827;
}

.global-menus__close {
  border: 1px solid #d0d7de;
  background: #fff;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.global-menus__flash {
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.global-menus__flash--notice {
  background: #d4edda;
  color: #155724;
  border: 1px solid #9dd3ad;
}

.global-menus__flash--alert {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f1aeb5;
}

.menu-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.9rem;
  margin-bottom: 0.9rem;
}

.menu-card__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: #111827;
}

.menu-card__line {
  margin: 0.25rem 0;
  color: #374151;
}

.menu-form {
  display: grid;
  gap: 0.55rem;
}

.menu-form__input,
.menu-form__textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
}

.menu-form__textarea {
  min-height: 110px;
  resize: vertical;
}

.menu-form__submit,
.menu-form__danger,
.menu-form__secondary {
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  width: fit-content;
}

.menu-form__danger {
  border-color: #b91c1c;
  background: #b91c1c;
}

.menu-form__secondary {
  border-color: #334155;
  background: #334155;
}

.menu-services-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.menu-services-delete-form {
  margin-top: 0.5rem;
}

.menu-services-picker {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.55rem;
  display: grid;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
}

.menu-services-picker__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1f2937;
  cursor: pointer;
}

.menu-services-picker__checkbox {
  width: 1rem;
  height: 1rem;
}

.menu-list {
  margin: 0.5rem 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.25rem;
  color: #111827;
}

.menu-list__item a {
  color: #0f766e;
  text-decoration: none;
}

.menu-list__item a:hover {
  text-decoration: underline;
}

.is-hidden {
  display: none !important;
}
