:root {
  --primary: #c89132;
  --dark: #1e293b;
  --dark-navy: #0f172a;
  --royal-blue: #34457f;
  --surface: #f8fafc;
  --surface-soft: #f1f5f9;
  --surface-muted: #e2e8f0;
  --outline: #cbd5e1;
  --border: #cbd5e1;
  --text-variant: #475569;
  --muted: #64748b;
  --accent-bg: rgba(15, 23, 42, 0.05);
  --shadow-soft: 0 20px 25px -5px rgba(15, 23, 42, 0.06);
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --paper-width: 215.9mm;
  --paper-height: 330.2mm;
  --label-columns: 7;
  --label-width: 25.4mm;
  --label-height: 38.1mm;
  --label-gap: 0mm;
  --label-radius: 0;
}

/* GLOBAL */
body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
.font-headline {
  font-family: 'Manrope', sans-serif;
}

.small-note {
  color: var(--muted);
  font-size: 0.85rem;
}

/* HEADER / NAVBAR */
.glass-header {
  background: var(--royal-blue);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
  z-index: 1000;
}

.glass-header nav a {
  color: var(--surface);
}

.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.navbar-brand:hover .logo-img {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-link-active {
  color: var(--primary) !important;
  border-bottom: 2px solid var(--primary);
}

.custom-toggler {
    border: 1px solid var(--outline);
    background: #fff;
    color: var(--dark-navy);
    font-size: 1.6rem;
    line-height: 1;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    cursor: pointer;
    z-index: 2000;
}

.custom-toggler:focus {
    outline: none;
    box-shadow: none;
}

#navbarMenu {
    position: relative;
    z-index: 1500;
}

@media (max-width: 991.98px){
    #navbarMenu{
        border-top: 1px solid rgba(0,0,0,.08);
        padding-top: 1rem;
    }
    #navbarMenu nav a{
        padding: .5rem 0;
    }
}

