/* css/components/status.css
 * App-wide async-action status toast (Fix 3: stop silent action failures).
 *
 * Markup: #app-status in includes/footer.php (role="status" aria-live="polite"
 * aria-atomic="true"). Content and .is-success/.is-error/.is-info tone class
 * are set only by setAppStatus() in js/app.js.
 *
 * Fixed-positioned so it always reads as a small toast near the top of the
 * viewport regardless of where #app-status actually sits in the DOM (it lives
 * in footer.php, alongside the rest of the global shell chrome). Empty by
 * default and not part of layout flow, so it never pushes content around or
 * collides with #report-modal.
 *
 * Ownership: this file owns #app-status/.g-app-status styling exclusively.
 * Do not duplicate these rules in css/theme-v3.css or css/gobstagram.css.
 */

.g-app-status {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998; /* below .g-dialog-backdrop (9999) so a real dialog always wins */
  max-width: min(92vw, 420px);
  padding: 0;
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

/* Empty by default: no message, no box, no shadow taking up visual space. */
.g-app-status:empty {
  display: none;
}

.g-app-status.is-success,
.g-app-status.is-error,
.g-app-status.is-info {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid var(--g-border-strong, #8f4a39);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  pointer-events: auto;
}

.g-app-status.is-success {
  background: var(--g-success-bg, #f7fac8);
  border-color: var(--g-success, #227a2e);
  color: var(--g-success-ink, #1d522b);
}

.g-app-status.is-error {
  background: var(--g-danger-bg, #f3e3e3);
  border-color: var(--g-danger, #991f2f);
  color: var(--g-danger-ink, #991f2f);
  font-weight: bold;
}

.g-app-status.is-info {
  background: var(--g-surface-panel, #fcfff2);
  border-color: var(--g-border-default, #cc7041);
  color: var(--g-text-primary, #101114);
}

@media (max-width: 620px) {
  .g-app-status {
    top: 6px;
    max-width: 94vw;
    font-size: 11px;
  }
}
