/* styles.css – new shared gate styles
   (Make sure this file does NOT redefine :root theme variables)
*/

/* Basic page layout wrapper (optional) */
.gate-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 12px 24px;
}

/* ------------------------------
 * Page header
 * ------------------------------ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* ------------------------------
 * Header buttons
 * ------------------------------ */
.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--gc-accent-border, #888);
  background: var(--gc-accent-bg, #f0f0f0);
  color: var(--gc-accent-text, #222);
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-header:hover {
  filter: brightness(0.97);
}

.btn-header-secondary {
  background: var(--gc-muted-bg, #e6e6e6);
  border-color: var(--gc-muted-border, #aaa);
}

button.btn-header {
  border: 1px solid var(--gc-accent-border, #888);
  background: var(--gc-accent-bg, #f0f0f0);
}

/* ------------------------------
 * Gate selector styled like button
 * ------------------------------ */
.header-select-wrapper {
  position: relative;
  display: inline-block;
}

.header-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 6px 30px 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--gc-accent-border, #888);
  background: var(--gc-accent-bg, #f0f0f0);
  color: var(--gc-accent-text, #222);
  font-size: 0.95rem;
  cursor: pointer;
}

.header-select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  pointer-events: none;
  color: var(--gc-accent-text, #222);
}

/* ------------------------------
 * Form footer actions (Save / Back to Settings)
 * ------------------------------ */
.form-footer-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.btn-primary {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: var(--gc-primary, #007bff);
  color: #fff;
  cursor: pointer;
}

.btn-secondary {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #aaa;
  background: #f5f5f5;
  color: #222;
  text-decoration: none;
  cursor: pointer;
}
