h2 {
  text-align: center;
}

/* TABLE */
.tableWrap table {
  width: 100%;
  border-collapse: collapse;
  background: #111a2b;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0 35px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tableWrap th {
  background: #151f33;
  color: var(--accent);
  padding: 12px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tableWrap td {
  padding: 12px;
  color: #e6eef6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
  vertical-align: middle;
}

.tableWrap tr:nth-child(even) {
  background: #0f1828;
}

.tableWrap tr:hover {
  background: #1c273d;
}

/* ACTION BUTTONS */
.actionButton {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-right: 4px;
  transition: 0.15s ease;
  gap: 8px;
  color: white;
}

.actionButton.modify {
  background: #2d52b8;
}

.actionButton.modify:hover {
  background: #294ba8;
}

.actionButton.delete {
  background: #d03737;
}

.actionButton.delete:hover {
  background: #b82e2e;
}

/* SEARCH FORM */
#searchForm {
  background: #0f1828;
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 35px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.searchRow {
  margin-bottom: 14px;
}

#searchForm label {
  display: block;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}

#searchForm input,
#searchForm select {
  width: 100%;
  padding: 10px 13px;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  border-radius: 8px;
  font-size: 0.95rem;
}

#searchForm input:focus,
#searchForm select:focus {
  border-color: var(--accent);
  outline: none;
}

#searchButton {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
}

#searchButton:hover {
  background: #443ad6;
}

/* FORM */
#mainForm {
  background: #0f1828;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

#mainForm label {
  font-weight: 500;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  margin-top: 14px;
}

#mainForm input,
#mainForm textarea {
  width: 100%;
  padding: 10px 13px;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  border-radius: 8px;
  font-size: 0.95rem;
  resize: vertical;
}

#mainForm input:focus,
#mainForm textarea:focus {
  border-color: var(--accent);
  outline: none;
}

#mainForm input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* INFORMATION */
#viewInformation {
  margin-top: 25px;
  padding: 18px;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.viewGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.viewItem {
  background: #0f1828;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.viewLabel {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.viewValue {
  font-size: 0.9rem;
  color: #e6eef6;
  word-break: break-word;
}

.viewValue.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(45, 145, 184, 0.15);
  color: #2d8ab6;
  font-weight: 600;
}

.viewValue.mono {
  font-family: monospace;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* CONFIRMATION CHECKBOXES */
.confirmSection {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.confirmItem {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--muted);
  cursor: pointer;
}

.confirmItem:last-child {
  margin-bottom: 0;
}

.confirmItem input[type="checkbox"] {
  margin-top: 3px;
  width: 22px !important;
  height: 22px !important;
  accent-color: var(--accent);
  cursor: pointer;
}

.confirmItem span {
  line-height: 2;
  color: #cdd7e1;
}

.confirmItem:hover span {
  color: #ffffff;
}

/* BUTTONS */
.productButtons button {
  width: 100%;
  padding: 12px 16px;
  margin-top: 15px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.productButtons .secondary {
  background: #d03737;
}

.productButtons .secondary:hover {
  background: #b62f2f;
}

/* RESPONSIVE TABLE */
@media (max-width: 700px) {
  .tableWrap table,
  .tableWrap thead,
  .tableWrap tbody,
  .tableWrap th,
  .tableWrap td,
  .tableWrap tr {
    display: block;
  }

  .tableWrap th {
    display: none;
  }

  .tableWrap td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
  }

  .tableWrap td:before {
    content: attr(data-label);
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
  }
}
