/* Badge Styles for DYMO Label Printing
 *
 * Labels:   85mm × 51mm  (2×3.5" paper)
 * Stickers: 101mm × 53mm (54×101mm / 99014 Shipping paper)
 *
 * Badge templates use article.badge as the root element.
 * Each template type adds a modifier class: .sticker, .signature, .pfw-sticker
 */

/* === Base Badge (Labels - 85mm × 51mm) === */
article.badge {
  border: 1px solid #999;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  text-align: center;
  padding: 5mm;
  margin: 10px auto;
  width: 85mm;
  height: 51mm;
  font-size: 0.85em;
  display: flex;
  justify-content: center;
  align-items: center;
  zoom: 130%;
  box-sizing: border-box;
}

/* Signature & EB Garamond variants */
article.badge.signature {
  font-family: "EB Garamond", serif;
}

/* === Sticker Size (101mm × 53mm) === */
article.badge.sticker {
  width: 101mm;
  height: 53mm;
}

/* === Badge Content Container === */
.badge-content {
  position: relative;
  vertical-align: middle;
  max-height: 45mm;
  width: 75mm;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

article.badge.sticker .badge-content {
  width: 91mm;
  max-height: 51mm;
}

/* === Name Styling === */
.badge h1.first-name {
  font-size: 40px;
  font-weight: 800;
  line-height: 48px;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}

.badge h2.last-name {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* === Signature Name Overrides === */
article.badge.signature h2.last-name {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2em;
  margin-bottom: 12px;
  text-transform: none;
}

/* Flexible text scaling for signature badges */
.flexible-text-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
}

.flexible-text {
  line-height: 40px;
  font-weight: 800;
  white-space: nowrap;
  transform-origin: center;
  font-size: 2.8rem;
  display: inline-block;
}

/* === Classification & Degree === */
.classification {
  margin-top: 12px;
}

article.badge.sticker .classification {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 12px;
  height: 45px;
}

.degree {
  font-weight: 400;
  font-size: 13px;
  margin: 0;
  padding: 0;
}

article.badge.sticker .classification .degree {
  font-size: 16px;
  font-weight: 500;
}

.badge h3.category {
  font-size: 15px;
  padding: 0;
  margin-top: 15px;
  margin-bottom: -5px;
  text-transform: uppercase;
}

.ug-college-text {
  font-weight: 700;
  font-size: 11px;
  padding-bottom: 0;
  text-transform: uppercase;
}

/* === Bottom Row (College Icons + Faculty/Staff) === */
.bottom-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}

.bottom-row.nonalum {
  margin-top: 2em;
}

.bottom-row > div {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bottom-row .icon-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 10px;
}

.bottom-row .college-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.bottom-row .material-symbols-outlined {
  font-size: 32px;
}

.bottom-row .college-short {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 70px;
  margin: 0 0 0 3px;
  text-align: center;
}

/* PFW: no max-width on college short names */
article.badge.pfw-sticker .bottom-row .college-short {
  max-width: none;
}

.bottom-row .facstaff {
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 300;
}

/* === Wristband Alert === */
.wristband-alert {
  color: #fff;
  background-color: #E65100;
  border: 2px solid #BF360C;
  max-width: 600px;
  margin: 15px auto;
  padding: 12px 20px;
  text-align: center;
  font-size: 1.2em;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: pulse-alert 2s ease-in-out infinite;
}

.wristband-alert .material-symbols-outlined {
  font-size: 28px;
}

@keyframes pulse-alert {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* === Paper Size Instructions === */
.badge-instructions {
  color: #C8102E;
  background-color: rgba(200, 16, 47, 0.1);
  border: 1px solid #C8102E;
  max-width: 500px;
  margin: 10px auto;
  padding: 8px 16px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9em;
}

/* === Action Bar === */
.badge-action-bar {
  max-width: 500px;
  margin: 10px auto;
  padding: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85em;
}

.badge-action-bar a,
.badge-action-bar button {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.badge-action-bar .btn-primary {
  background-color: #001d54;
  color: white;
  border: none;
}

.badge-action-bar .btn-primary:hover {
  background-color: #1d4289;
}

.badge-action-bar .btn-secondary {
  background-color: #e5e7eb;
  color: #374151;
  border: none;
}

.badge-action-bar .btn-secondary:hover {
  background-color: #d1d5db;
}

.badge-action-bar .btn-danger {
  color: #b91c1c;
}

.badge-action-bar .btn-danger:hover {
  background-color: rgba(185, 28, 28, 0.1);
}

.badge-action-bar .status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.85em;
  border-radius: 6px;
}

.badge-action-bar .status-checked-in {
  background-color: #dcfce7;
  color: #166534;
}

.badge-action-bar .status-printed {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-action-bar .status-regrets {
  background-color: #fee2e2;
  color: #991b1b;
}

/* === Back Link === */
.badge-back-link {
  text-align: center;
  padding: 12px;
  font-family: "Montserrat", sans-serif;
}

.badge-back-link a {
  color: #001d54;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
}

.badge-back-link a:hover {
  text-decoration: underline;
}

/* === Print Media === */
@media print {
  nav,
  footer,
  .badge-action-bar,
  .badge-instructions,
  .badge-back-link,
  .wristband-alert,
  .badge-regrets,
  .member-card-regrets,
  .no-print {
    display: none !important;
  }

  html, body {
    margin: 0;
    padding: 0;
  }

  body {
    text-align: center;
    display: block !important;
    min-height: auto !important;
    background: none !important;
  }

  /* Reset layout containers for inline badge printing */
  main {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
  }

  main > div {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Strip card chrome — keep only badges */
  .member-card {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    border: none !important;
    opacity: 1 !important;
  }

  .member-card-header,
  .member-card-contact,
  .member-card-actions {
    display: none !important;
  }

  .member-card-badge {
    padding: 0 !important;
    margin: 0 !important;
  }

  #badge-preview {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  /* Strip gaps and padding from badge wrapper */
  #badge-preview > div {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  /* No page-break for single inline badge */
  #badge-preview article.badge {
    page-break-after: avoid;
  }

  /* Labels: 89mm × 48mm print area */
  article.badge {
    border: none;
    margin: 0;
    padding: 0mm;
    width: 89mm;
    height: 48mm;
    display: flex;
    justify-content: center;
    align-items: center;
    page-break-after: always;
    zoom: 100%;
  }

  /* Stickers: 101mm × 53mm print area */
  article.badge.sticker {
    width: 101mm;
    height: 53mm;
    margin-top: -10px;
  }

  @page {
    margin: 0mm auto;
    padding: 0;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
