table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
}
th, td {
  border: 1px solid #ddd;
  padding: 0;
  text-align: left;
  min-width: 120px;
}

td:last-child, th:last-child {
  min-width: 80px;
}
th {
  background-color: #f2f2f2;
  user-select: none;
}

th:not(:last-child):hover {
  background-color: #e0e0e0;
}
.controls {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash-message {
  padding: 5px 10px;
  border-radius: 4px;
  display: none;
  transition: opacity 0.5s ease-in-out;
}
.flash-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.flash-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
input[type="text"], input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  border: none;
  padding: 8px 4px;
  background: transparent;
  font-size: 16px;
}
input[type="text"]:focus, input[type="password"]:focus {
  outline: none;
  background: #f8f8f8;
}

td {
  position: relative;
}

td button.c-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 4px 8px;
  font-size: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.8);
}

td input[type="text"] {
  width: 100%;
  margin: 0;
  padding: 4px;
}

.controls input[type="password"] {
  width: 200px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 0;
}

.controls-row:first-child {
  margin-top: 0;
}

.keys-list {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  background: #f8f8f8;
  border-radius: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.key-item {
  padding: 4px 8px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.2s;
}

.key-item:hover {
  background-color: #fff0f0;
}

.key-item.active {
  background: #d4edda;
  border-color: #c3e6cb;
}
