/* Pinaca design language for Inner Eye.
 *
 * Tokens and the header/footer treatment are taken from the Pinaca web
 * reference (Ultrascan Quick). Loaded AFTER main.css so it layers on top of the
 * existing stylesheet rather than replacing it -- the application has 25
 * templates and a wholesale restyle would be a rewrite, not a reskin.
 */

:root {
  --pin-bg: #f4f7fc;
  --pin-panel: #ffffff;
  --pin-line: #d8e2f0;
  --pin-muted: #5b6b82;
  --pin-fg: #14233b;
  --pin-accent: #1e50c8;
  --pin-blue-d: #0f2c5c;
  --pin-good: #0f9d58;
}

/* ---- Page shell: footer sits at the bottom on short pages -------------- */

html, body { min-height: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > .main-container { flex: 1 0 auto; }

/* ---- Header: the reference's blue gradient ----------------------------- */

.header-container {
  background: linear-gradient(120deg, var(--pin-blue-d), var(--pin-accent));
  color: #fff;
  box-shadow: 0 1px 4px rgba(3, 12, 32, .18);
}

.header-container-wrapper-left-section-brandLogo img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35));
}

.header-container-wrapper-left-section-brandText {
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
}

/* Sub-line under the wordmark, matching the reference's .tag */
.pin-tag {
  display: block;
  font-size: 12px;
  opacity: .85;
  color: #dbe6fb;
  letter-spacing: .2px;
  margin: 2px 0 0;
}

/* ---- Footer ------------------------------------------------------------ */

.app-footer {
  margin-top: auto;
  flex-shrink: 0;
  background: var(--pin-blue-d);
  color: #c9d8f0;
  text-align: center;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: .3px;
}

.app-footer img {
  height: 17px;
  width: auto;
  opacity: .92;
}

.app-footer a { color: #dbe6fb; text-decoration: none; }
.app-footer a:hover { text-decoration: underline; }

.app-footer .sep { opacity: .55; }

/* ---- Shared controls, aligned to the reference ------------------------- */

.pin-btn {
  background: var(--pin-accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 600;
  cursor: pointer;
}

.pin-btn.sec {
  background: #eef4fd;
  color: #2563eb;
  border: 1px solid #cfe0f7;
}

.pin-card {
  background: var(--pin-panel);
  border: 1px solid var(--pin-line);
  border-radius: 10px;
  padding: 15px;
  transition: .15s;
}

.pin-card:hover { border-color: #3a4d78; background: #eaf1fb; }

.pin-badge {
  font-size: 14px;
  padding: 1px 7px;
  border-radius: 8px;
  background: #e7f0fd;
  color: #2563eb;
}

.pin-badge.ok { background: #e3f5ec; color: var(--pin-good); }
