/* Copyright 2025 Jonathan Vajda */

body {
  font-family: sans-serif;
  margin: 1em;
}

#toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.75em;
  font-size: 0.85rem;
}

#toolbar button {
  padding: 4px 8px;
  font-size: 0.85rem;
}

#previewRdfBtn {
  margin-left: auto;
}

#hot {
  margin-bottom: 1em;
}

.ht_clone_top thead th {
  position: relative;
  font-weight: bold;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ccc;
}

/* Only affect the Handsontable inside #hot */
#hot .handsontable .htCore td,
#hot .handsontable .htCore th {
  font-size: 14px;     /* bump as you like: 14–16 is common */
  line-height: 1.3;    /* optional: nicer spacing */
}

/* Optional: a smidge more row height for readability */
#hot .handsontable .ht_master .wtHolder {
  line-height: 1.3;
}


.header-menu {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  color: #888;
}

textarea {
  width: 100%;
  height: 200px;
  font-family: monospace;
}

input.htFocusCatcher {
  width: 0 !important;
  height: 0 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* put this in your stylesheet */
.curation-table tr.changed-row {
  background: #fff7d6;         /* soft yellow */
  outline: 1px solid #f7d08a;  /* subtle edge so it pops on white UIs */
  transition: background .15s ease-in-out, outline-color .15s ease-in-out;
}

/* Only the fixed-left clone contains row headers */
.ht_clone_left .curation-bulb-th {
  text-align: center !important;
  width: 22px;                /* adjust to taste */
  padding: 0 !important;
}

.ht_clone_left .curation-bulb {
  display: inline-block;
  width: 1.1em;
  line-height: 1.1em;
  text-align: center;
  user-select: none;
  font-weight: 600;
}

/* Handsontable adds .htInvalid to failing cells */
.htInvalid {
  background-color: #ffecec !important; /* very light red */
}

/* Colors per status */
.curation-bulb.metadata_complete   { color: #16a34a; } /* green */
.curation-bulb.metadata_incomplete { color: #ea580c; } /* orange */
.curation-bulb.uncurated           { color: #6b7280; } /* gray  */


/* Keep the header compact; no visual change to your bulb classes */
.ht_clone_left .curation-bulb-th {
  text-align: center !important;
  width: 22px;
  padding: 0 !important;
}


#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 300px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  background-color: #323232;
  color: white;
  padding: 12px 16px;
  margin-top: 8px;
  border-radius: 6px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.success { background-color: #4caf50; }   /* Green */
.toast.warning { background-color: #ff9800; }   /* Orange */
.toast.error   { background-color: #f44336; }   /* Red */
