/*
 * AIFVS-ARTIFACT
 * @id: AVIS-COMPONENTS-CSS-002C
 * @version: 2.3.0
 * @nexus_root: NEXUS.ROOT.V3
 * @visibility: PUBLIC_INDEX
 * @deps: [AVIS-THEME-CSS-002A]
 * @description: Black glass form controls, dark native select menus with SVG chevron, Firegem gradient buttons, drawers, and pills.
 */

label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.label-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

input,
select,
textarea {
  width: 100%;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.94) 0%, rgba(11, 11, 14, 0.88) 100%);
  color: var(--text);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 8px;
  padding: 0.58rem 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.75);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--firegem);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.75),
    0 0 0 2px rgba(194, 73, 20, 0.2);
}

select {
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.2rem;
  cursor: pointer;
  background-color: #09090c;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://w3.org' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d96b27' d='M2.2 4.2L6 8l3.8-3.8-.9-.9L6 6.2 3.1 3.3z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(5, 5, 7, 0.94) 0%, rgba(11, 11, 14, 0.88) 100%);
  background-repeat: no-repeat, repeat;
  background-position: right 0.75rem center, 0 0;
  background-size: 12px 12px, 100% 100%;
}

select:hover {
  border-color: rgba(217, 107, 39, 0.45);
}

select option,
select optgroup {
  background-color: #0b0a0d;
  color: #ddd8d2;
  padding: 0.45rem 0.65rem;
}

select option:hover,
select option:focus,
select option:checked {
  background-color: #3a180a;
  color: #f5ebe0;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

#output {
  min-height: 320px;
  background: linear-gradient(180deg, rgba(3, 3, 5, 0.96) 0%, rgba(10, 8, 9, 0.92) 100%);
  border: 1px solid rgba(194, 73, 20, 0.36);
  color: #cfc9c2;
  font-size: 0.82rem;
  box-shadow:
    inset 0 2px 12px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(194, 73, 20, 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.85rem;
}

.align-end {
  align-self: end;
  margin-top: 0;
}

.toolbar-top {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

button {
  background: linear-gradient(135deg, var(--firegem) 0%, var(--firegem-deep) 100%);
  color: #f7f3ef;
  border: 1px solid rgba(217, 107, 39, 0.35);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow:
    0 4px 12px var(--firegem-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

button:hover {
  filter: brightness(1.08);
  box-shadow:
    0 5px 16px rgba(194, 73, 20, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

button:active {
  transform: translateY(1px);
}

button.secondary {
  background: linear-gradient(180deg, rgba(26, 25, 30, 0.85) 0%, rgba(16, 15, 19, 0.92) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(194, 73, 20, 0.22);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

button.secondary:hover {
  background: linear-gradient(180deg, rgba(36, 32, 33, 0.92) 0%, rgba(22, 19, 21, 0.96) 100%);
  border-color: rgba(217, 107, 39, 0.45);
  box-shadow: 0 0 10px rgba(194, 73, 20, 0.16);
}

button.datalake {
  background: linear-gradient(135deg, rgba(28, 18, 14, 0.92) 0%, rgba(46, 24, 14, 0.95) 100%);
  border: 1px solid rgba(217, 107, 39, 0.48);
  color: var(--firegem-ember);
  box-shadow:
    0 3px 12px rgba(140, 45, 8, 0.22),
    inset 0 1px 0 rgba(224, 142, 69, 0.14);
}

button.datalake:hover {
  background: linear-gradient(135deg, rgba(42, 24, 16, 0.96) 0%, rgba(64, 31, 16, 0.98) 100%);
  color: #f5ebe0;
  box-shadow: 0 4px 16px rgba(194, 73, 20, 0.3);
}

button.small {
  padding: 0.32rem 0.68rem;
  font-size: 0.78rem;
}

button.danger {
  background: linear-gradient(180deg, rgba(201, 59, 59, 0.08) 0%, rgba(120, 28, 28, 0.12) 100%);
  border: 1px solid rgba(201, 59, 59, 0.35);
  color: var(--danger);
  box-shadow: none;
}

button.danger:hover {
  background: rgba(201, 59, 59, 0.18);
  box-shadow: 0 0 10px rgba(201, 59, 59, 0.18);
}

.manual-drawer {
  margin-top: 0.85rem;
  border: 1px solid var(--glass-border-subtle);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(180deg, rgba(10, 10, 13, 0.72) 0%, rgba(6, 6, 8, 0.84) 100%);
}

.manual-drawer summary {
  cursor: pointer;
  font-size: 0.83rem;
  color: var(--firegem-soft);
  font-weight: 500;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.pill {
  background: linear-gradient(135deg, rgba(194, 73, 20, 0.14) 0%, rgba(140, 45, 8, 0.18) 100%);
  border: 1px solid rgba(217, 107, 39, 0.35);
  color: #dfc9b6;
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.pill button {
  background: none;
  border: none;
  box-shadow: none;
  color: var(--firegem-ember);
  padding: 0;
  font-size: 0.95rem;
  line-height: 1;
}

.pill button:hover {
  color: #ffffff;
  box-shadow: none;
}

#status {
  font-size: 0.85rem;
  color: var(--firegem-ember);
  font-weight: 600;
}

.hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.command-guide {
  margin-top: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(90deg, rgba(194, 73, 20, 0.08) 0%, rgba(8, 8, 11, 0.78) 100%);
  border: 1px solid var(--glass-border-subtle);
  border-left: 3px solid var(--firegem);
  border-radius: 8px;
}

.command-guide code {
  color: var(--firegem-ember);
  background: rgba(194, 73, 20, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.header-steps strong {
  color: #f5ebe0;
  font-weight: 600;
}

.header-steps code {
  color: var(--firegem-ember);
  background: rgba(194, 73, 20, 0.16);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}
/*
 * AIFVS-PATCH
 * @id: AVIS-HELP-GUIDE-CSS-002D
 * @version: 1.0.0
 * @nexus_root: NEXUS.ROOT.V3
 * @description: Firegem Black Glass styling for the collapsible HTML help guide section.
 */

.help-guide {
  width: 100%;
  margin-top: 0.55rem;
  background: linear-gradient(180deg, rgba(16, 14, 17, 0.82) 0%, rgba(7, 7, 9, 0.9) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  text-align: left;
}

.help-guide summary {
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--firegem-ember);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.help-guide summary::-webkit-details-marker {
  display: none;
}

.help-guide summary::before {
  content: "▸";
  color: var(--firegem-soft);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.help-guide[open] summary::before {
  transform: rotate(90deg);
}

.help-body {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
}

.help-intro {
  margin: 0;
  padding: 0.65rem 0.8rem;
  background: rgba(194, 73, 20, 0.1);
  border-left: 3px solid var(--firegem);
  border-radius: 6px;
}

.help-step-block {
  padding: 0.6rem 0.8rem;
  background: rgba(5, 5, 7, 0.65);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 6px;
}

.help-step-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #f5ebe0;
}

.help-step-block p {
  margin: 0.25rem 0;
  color: var(--muted);
}

.help-step-block p strong {
  color: var(--text);
}

.help-guide code {
  color: var(--firegem-ember);
  background: rgba(194, 73, 20, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.79rem;
}
