body {
  font-family: Arial, sans-serif;
  margin: 5px;
  background-color: #f4f4f9;
  color: #333;
}

h1,
h2 {
  color: #444;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 5px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 5px;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
}
label {
  font-size: 0.7em;
  font-weight: bold;
}
tr:nth-child(even) {
  background-color: #f9f9f9;
}

select,
button,
input,
textarea {
  padding: 5px;
  margin: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
}

button {
  background-color: #4caf50;
  color: white;
  border: none;
}

button:hover {
  background-color: #45a049;
}

pre {
  background-color: #f8f8f8;
  padding: 16px;
  border: 1px solid #ddd;
  overflow: auto;
  font-family: monospace;
}

a {
  color: #0645ad;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#logs {
  background-color: #000;
  color: #fff;
  padding: 16px;
  height: 95%;
  overflow-y: auto;
  border: 1px solid #ddd;
}

/* New styles for error page */
.error-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #ff0000;
  font-family: 'Courier New', Courier, monospace;
  text-align: center;
}

.error-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.error-header h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
  font-weight: normal;
}

.error-details {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.error-stack {
  color: #ff3333;
  white-space: pre-wrap;
  font-size: 0.9em;
  line-height: 1.4;
}

.error-meta {
  font-size: 0.9em;
  color: #ff6666;
  margin-top: 20px;
}

/* Simple loader effect */
.loader {
  position: relative;
  color: transparent; /* Hide text while loading */
  pointer-events: none; /* Prevent clicks */
}

.loader::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  margin: -10px 0 0 -10px;
  border: 3px solid #fff;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  div[style*='grid-template-columns: 1fr auto 1fr'] {
    grid-template-columns: 1fr !important;
  }
  div[style*='width: 2px'] {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #container_app {
    padding: 20px 15px !important;
  }
  div[style*='display: flex'][style*='gap: 15px'] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  #filter-sort-controls > div {
    width: 100%;
  }
  #filter-sort-controls select,
  #filter-sort-controls input {
    width: 100% !important;
  }

  .sort-arrow {
    cursor: pointer;
    font-size: 12px;
    margin-left: 4px;
    opacity: 0.6;
    user-select: none;
    text-decoration: none !important;
    color: #000 !important;
  }

  .sort-arrow.active.asc::after {
    content: '▲';
    margin-left: 4px;
  }

  .sort-arrow.active.desc::after {
    content: '▼';
    margin-left: 4px;
  }

  /* Optional: style for sorted column highlight */
  th.sorted {
    background-color: #e7f3ff;
  }
}
