/* Remove right gutter on mobile */
@media (max-width: 575.98px) {
  /* Only remove gutter on the topmost container and row */
  body > .container {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  body > .container > .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

/* ======================== Badge Modal Styles ======================== */
.modal-badge-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.25);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-badge-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px 0 rgba(0,0,0,0.08), 0 2px 6px 0 rgba(0,0,0,0.04), 0 0 1px 0 rgba(0,0,0,0.04);
  width: 720px;
  max-width: 95vw;
  min-height: 420px;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.modal-badge-content {
  padding: 40px 40px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-badge-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: left;
  width: 100%;
}
.modal-badge-desc {
  font-size: 1rem;
  color: #444;
  margin-bottom: 2rem;
  text-align: left;
  width: 100%;
}
.modal-badge-list {
  flex: 1 1 auto;
  width: 100%;
  min-height: 180px;
  margin-bottom: 2rem;
}
.modal-badge-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
}
.badge-icon-wrapper {
  line-height: 20px;
  margin-left: 8px;
}

/* ======================== Badge Buttons ======================== */
#badgeAddSelected, #sigForm #addBadgeBtn.btn.btn-success {
  background: #257226 !important;
  border-color: #257226 !important;
  border-radius: 0 !important;
  color: var(--Buttons-text-primary, #FFF) !important;
  text-align: center;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  min-width: 163px;
  height: 36px;
}
#badgeAddSelected:hover, #sigForm #addBadgeBtn.btn.btn-success:hover {
  background: #1e5c1f !important;
  color: #fff !important;
  border-color: #1e5c1f !important;
}
#badgeCancel {
  border-radius: 0 !important;
  color: var(--Buttons-text-primary, #FFF) !important;
  background: #444 !important;
  border-color: #444 !important;
  text-align: center;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  min-width: 163px;
  height: 36px;
}
#badgeCancel:hover {
  background: #222 !important;
  color: #fff !important;
  border-color: #222 !important;
}
#addBadgeBtn {
  margin-top: 31px;
  height: 36px;
  width: 163px;
}
.btn.btn-success {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======================== Modal Badge Buttons ======================== */

/* Grid stays the same */
.modal-badge-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.image-option {
  width: 220px;
  height: 75px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 8px;   
}

.image-option input[type="radio"] {
  margin: 0;
  flex: 0 0 auto;
  transform: scale(1.4);       
  accent-color: #257226;       
}

/* Image fixed to 150×60 */
.image-option img {
  width: 150px;
  height: 60px;
  object-fit: contain;
  display: block;
}

/* Hover: subtle background (no outline/box) */
.image-option:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Selected: subtle background only (no border outline) */
.image-option:has(input[type="radio"]:checked) {
  background: rgba(37, 114, 38, 0.10);  /* light green tint */
}

/* Keyboard focus: visible but not a border box (for accessibility) */
.image-option:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 114, 38, 0.25); /* soft focus ring */
}




/* ======================== Form & Button Styles ======================== */
#resetBtn, #copyBtn {
  border-radius: 0 !important;  
  text-align: center;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
}
#resetBtn {
  color: #257226 !important;
  border: 2px solid var(--Buttons-border-secondary, #DDE2E5);
  background: var(--Buttons-surface-secondary, #FFF);
}
#copyBtn {
  background: #257226;
  border-color: #257226;
}
#resetBtn:hover {
  background: #1e5c1f;
  border-color: #1e5c1f;
  color: #fff !important;
}
#copyBtn:hover {
  background: #1e5c1f;
  color: #fff;
  border-color: #1e5c1f;
}

/* Add spacing between input fields */
#sigForm .form-control {
  color: #757575;
  font-family: Arial;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  border-radius: 2px;
  border: 1px solid var(--color-neutrals-40-gray, #9BA0A0);
  background: var(--color-neutrals-White, #FFF);
  margin-bottom: 29px;
  
  /* Shadow / 1. Small */
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08), 0 0 2px 0 rgba(0, 0, 0, 0.06), 0 0 1px 0 rgba(0, 0, 0, 0.04);
}
#sigForm .form-control::placeholder {
  color: #757575;
  font-family: Arial;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
