body {
  font-family: Arial, Helvetica, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.status-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.status-section p {
  margin: 8px 0;
}

.controls-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.input-row {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 15px;
}

.input-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.button-row {
  display: flex;
  gap: 10px;
}

[contenteditable="true"] {
  background-color: rgb(206, 194, 194);
}

[contenteditable="true"]:focus {
  background-color: white;
}

th,
button,
input,
td,
p,
label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

button {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  border-radius: 4px;
}

button:hover {
  background-color: #e0e0e0;
}

input[type="number"] {
  width: 80px;
  font-size: 16px;
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  border: 1px solid #ddd;
}

th {
  background-color: #f5f5f5;
  font-weight: bold;
  border: 1px solid #ddd;
  padding: 10px 8px;
  text-align: left;
}

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

.row-remove {
  text-decoration: none;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
}

#bulk-edit-textarea {
  width: 100%;
  min-height: 300px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  padding: 10px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.save-section {
  margin-top: 15px;
}

/* Mobile styles - larger touch targets and text */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .input-row {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .input-row label {
    width: 100%;
    font-size: 26px;
  }

  .button-row {
    flex-wrap: wrap;
  }

  .action-buttons {
    flex-wrap: wrap;
  }

  th,
  td,
  p {
    font-size: 26px;
  }

  button {
    padding: 16px 28px;
    font-size: 26px;
  }

  input[type="number"] {
    font-size: 26px;
    padding: 10px;
    width: 120px;
  }

  th {
    padding: 12px;
  }

  td {
    padding: 12px;
  }

  #bulk-edit-textarea {
    font-size: 26px;
    padding: 15px;
  }

  .status-section {
    margin-bottom: 25px;
  }

  .controls-section {
    margin-bottom: 25px;
  }

  .row-remove {
    font-size: 28px;
  }
}

/* Dark mode support based on device settings */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  .status-section,
  .controls-section {
    border-bottom-color: #444;
  }

  [contenteditable="true"] {
    background-color: #3a3a3a;
    color: #e0e0e0;
  }

  [contenteditable="true"]:focus {
    background-color: #2a2a2a;
    color: #ffffff;
  }

  button {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
  }

  button:hover {
    background-color: #3a3a3a;
  }

  input[type="number"] {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
  }

  table {
    border-color: #444;
  }

  th {
    background-color: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
  }

  td {
    border-color: #444;
    background-color: #1a1a1a;
  }

  #bulk-edit-textarea {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
  }
}
