body {
  background-color: #f7f7fb;
}

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

.card .badge {
  font-weight: 500;
}

.progress {
  height: 10px;
}

.progress-bar {
  transition: width 0.4s ease;
}

.logs-pre {
  background-color: #1f1f23;
  color: #d7d7d7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.3em;
  height: calc(10 * 1.3em);
  overflow: auto;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

/* Service Status Indicators */
.service-status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

/* Horizontal layout specific indicator styling */
.nav-item-container-horizontal .service-status-indicator {
  margin-bottom: 0;
  margin-right: 0;
}

/* Navigation item container for vertical layout */
.nav-item-container-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 40px;
  padding: 8px 4px;
}

/* Navigation item container for horizontal layout */
.nav-item-container-horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 40px;
  padding: 8px 4px;
  gap: 8px;
}

.nav-item-text {
  font-size: 0.9rem;
  white-space: nowrap;
  color: inherit;
  text-decoration: inherit;
  margin-top: 5.5px;
}

/* Horizontal layout specific text styling */
.nav-item-container-horizontal .nav-item-text {
  margin-top: 0;
  margin-left: 0;
}

/* Ensure all navigation links have consistent styling */
nav a, .nav a, .navigation a {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover, .nav a:hover, .navigation a:hover {
  color: #0a58ca;
}

/* Active/current page styling */
nav a.active, .nav a.active, .navigation a.active {
  color: #0d6efd;
  font-weight: 500;
}

/* Blinking animation for connecting state */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

/* Venues table improvements */
#venues-table {
  table-layout: fixed;
  width: 100%;
}

#venues-table th,
#venues-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 4px;
}

#venues-table input {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 0.875rem;
}

#venues-table input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  outline: 0;
}

.table-responsive {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-status-indicator.online {
  background-color: #28a745;
}

.service-status-indicator.offline {
  background-color: #dc3545;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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

.text-right {
  text-align: right;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mt-3 {
  margin-top: 1rem;
}

.p-3 {
  padding: 1rem;
}

.border {
  border: 1px solid #dee2e6;
}

.border-radius {
  border-radius: 0.375rem;
}

.bg-light {
  background-color: #f8f9fa;
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #495057;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  color: #fff;
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-success {
  color: #fff;
  background-color: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  color: #fff;
  background-color: #1e7e34;
  border-color: #1c7430;
}

.btn-danger {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover {
  color: #fff;
  background-color: #c82333;
  border-color: #bd2130;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}