body {
  background-color: #f8f9fa;
}

.card {
  margin-bottom: 20px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  margin-bottom: 5px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
  cursor: grab;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}

.drag-error {
    border: 2px solid red !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

#loading {
  display: none;
  font-size: 1.2em;
  color: #6c757d;
}

.card {
  margin-bottom: 20px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table th {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

.table tr:hover {
  background-color: #f1f1f1;
}

/* Bearbeitbare Zellen */
td[contenteditable="true"] {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  padding: 8px;
  cursor: text;
}

td[contenteditable="true"]:focus {
  background-color: #fff;
  border: 1px solid #007bff;
  outline: none;
}

/* Buttons */
.btn-sm {
  margin: 2px;
  font-size: 0.875rem;
  padding: 5px 10px;
}

/* Power-Zellen */
.power-cell {
  text-align: right;
  font-family: monospace;
}

.checkbox-container {
    display: flex;
    gap: 10px; /* Abstand zwischen den Checkboxen */
    margin-top: 5px; /* Optional: Abstand zum oberen Element */
}

.form-check-inline {
    display: flex;
    align-items: center;
}

body.dark-mode {
    background-color: #1c1c1c;
    color: #eaeaea;
}

body.dark-mode .card,
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .table {
    background-color: #2a2a2a;
    color: #f1f1f1;
    border-color: #444;
}


body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    background-color: #2c2c2c;
    color: #fff;
    border-color: #555;
}

body.dark-mode .card-header,
body.dark-mode .btn,
body.dark-mode .alert {
    background-color: #2c2c2c;
    color: #fff;
    border-color: #444;
}

body.dark-mode .btn-outline-secondary {
    border-color: #888;
    color: #ddd;
}

body.dark-mode .btn-outline-secondary:hover {
    background-color: #444;
    color: #fff;
}

body.dark-mode .alert-danger {
    background-color: #661111;
    color: #f8d7da;
}

body, .card, .form-control, .form-select {
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode #state_token {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #555;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

body.dark-mode #state_token::placeholder {
    color: #bbb;
}

body.dark-mode .login-card {
    background-color: #2f2f2f;
    border: 1px solid #444;
}
