/* Keep space for scrollbar to avoid table shifting left/right */
html { scrollbar-gutter: stable both-edges; }

/* Page scaffolding */
body { font-family: sans-serif; margin: 30px; }
h1 { margin-bottom: 10px; }

.input-area { margin-bottom: 20px; }
textarea {
  width: 100%;
  height: 150px;
  font-family: monospace;
  padding: 10px;
  font-size: 14px;
}
.buttons button { margin-top: 10px; margin-right: 10px; }

/* Drag & drop zone */
.dropzone {
  border: 2px dashed #bbb;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  color: #666;
  margin-top: 16px;
}
.dropzone.dragover {
  border-color: #4a90e2;
  background: #f5faff;
  color: #2a6fbe;
}
#fileInput { margin-top: 8px; }

/* Table layout + fixed column widths */
.tag-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tag-table th, .tag-table td {
  padding: 10px;
  border: 1px solid #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Left-align ONLY the name column; center the rest */
/* Center everything except the name column (top row) */
.tag-table th.col-name, .tag-table td.col-name { text-align: left; white-space: nowrap; }
.tag-table th:not(.col-name), .tag-table td:not(.col-name) { text-align: center; }

/* Make preview rows left-aligned (override the centering above) */
.tag-table tr.preview-row td {
  text-align: left !important;
}

/* Column widths (tweak if you like) */
.tag-table th.col-name   { width: 58%; }
.tag-table th.col-type   { width: 10%; }
.tag-table th.col-vendor { width: 6%; }
.tag-table th.col-size   { width: 8%; }
.tag-table th.col-status { width: 8%; }
.tag-table th.col-action { width: 10%; }

/* Status colors */
.status-pass { color: green; }
.status-fail { color: red; }

/* Action button stays a consistent width so it doesn't jiggle */
.action-btn { display: inline-block; min-width: 120px; }

/* Preview row: left-aligned, compact padding */
.preview-row td { padding: 0; white-space: normal; text-align: left; }
.preview-name { margin: 10px 10px 6px; font-size: 14px; line-height: 1.3; word-break: break-word; }

.tag-table iframe { display: block; } /* avoid inline whitespace creating extra gaps */

/* Optional: small monospace chip look for sizes */
.dim-chip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

#footer {
  background-color: #343a40;
  color: white;
  text-align: center;
  padding: 10px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  left:0;
  font-size:0.9rem;
  padding-bottom: 1px;
  padding-top: 12px;
}

#footer p {
  margin: 0;
  margin-bottom: 1rem;
}

.tagsafe-logo {
  display: inline-block;
  max-width: 160px;
  padding-bottom:10px;
}