/* CARDS / SECTIONS */
.main-generator-card,
.main-card {
  background: var(--surface-soft);
  border: 1px solid rgba(203, 213, 225, 0.45);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.card-banner {
  background: var(--royal-blue);
  color: #fff;
  text-align: center;
  padding: 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* FORMS */
.form-label-custom {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-variant);
  margin-bottom: 0.4rem;
  margin-left: 0.25rem;
}

.form-control-custom {
  background: #fff;
  border: none;
  border-bottom: 2px solid rgba(203, 213, 225, 0.4);
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.form-control-custom:focus {
  background: #fff;
  border-bottom-color: var(--primary);
  box-shadow: none;
  outline: none;
}

textarea,
input,
select {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--primary) !important;
}

/* BUTTONS */
.btn-generate,
.btn-main {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  transition: all 0.2s ease;
}

.btn-generate:hover,
.btn-main:hover {
  background: var(--dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-generate:disabled {
  background: var(--royal-blue) !important;
  color: #eee !important;
  border: 1px solid var(--outline);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-outline-main {
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
}

.btn-outline-main:hover {
  background: var(--primary);
  color: #fff;
}

/* ABOUT PAGE */
.about-hero {
  max-width: 720px;
  margin: 0 auto;
}

.about-card {
  background: var(--surface-soft);
  border: 1px solid rgba(203, 213, 225, 0.45);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-image-card {
  background: #ffffff;
  border: 1px solid var(--outline);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.06);
}

.about-feature-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-radius: 0.75rem;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.04);
}

.about-feature-card h4 {
  color: var(--dark-navy);
}

.about-section-title {
  color: var(--dark-navy);
  font-weight: 800;
}

.social-link{
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.social-link i:hover{
    transform: translateY(-2px);
    color: var(--primary);
}

.social-link i{
    color: var(--royal-blue);
    transition: all 0.3s ease;
    font-size: 1.4rem; 
}

/* CONTACT BUTTON */
.btn-primary-custom{
    background: var(--primary);
    color:#fff;
    border:none;
    padding:12px 24px;
    border-radius:12px;
    font-weight:700;
    transition:.3s;
}

.btn-primary-custom:hover{
    background: var(--dark);
    color:#fff;
}

/* FORMAT BUTTON LC/DDC */

.format-switcher {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.format-btn {
  border: 1px solid var(--primary, #c89132);
  color: var(--primary, #c89132);
  background: #fff;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .65rem 1.25rem;
  transition: all .2s ease;
}

.format-btn.active-format,
.format-btn:hover {
  background: var(--primary, #c89132);
  color: #fff;
}

.format-help {
  font-size: .85rem;
  color: var(--muted, #64748b);
  margin-top: .65rem;
}

/* GENERATOR RESULTS */
.results-section {
  background: var(--surface-muted);
  border-radius: 1rem;
  padding: 2rem;
}

.results-header {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
}

.result-card {
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.copy-wrapper {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn {
  border: none;
  background: var(--surface-soft);
  color: var(--text-variant);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary);
  color: #fff;
}

.copy-feedback {
  font-size: 10px;
  font-weight: 800;
  color: #10b981;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-feedback.show {
  opacity: 1;
}

.method-icon-circle {
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cutter-option-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 50rem;
  padding: 0.35rem 0.45rem 0.35rem 0.9rem;
  width: fit-content;
}

.cutter-digit-select {
  width: 115px;
  border-radius: 50rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.cutter-digit-select:focus {
  box-shadow: none;
  border-color: #0d6efd;
}

/* CUTTER TABLE PAGE */
.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 2.5rem;
}

.letter-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--outline);
  background: #fff;
  color: var(--text-variant);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.letter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.letter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(200, 145, 50, 0.3);
}

.table-wrapper {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.scroll-area {
  max-height: 500px;
  overflow-y: auto;
}

.scroll-area::-webkit-scrollbar {
  width: 8px;
}

.scroll-area::-webkit-scrollbar-track {
  background: var(--surface-soft);
}

.scroll-area::-webkit-scrollbar-thumb {
  background: var(--outline);
  border-radius: 10px;
}

.scroll-area::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.table thead {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
  border-bottom: 2px solid var(--outline);
}

.table th {
  color: var(--text-variant);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 1rem 1.5rem;
}

.table td {
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--surface-soft);
  font-size: 0.95rem;
}

.code-cell {
  color: var(--primary);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}

/* BULK LABEL PAGE */
.preview-shell {
  background: #525252;
  padding: 1.8rem;
  border-radius: 1rem;
  overflow-x: auto;
}

.sheet {
  width: var(--paper-width);
  min-height: var(--paper-height);
  background: #fff;
  margin: 0 auto;
  padding: 10mm;
  display: grid;
  grid-template-columns: repeat(var(--label-columns), var(--label-width));
  grid-auto-rows: var(--label-height);
  gap: var(--label-gap);
  justify-content: center;
  align-content: start;
}

.spine-label {
  border: 1px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 10pt;
  line-height: 1.1;
  font-weight: 700;
  padding-left: 3mm;
  padding-right: 1mm;
  box-sizing: border-box;
  overflow: hidden;
  white-space: pre-line;
  break-inside: avoid;
  page-break-inside: avoid;
  border-radius: var(--label-radius);
}

/* FOOTER */
footer {
  background: #34457f;
  color: #e8e8e8;
  padding: 4rem 0;
}

.footer-logo{
    width:150px;
    height:auto;
}

.footer-link{
    color:rgba(255,255,255,.8);
    text-decoration:none;
    transition:.3s;
}

.footer-link:hover{
    color:var(--primary);
}

.footer-divider{
    border-color:rgba(255, 255, 255, 0.678);
}

/* RESPONSIVE */
@media (max-width: 576px) {
  .cutter-option-group {
    width: 100%;
    justify-content: space-between;
  }

  .cutter-digit-select {
    width: 130px;
  }

  #toggleBtn {
    width: 100%;
  }
}

/* PRINT */
@media print {

  html,
  body {
    overflow: hidden !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body * {
    visibility: hidden !important;
  }

  #printArea,
  #printArea * {
    visibility: visible !important;
  }

  #printArea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden !important;
  }

  .preview-shell {
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

.sheet {
    width: var(--paper-width, 215.9mm);
    height: var(--paper-height, 330.2mm);
    background: #fff;
    margin: 0 auto;
    padding: 0;
    display: grid;
    overflow: hidden;
    box-sizing: border-box;
}

  /* Hide all browser scrollbars */
  *::-webkit-scrollbar {
    display: none !important;
  }

  * {
    scrollbar-width: none !important;
  }

  @page {
    size: 8.5in 13in;
    margin: 0.2in;
  }
}