/* Thompson Axiomata floating launcher & slide-over Ontology Library + TTL Upload drawer for WebVOWL.
 * Harmonized with thompsonaxiomata.com dark editorial slate (#101920) and teal (#006a67 / #54d1c9).
 */

#ta-launcher {
  position: fixed;
  top: 12px;
  left: 14px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #101920;
  color: #edf3f7;
  border: 1px solid #2b3f4e;
  border-radius: 999px;
  padding: 7px 14px;
  font: 600 13px/1.2 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 25, 32, 0.32);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

#ta-launcher:hover {
  background: #16242f;
  border-color: #54d1c9;
  transform: translateY(-1px);
}

#ta-launcher .ta-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #54d1c9;
  box-shadow: 0 0 8px rgba(84, 209, 201, 0.7);
}

/* Shift WebVOWL corner logo slightly down so it never collides with the launcher button */
#logo {
  top: 54px !important;
}

#ta-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: rgba(10, 17, 23, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

#ta-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

#ta-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(400px, 94vw);
  background: #101920;
  color: #e6eff5;
  border-right: 1px solid #243644;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  font: 13px/1.45 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 10px 0 36px rgba(0, 0, 0, 0.48);
  transform: translateX(-105%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

#ta-drawer.is-open {
  transform: translateX(0);
}

.ta-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid #243644;
  background: #15212b;
}

.ta-drawer__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.ta-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
  font-size: 11.5px;
}

.ta-back-site {
  color: #54d1c9;
  text-decoration: none;
}

.ta-back-site:hover {
  color: #8ce7e0;
  text-decoration: underline;
}

.ta-drawer__close {
  background: transparent;
  color: #a7bac7;
  border: 1px solid #324858;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font: 600 12.5px "Roboto", system-ui, sans-serif;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.ta-drawer__close:hover {
  color: #ffffff;
  border-color: #54d1c9;
  background: #1d2e3c;
}

.ta-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ta-upload-box {
  background: #15212b;
  border: 1px dashed #355063;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.ta-upload-box.is-dragover {
  border-color: #54d1c9;
  background: #143036;
}

.ta-upload-box h3,
.ta-section-title {
  margin: 0;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8ea5b5;
}

.ta-hidden {
  display: none !important;
}

.ta-filter-input {
  margin: 6px 0 8px;
}

.ta-empty {
  font-size: 12px;
  color: #8ea5b5;
}

.ta-input {
  width: 100%;
  box-sizing: border-box;
  background: #0c141a;
  color: #edf3f7;
  border: 1px solid #2b4050;
  border-radius: 8px;
  padding: 7px 9px;
  font: 13px "Roboto", system-ui, sans-serif;
  transition: border-color 0.16s ease;
}

.ta-input:focus {
  outline: none;
  border-color: #54d1c9;
}

.ta-file-label {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: #1a2a36;
  border: 1px solid #304759;
  color: #edf3f7;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.ta-file-label:hover {
  border-color: #54d1c9;
  color: #7ee3dc;
}

.ta-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #cbd9e3;
  cursor: pointer;
}

.ta-btn {
  background: #006a67;
  color: #ffffff;
  border: 1px solid #54d1c9;
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 13px "Roboto", system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.ta-btn:hover:not(:disabled) {
  background: #00827e;
  transform: translateY(-1px);
}

.ta-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.ta-status {
  font-size: 12px;
  min-height: 16px;
  color: #8ea5b5;
}

.ta-status.is-ok { color: #6df0be; }
.ta-status.is-err { color: #ff9c8a; }

.ta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ta-onto-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #15212b;
  border: 1px solid #243644;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.ta-onto-item:hover,
.ta-onto-item.is-active {
  border-color: #35576b;
  border-left-color: #54d1c9;
  background: #1b2c39;
  transform: translateX(2px);
}

.ta-onto-item__title {
  font-weight: 600;
  color: #ffffff;
  font-size: 13px;
}

.ta-onto-item__meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #54d1c9;
  margin-top: 2px;
}

.ta-onto-item__reason {
  font-size: 11.5px;
  color: #9bb0bf;
  margin-top: 2px;
}

.ta-onto-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.ta-mini-btn {
  background: transparent;
  color: #9bb0bf;
  border: 1px solid #304657;
  border-radius: 6px;
  padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ta-mini-btn:hover {
  color: #ffffff;
  border-color: #54d1c9;
}

.ta-mini-btn--del:hover {
  color: #ff9c8a;
  border-color: #e6735c;
}

.ta-admin-box {
  margin-top: 6px;
  padding: 10px 12px;
  background: #15212b;
  border: 1px solid #243644;
  border-radius: 10px;
}

.ta-admin-box summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #9bb0bf;
}

.ta-admin-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ta-admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ta-btn--sm {
  padding: 5px 12px;
  font-size: 12px;
}
