* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: #f8f9fa;
  color: #222;
  max-width: 100%;
  overflow-x: hidden;
}

header {
  background: #ffffff;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  font-size: 1.25rem;
  margin: 0;
  color: #0ea5e9;
}

.status {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.status.online {
  color: #22c55e;
}

.status.offline {
  color: #ef4444;
}

.main {
  padding: 1rem;
  max-width: 700px;
  margin: auto;
  width: 100%;
}

.section {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.row input,
.row select,
.row textarea {
  flex: 1 1 100%;
  min-width: 0;
}

.row button {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 48%;
}

@media (min-width: 640px) {
  .row {
    flex-wrap: nowrap;
  }

  .row input,
  .row select {
    flex: 2 1 auto;
  }

  .row button {
    flex: 1 1 auto;
    min-width: auto;
  }
}

input,
select,
textarea {
  flex: 1;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
}

textarea {
  width: 100%;
  resize: vertical;
}

button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: #0ea5e9;
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #0284c7;
}

button.danger {
  background: #ef4444;
}

button.danger:hover {
  background: #dc2626;
}

.tool-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f1f5f9;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  gap: 1rem;
  transition: background 0.2s ease;
}

.tool-item:hover {
  background: #e2e8f0;
}

.tool-item span {
  flex: 1;
  word-break: break-word;
}

.delete {
  font-size: 1rem;
  padding: 0.3rem 0.75rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.delete:hover {
  background: #dc2626;
}

#importInput {
  display: none;
}

.import-label {
  background: #f59e0b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s ease;
  display: inline-block;
  margin-left: 0.5rem;
}

.import-label:hover {
  background: #d97706;
}

#fabAddJob {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  background: #0ea5e9;
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
