/* ================================
   BASE BUTTON
================================ */
.page-buttons {
  /*margin: 20px 0;*/
}
/* ================================
   BASE BUTTON
================================ */

/* ================================
   BASE BUTTON
================================ */

.page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  margin: 20px 5px;
  padding: 10px 16px;
  min-width: 140px;

  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;

  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);

  background: var(--bg-elevated);
  color: var(--text-primary);

  text-decoration: none;
  cursor: pointer;

  line-height: 1;

  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);

  box-shadow: var(--shadow-sm);
}

/* ================================
   INTERACTIONS
================================ */

.page-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.page-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.page-button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ================================
   PRIMARY (GOLD CTA)
================================ */

.page-button--primary {
  background: linear-gradient(90deg, #c8a96a, #e6c98f);
  color: #1a1408;
  border: none;
}

.page-button--primary:hover {
  background: linear-gradient(90deg, #d4b374, #f0d9a8);
  color: #2b1f0a;
  box-shadow: 0 0 14px rgba(200, 169, 106, 0.35);
}

/* ================================
   BLUE (NAVIGATION)
================================ */

.page-button--blue {
  border-color: rgba(96, 165, 250, 0.6);
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.08);
}

.page-button--blue:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: #60a5fa;
  color: #bfdbfe;

  box-shadow: 0 0 10px rgba(96, 165, 250, 0.2);
}

/* ================================
   SUCCESS
================================ */

.page-button--green {
  border-color: var(--color-success);
  color: var(--color-success);
}

.page-button--green:hover {
  background: var(--color-success-bg);
  color: var(--color-success);
}

/* ================================
   WARNING
================================ */

.page-button--warning {
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.page-button--warning:hover {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

/* ================================
   ERROR
================================ */

.page-button--red {
  border-color: var(--color-error);
  color: var(--color-error);
}

.page-button--red:hover {
  background: var(--color-error-bg);
  color: var(--color-error);
}

/* ================================
   INFO (TEAL)
================================ */

.page-button--info {
  border-color: var(--color-info);
  color: var(--color-info);
}

.page-button--info:hover {
  background: var(--color-info-bg);
  color: var(--color-info);
}

/* ================================
   SIZE VARIANTS
================================ */

.page-button.small {
  padding: 6px 10px;
  font-size: 0.8rem;
  min-width: auto;
}

.page-button.large {
  padding: 14px 22px;
  font-size: 1rem;
}

/* ================================
   FULL WIDTH (mobile friendly)
================================ */

.page-button.block {
  width: 100%;
}


.notice-error-close {
	  background: none;
    border: none;
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #FFF;
    text-shadow: 1px 1px 1px #000;
    position: absolute;
    top: 0;
    right: 0;
    padding: .40rem 1.15rem;
    cursor: pointer;
}


.toast-container {
  position: fixed;
  z-index: 9999;
  top: 10px;
  right: 10px;
}
.toast {
  display: flex !important;
  align-items: center;
  margin: 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  width: 300px;
}
.toast.show {
  display: flex !important;
}

/* Left icon box */
.toast-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
}

/* Right content */
.toast-content {
  background: white;
  padding: 12px 16px;
  flex: 1;
  font-size: 14px;
  color: black;
}

/* Variants */
.toast.success {
  background: #28a745; /* green */
}

.toast.error {
  background: #dc3545; /* red */
}


/* ================================
   BASE INPUT STYLES
================================ */

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;

  font-size: 0.9rem;
  color: var(--text-primary);

  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);

  outline: none;

  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

/* ================================
   FOCUS STATE
================================ */

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(200, 169, 106, 0.2);
  background: var(--bg-surface);
}

/* ================================
   PLACEHOLDER
================================ */

::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

/* ================================
   TEXTAREA
================================ */

textarea {
  min-height: 100px;
  resize: vertical;
}

/* ================================
   SELECT
================================ */

select {
  appearance: none;
  cursor: pointer;

  background-image: url("data:image/svg+xml;utf8,<svg fill='%23c8a96a' height='20' viewBox='0 0 20 20' width='20'><path d='M5 7l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

/* ================================
   CHECKBOXES
================================ */

input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;

  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-elevated);

  cursor: pointer;
  position: relative;

  transition: all var(--transition-fast);
}

input[type="checkbox"]:hover {
  border-color: var(--accent-primary);
}

input[type="checkbox"]:checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 0;
  left: 3px;
  font-size: 12px;
  color: #111;
}

/* ================================
   RADIO BUTTONS
================================ */

input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;

  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg-elevated);

  cursor: pointer;
  position: relative;

  transition: all var(--transition-fast);
}

input[type="radio"]:checked {
  border-color: var(--accent-primary);
}

input[type="radio"]:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-primary);

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

/* ================================
   VALIDATION STATES
================================ */

