/* Body und HTML-Einstellungen */
html, body {
  font-family: Arial, sans-serif;
  background-color: #333;
  color: white;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hauptbereich */
main {
  flex: 1; /* Dehnt den Main-Inhalt aus, damit der Footer am unteren Rand bleibt */
  padding: 20px; /* Platz für Inhalte innerhalb des Main-Bereichs */
  box-sizing: border-box;
  overflow-y: auto; /* Scrollbar nur bei Bedarf */
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
  margin-top: auto; /* Positioniert den Footer korrekt bei wenig Inhalt */
  width: 100%;
  box-sizing: border-box;
}

/* Footer-Text */
footer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer-Links */
footer a {
  color: #4CAF50;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

header {
    background-color: #444;
    padding: 10px;
    text-align: right;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

button {
    background-color: #5c9dff;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

button:hover {
    background-color: #3b7cc2;
}

input {
  padding: 10px;
  border: 1px solid #555;
  background-color: #222;
  color: white;
}

#notificationIcon {
    display: inline-block;
    margin-left: 20px;
    cursor: pointer;
}

#toolTable {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

#toolTable th, #toolTable td {
    border: 1px solid #555;
    padding: 8px;
    text-align: left;
}

#newToolModal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Allgemeines Modal-Styling */
.modal {
  display: none; /* Modal ist standardmäßig unsichtbar */
  position: fixed;
  z-index: 1; /* Sitzt über anderen Elementen */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Scrollen, falls nötig */
  background-color: rgba(0, 0, 0, 0.4); /* Halbtransparenter Hintergrund */
  padding-top: 60px;
}

/* Modal-Inhalt */
.modal-content {
  background-color: #222;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  position: relative; /* Damit der Close-Button positioniert werden kann */
  border-radius: 5px;
}

/* Close Button */
.modal-content > .close {
  color: white;
  font-size: 30px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 25px;
  padding: 5px;
  cursor: pointer;
}

.modal-content > .close:hover,
.modal-content > .close:focus {
  color: #f44336;
  text-decoration: none;
  cursor: pointer;
}

/* Formular-Elemente */
.modal-content > form {
  display: grid;
  grid-template-columns: 1fr; /* Eine Spalte */
  gap: 15px;
  margin-top: 10px;
}

.modal-content > label {
  font-weight: bold;
  margin-bottom: 5px;
}

.modal-content > input, textarea, select {
  padding: 10px;
  border: 1px solid #555;
  background-color: #222;
  color: white;
}



.modal-content > textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-content > button {
  background-color: #5c9dff;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  width: 100%;
}

.modal-content > button:hover {
  background-color: #3b7cc2;
}

/* Stil für das Suchfeld */
#toolSearch {
  padding: 10px;
  margin: 10px 0;
  width: 100%;
  max-width: 300px;
  border: 1px solid #555;
  background-color: #222;
  color: white;
}

/* Stil für die Werkzeug-Tabelle */
#toolTable {
  width: 100%;
  border-collapse: collapse;
}

#toolTable th, #toolTable td {
  padding: 8px;
  text-align: left;
  border: 1px solid #555;
}

#toolTable th {
  background-color: #333;
  color: white;
}

#toolTable td {
  background-color: #222;
  color: white;
}

/* Hover-Effekt für Tabellenzeilen */
.tool-item:hover {
  background-color: #444;
}

.hidden {
  display: none;
}

table select.filter {
  width: 100%;
  padding: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

table input[type="text"] {
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  font-size: 14px;
}