#sigForm .invalid-feedback {
  margin-top: -25px;
  margin-bottom: 20px;
}

/* ======================== Logo Dropdown ======================== */
.logo-dropdown .btn {
  background: var(--color-neutrals-White, #FFF);
  border: 1px solid var(--color-neutrals-40-gray, #9BA0A0);
  border-radius: 2px;
  background-clip: padding-box;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  /* Shadow / 1. Small */
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08), 0 0 2px 0 rgba(0, 0, 0, 0.06), 0 0 1px 0 rgba(0, 0, 0, 0.04);
}
.logo-dropdown .btn .placeholder-opaque {
  color: #757575;
  font-family: Arial;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
.logo-dropdown .btn-check:checked+.btn, 
.logo-dropdown .btn.active, 
.logo-dropdown .btn.show, 
.logo-dropdown .btn:first-child:active, 
.logo-dropdown :not(.btn-check)+.logo-dropdown.btn:active {
  background: #fff;
  color: #6c757d;
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}
.logo-dropdown .btn:hover,
.logo-dropdown .btn:focus {
  background: white;
  color: #6c757d;
}
.logo-dropdown .dropdown-menu li .dropdown-item {
  color: var(--Neutral-Black, #000);
  font-family: Arial;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
.logo-dropdown .dropdown-menu li .dropdown-item:focus, 
.logo-dropdown .dropdown-menu li .dropdown-item:hover {
  background: #F9F9F9;
}

/* ======================== Header Styles ======================== */
header.py-3.mb-3.bg-dark.text-white h1.h5.mb-0 {
  color: var(--color-neutrals-White, #FFF);
  leading-trim: both;
  text-edge: cap;
  font-family: Arial;
  font-size: 23px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  padding-top: 8px;
  padding-left: 44px;
}
header.py-3.mb-3.bg-dark.text-white {
  background: #6E6259 !important;
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.08), 0 2px 6px 0 rgba(0, 0, 0, 0.04), 0 0 1px 0 rgba(0, 0, 0, 0.04);
}
.header-brand { height: 36px; }

/* ======================== App & Preview Styles ======================== */
:root {
  --app-bg: #fff;
}
body { background-color: var(--app-bg); }
.placeholder-opaque::placeholder { opacity: 1; }
#previewCard { 
  overflow: auto; 
  background: var(--Buttons-text-primary-disabled, #FFF);

  /* Shadow / 2. Medium (Default) */
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.08), 0 2px 6px 0 rgba(0, 0, 0, 0.04), 0 0 1px 0 rgba(0, 0, 0, 0.04);
}
.signature-card { border: 1px solid #e1e5ea; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.logo-option { width: 120px; height: 40px; object-fit: contain; }

:root {
  --app-bg: #fff;
}
html, body {
  height: 100%;
}
body {
  background-color: var(--app-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.placeholder-opaque::placeholder { opacity: 1; }
#previewCard { overflow: auto; }
.signature-card { border: 1px solid #e1e5ea; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.logo-option { width: 120px; height: 40px; object-fit: contain; }

/* ======================== Footer Styles ======================== */
.app-footer {
  width: 100%;
  min-height: 94px;
  background: #58595B;
  color: #fff;
  display: flex;
  align-items: center;
  margin-top: auto;
}
.footer-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  font-size: 1rem;
  gap: 2rem;
}
.footer-copyright {
  font-size: 0.98rem;
  text-align: left;
  margin-right: 2.5rem;
  white-space: nowrap;
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-decoration 0.2s;
}
.footer-link:hover {
  color: #d4d4d4;
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .app-footer {
    height: auto;
    padding: 16px 0 8px 0;
    min-height: auto;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    order: 1;
  }
  .footer-copyright {
    width: 100%;
    text-align: left;
    margin-top: 8px;
    font-size: 0.95rem;
    order: 2;
    margin-right: 0;
  }
}