.input-error {
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.input-success {
  border-color: var(--color-success) !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.invalid-form {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid var(--color-error) !important;
}
.invalid-form:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* ================================
   DISABLED STATE
================================ */

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}





/* ================================
   STATUS BLOCK BASE
================================ */

.patch-note__history {
  margin-top: 20px;
}

.patch-note__status {
  margin: 12px 0;
  padding-left: 16px;
  padding-top: 10px;
  border: 2px solid var(--border-subtle);
  border-radius: 6px;
  position: relative;
}

/* ================================
   STATUS LABEL (PILL)
================================ */

.patch-note__status::before {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  padding: 4px 10px;
  border-radius: 999px;

  margin-bottom: 6px;
}
.note-status--new {
  border-left-color: var(--color-success);
}

.note-status--new::before {
  content: "\f055  New";
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
  font-weight: 900;
  font-family: "Font Awesome 5 Free";
}
.note-status--changed {
  border-left-color: var(--color-info);
}

.note-status--changed::before {
  content: "\f7d9  Changed";
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-info);
  font-weight: 900;
  font-family: "Font Awesome 5 Free";
}
.note-status--removed {
  border-left-color: var(--color-error);
}

.note-status--removed::before {
  content: "\f1f8  Removed";
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-error);
  font-weight: 900;
  font-family: "Font Awesome 5 Free";
}

.note-status--known {
  border-left-color: var(--color-warning);
}

.note-status--known::before {
  content: "\f188  Known Issue";
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
  font-weight: 900;
  font-family: "Font Awesome 5 Free";
}

.note-status--wanted {
  border-left-color: #a78bfa; /* soft purple (idea color) */
}

.note-status--wanted::before {
  content: "\f0eb  Wanted";
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  font-weight: 900;
  font-family: "Font Awesome 5 Free";
}
.note-info--hidden { display: none }


.patch-note__list {
  margin: 6px 0 0;
  padding-left: 16px;
}

.note-list__item {
  margin: 4px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
}

/* subtle bullet upgrade */
.note-list__item::marker {
  color: var(--accent-primary);
}
.patch-note {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);

  padding: 16px;
  margin-bottom: 16px;

  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.patch-note:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.patch-note__number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 10px;
}
.note-status--new::before {
  animation: pulseNew 2s ease-in-out infinite;
}

@keyframes pulseNew {
  0%, 100% { box-shadow: 0 0 6px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.4); }
}


/* ================================
   DROPDOWN ROW
================================ */

.dropdown-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);

  margin-bottom: 10px;
  overflow: hidden;

  transition: var(--transition);
}

/* hover */
.dropdown-row:hover {
  border-color: var(--accent-primary);
}

/* ================================
   SUMMARY (CLICKABLE HEADER)
================================ */

.dropdown-row__details {
  list-style: none;
  cursor: pointer;

  display: flex;
  align-items: center;

  padding: 12px 14px;

  font-size: 0.9rem;
  color: var(--text-primary);

  position: relative;
}

/* remove default arrow */
.dropdown-row__details::-webkit-details-marker {
  display: none;
}

/* custom arrow */
.dropdown-row__details::after {
  content: "▸";
  font-size: 0.8rem;
  opacity: 0.6;

  transition: transform 0.2s ease;
}

/* rotate when open */
.dropdown-row[open] .dropdown-row__details::after {
  transform: rotate(90deg);
}

/* title + date */
.dropdown-details__name {
  font-weight: 500;
}

.dropdown-details__date {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: auto;
  margin-right: 10px;
}

/* ================================
   CONTENT
================================ */

.dropdown-row__contents {
  padding: 12px 14px;

  border-top: 1px solid rgba(255,255,255,0.06);

  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   INNER CONTENT
================================ */

.row-content-details {
  display: grid;
  gap: 6px;
}

.row-content__details {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.row-content__details span {
  color: var(--text-muted);
  margin-right: 4px;
}

/* divider */
.dropdown-row__contents hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 8px 0;
}
/* example variations */
.log-type--1 { border-left: 3px solid #38bdf8; }
.log-type--2 { border-left: 3px solid #22c55e; }
.log-type--3 { border-left: 3px solid #facc15; }
.log-type--4 { border-left: 3px solid #ef4444; }



/* ================================
   ERROR PAGE WRAPPER
================================ */

.error-page__container {
  max-width: 420px;
  margin: 60px auto;
  padding: 24px 20px;

  text-align: center;

  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);

  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.01)
  );

  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* ================================
   LOGO
================================ */

.error-page__logo {
  margin-bottom: 16px;
}

.error-page__logo img {
  width: 120px;
  height: auto;

  border-radius: 50%;
  opacity: 0.95;
}

/* ================================
   TITLE
================================ */

.error-page__title {
  font-size: 1.4rem;
  font-weight: 600;

  color: var(--accent-primary);

  margin-bottom: 10px;
}

/* ================================
   MESSAGE
================================ */

.error-page__message {
  font-size: 0.95rem;
  color: var(--text-secondary);

  margin-bottom: 18px;
}

/* ================================
   BUTTON AREA
================================ */

.error-page__button {
  margin-top: 10px;
}

.error-page__button .page-button {
  min-width: 180px;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 600px) {
  .error-page__container {
    margin: 40px 14px;
    padding: 20px 16px;
  }

  .error-page__logo img {
    width: 90px;
  }

  .error-page__title {
    font-size: 1.2rem;
  }

  .error-page__message {
    font-size: 0.9rem;
  }
}
