body {
  direction: rtl;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background-color: #f0f4f8;
  --primary: #0d6efd;
  color: #333;
  min-height: 100vh;
}



.navbar-light {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: bold;
}

form .input-group > .form-select {
  flex: 1 1 auto;
}

.btn {
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn-icon i {
  margin-left: 4px;
}

.card {
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
}

.card-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
}


/* Preserve default light header color unless table-light is used */
.table > thead:not(.table-light) {
  background-color: #e9ecef;
}

.table-hover tbody tr:hover {
  background-color: #f2f2f2;
}

.table th,
.table td {
  vertical-align: middle;
}

.results-table th,
.results-table td {
  vertical-align: middle;
  text-align: center;
}

.results-table thead.table-light {
  background-color: #f7f7f7;
}

.status-active {
  background-color: #198754;
  color: #fff;
  padding: .25em .5em;
  border-radius: .25rem;
}

.status-paused {
  background-color: #6c757d;
  color: #fff;
  padding: .25em .5em;
  border-radius: .25rem;
}

.status-flagged {
  background-color: #fd7e14;
  color: #fff;
  padding: .25em .5em;
  border-radius: .25rem;
}

.codebox {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background-color: #f4f6f9;
  padding: 6px 10px;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
  direction: rtl;
  margin: 0;
}


.table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
  th {
    width: 100%;
}
}
