/* ─── IDA Git Native Dialog System ─── */
/* Native dark look with proper UX sizing */

:root {
  /* Surfaces */
  --bg: #3c3c3c;
  --bg-darker: #2d2d2d;
  --bg-input: #1a1a1a;
  --bg-titlebar: #333333;
  --bg-button: #4a4a4a;
  --bg-button-hover: #585858;

  /* Text */
  --text: #d4d4d4;
  --text-dim: #999999;
  --text-label: #bbb;

  /* Accent */
  --teal: #00ccaa;
  --teal-dim: rgba(0, 204, 170, 0.15);
  --teal-hover: rgba(0, 204, 170, 0.25);

  /* Borders */
  --border: #555;
  --border-input: var(--teal);
  --sep: #4a4a4a;

  /* Chrome */
  --dot-close: #ff5f57;
  --dot-min: #febc2e;
  --dot-max: #28c840;

  /* Font */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Menlo", "Consolas", monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg-darker);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
  line-height: 1.45;
}

/* ─── Window ─── */
.window {
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #2a2a2a;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

/* ─── Titlebar ─── */
.window-titlebar {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  background: var(--bg-titlebar);
  border-bottom: 1px solid var(--sep);
  gap: 12px;
  user-select: none;
  flex-shrink: 0;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.window-dot.close { background: var(--dot-close); }
.window-dot.min { background: var(--dot-min); }
.window-dot.max { background: var(--dot-max); }

.window-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Body ─── */
.window-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ─── Description ─── */
.description {
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

/* ─── Separator ─── */
.sep {
  height: 1px;
  background: var(--sep);
  margin: 16px 0;
}

/* ─── Form Row ─── */
.form-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-row + .form-row {
  margin-top: 14px;
}

.form-label {
  font-size: 13px;
  color: var(--text-label);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Input ─── */
.input-wrap {
  flex: 1;
  display: flex;
  height: 34px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--teal);
  transition: box-shadow 0.15s;
}

.input-wrap:focus-within {
  box-shadow: 0 0 0 2px rgba(0, 204, 170, 0.2);
}

.input-wrap input {
  flex: 1;
  height: 100%;
  padding: 0 10px;
  background: var(--bg-input);
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
}

.input-wrap input::placeholder {
  color: #555;
}

.input-arrow {
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-left: 1px solid var(--sep);
  cursor: pointer;
  flex-shrink: 0;
}

.input-arrow:hover {
  background: var(--bg-button-hover);
}

.input-arrow svg {
  width: 10px;
  height: 10px;
  color: var(--text-dim);
}

/* ─── Browse button ─── */
.btn-browse {
  height: 34px;
  padding: 0 14px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-button);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 2px;
  flex-shrink: 0;
  transition: background 0.12s;
}

.btn-browse:hover {
  background: var(--bg-button-hover);
}

/* ─── Buttons ─── */
.button-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--sep);
}

.button-bar.no-border {
  border-top: none;
}

.btn {
  height: 32px;
  min-width: 80px;
  padding: 0 22px;
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: var(--bg-button);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  transition: background 0.12s;
}

.btn:hover {
  background: var(--bg-button-hover);
}

.btn:active {
  background: #505050;
}

.btn-primary {
  border: 2px solid var(--teal);
  padding: 0 21px;
}

.btn-primary:hover {
  background: rgba(0, 204, 170, 0.08);
}

/* ─── Table ─── */
.table-container {
  flex: 1;
  overflow: auto;
  background: var(--bg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th {
  background: var(--bg);
  border-bottom: 1px solid var(--sep);
  border-right: 1px solid var(--sep);
  padding: 8px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  user-select: none;
}

.data-table th:last-child {
  border-right: none;
}

.data-table td {
  padding: 6px 14px;
  color: var(--text);
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.5;
}

.data-table tbody tr {
  cursor: default;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.data-table tbody tr:hover {
  background: var(--teal-hover);
}

.data-table .col-hash {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ─── Page Wrapper ─── */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* ─── Back link ─── */
.back-link {
  position: fixed;
  top: 16px;
  left: 16px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 100;
  transition: color 0.12s;
}

.back-link:hover {
  color: var(--teal);
}

.back-link svg {
  width: 14px;
  height: 14px;
}
