/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 .compact input,
 .compact select,
 .compact textarea,
 .compact button {
   padding: 0.1rem 0.5rem;
 }

 article > header h1 {
   font-size: 2.2rem;
   margin-bottom: 0.5rem;
 }

 article ul {
   margin-bottom: 1.5rem;
 }

 .program-preview {
   display: flex;
   justify-content: flex-end;
 }

 .pass {
   box-shadow: 0 10px 25px rgba(0,0,0,0.08);
   transform: rotate(1.5deg) translateY(8px);
 }

 @media (max-width: 640px) {
   .pass {
     transform: none;
   }
 }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--card-background-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.1rem 1rem 1.35rem;
    border: 1px solid var(--card-border-color);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}
.stat-card.c1::before {
    background: #c0622a;
}
.stat-card.c2::before {
    background: #b07d2a;
}
.stat-card.c3::before {
    background: #3b1f0a;
}
.stat-card.c4::before {
    background: #2a8c6e;
}
.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-color);
    margin: 0 0 0.3rem;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color);
    margin: 0;
    line-height: 1;
}
.stat-sub {
    font-size: 0.78rem;
    color: var(--muted-color);
    margin: 0.3rem 0 0;
}
.program-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 640px) {
  .program-layout { grid-template-columns: 1fr; }
  .program-preview { display: flex; justify-content: center; }
}

/* Colour swatch palette */
.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 0.5rem; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.1s, border-color 0.1s; flex-shrink: 0;
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: var(--color, #111); outline: 2px solid var(--color, #111); outline-offset: 2px; }
.swatch-custom {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px dashed #aaa;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; position: relative; overflow: hidden;
  color: #aaa; cursor: pointer;
}
.swatch-custom input[type=color] { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* Pass card */
.pass { width: 300px; border-radius: 20px; overflow: hidden; color: white; }
.pass-inner { padding: 20px; background: #3a7bd5; }

.pass-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon svg { width: 20px; height: 20px; }
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.header-field { text-align: right; }
.hf-label { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; opacity: 0.9; display: block; margin-bottom: 2px; }
.hf-value { font-size: 17px; font-weight: 600; display: block; }

.primary-section { margin-bottom: 28px; }
.primary-label { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; opacity: 0.9; display: block; margin-bottom: 4px; }
.primary-value { font-size: 52px; font-weight: 700; letter-spacing: -1px; line-height: 1.05; }

.sec-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.sec-label { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; opacity: 0.9; display: block; margin-bottom: 3px; }
.sec-value { font-size: 16px; font-weight: 400; }
.sec-field-right { text-align: right; }

.barcode-strip { background: white; border-radius: 12px; padding: 16px 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.barcode-placeholder { width: 160px; height: 160px; }
.barcode-placeholder svg { width: 100%; height: 100%; }
.barcode-caption { font-size: 13px; color: #333; font-weight: 400; }
