/* Dedicated CSS for Sass Color Generator Tool */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
}
#palette-rows {
  margin-top: 2.5rem;
  padding-top: 5em;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
/* Palette preview container: all corners rounded (revert to old style) */
#palette-rows > .sass-row {
  border-radius: 14px !important;
}
.sass-row {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
  border-radius: 14px !important;
  justify-content: flex-start;
}
.sass-label {
  min-width: 90px;
  font-size: 1.25rem;
  font-weight: 500;
  color: #222;
  text-align: right;
}
.sass-swatches {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  justify-content: flex-start;
}
.sass-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 54px;
  cursor: pointer;
  transition: transform 0.08s;
  position: relative;
}
.sass-swatch:active {
  transform: scale(0.93);
}
.sass-swatch-box {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  margin-bottom: 0.18rem;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.sass-swatch.copied .sass-swatch-box {
  box-shadow: 0 0 0 3px #8fd475, 0 2px 12px rgba(60,60,60,0.08);
  border-color: #8fd475 !important;
}
.sass-swatch-label {
  font-size: 0.9em;
  color: #444;
  margin-bottom: 2px;
}
.sass-swatch-hex {
  font-size: 0.83em;
  font-family: monospace;
  color: #666;
  background: #f8f8f8;
  border-radius: 3px;
  padding: 1px 4px;
}
.sass-swatch.copied .sass-swatch-hex {
  background: #eafbe2;
  color: #388e3c;
}
.sass-copy-feedback {
  position: absolute;
  top: -1.5em;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  font-size: 0.92em;
  padding: 2px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px #0002;
  pointer-events: none;
  opacity: 0.97;
  z-index: 10;
  animation: fadeInOut 0.7s;
}
.controls-main-box {
  background: #f4f4f6;
  border-radius: 1em;
  padding: 1.2em 1.4em;
  margin-bottom: 5em;
  box-shadow: 0 2px 12px #0001;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1em;
  max-width: 96%;
  width: 96%;
  margin-left: auto;
  margin-right: auto;
}
.scg-header {
  width: 100%;
  background: #37B5A7;
  box-shadow: 0 2px 8px #0001;
  padding: 0.5em 0;
  margin-bottom: 1.5em;
}
.scg-header-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
}
.scg-logo-link {
  display: flex;
  align-items: center;
  margin-right: 1.7em;
}
.scg-logo {
  height: 38px;
  width: auto;
  display: block;
}
.scg-brand-text {
  font-size: 1.22em;
  font-weight: 700;
  color: #fff;
  margin-right: 2em;
  letter-spacing: 0.01em;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  white-space: nowrap;
}
.scg-nav {
  display: flex;
  justify-content: center;
  gap: 2em;
  font-size: 1.08em;
}
.scg-nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.2em 0.7em;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.scg-nav a:hover {
  background: #fff;
  color: #37B5A7;
}
.scg-faq-box {
  background: #fff9f2;
  border: 1.5px solid #ffd6b3;
  border-radius: 1em;
  max-width: 620px;
  margin: 3em auto 2em auto;
  padding: 1.5em 2em 1.3em 2em;
  box-shadow: 0 4px 18px #0001;
  color: #461f35;
}
.scg-faq-box h2 {
  font-size: 1.18em;
  margin-bottom: 0.7em;
  color: #c95a13;
}
.scg-faq-box ul {
  padding-left: 1.2em;
  margin: 0;
}
.scg-faq-box li {
  margin-bottom: 0.7em;
  font-size: 1em;
  line-height: 1.6;
}
.scg-about-box {
  background: #f2f8ff;
  border: 1.5px solid #b3d6ff;
  border-radius: 1em;
  max-width: 650px;
  margin: 2.5em auto 1.5em auto;
  padding: 1.6em 2.1em 1.2em 2.1em;
  box-shadow: 0 4px 18px #0001;
  color: #20304a;
}
.scg-about-box h2 {
  font-size: 1.18em;
  margin-bottom: 0.7em;
  color: #1c3f6e;
}
.scg-about-box h3 {
  font-size: 1.05em;
  margin-top: 1.1em;
  margin-bottom: 0.4em;
  color: #2a5d8f;
}
.scg-about-box p {
  margin-bottom: 0.5em;
  font-size: 1em;
  line-height: 1.7;
}
.scg-about-box code {
  background: #eaf2fb;
  border-radius: 4px;
  padding: 0.08em 0.4em;
  font-size: 0.98em;
  color: #1c3f6e;
}
.scg-footer {
  width: 100%;
  background: #37B5A7;
  color: #fff;
  text-align: center;
  padding: 1.2em 0 1em 0;
  font-size: 1em;
  margin-top: 3em;
  border-top: 1px solid #e5e5e5;
}
@media (max-width: 900px) {
}
@media (max-width: 700px) {
  .sass-row { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .sass-label { text-align: left; }
  .sass-swatches { flex-wrap: wrap; }
  .controls-main-box {
    padding: 0.7em 0.5em;
    border-radius: 0.7em;
    gap: 0.5em;
    max-width: 100%;
    width: 100%;
  }
  .scg-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7em;
  }
  .scg-logo {
    height: 28px;
  }
  .scg-brand-text {
    font-size: 1em;
    margin-right: 1em;
    margin-top: 0.2em;
  }
  .scg-nav {
    gap: 1em;
    font-size: 0.98em;
  }
}
#downloadScssBtn {
  transition: background 0.18s;
}
.sass-contrast-badge {
  display: inline-block;
  font-size: 0.82em;
  background: #eee;
  color: #222;
  border-radius: 4px;
  padding: 1px 6px;
  margin-top: 3px;
  margin-bottom: 1px;
  margin-left: 0;
  margin-right: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px #0001;
  line-height: 1.2;
}
.sass-contrast-badge.AAA { background: #388e3c; color: #fff; }
.sass-contrast-badge.AA { background: #1976d2; color: #fff; }
.sass-contrast-badge.Fail { background: #e53935; color: #fff; }
.sass-contrast-badge .ratio { font-size: 0.82em; opacity: 0.8; margin-left: 3px; }
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) scale(0.95); }
  15% { opacity: 0.97; transform: translateX(-50%) scale(1.04); }
  85% { opacity: 0.97; transform: translateX(-50%) scale(1.04); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.95); }
}
/* Download dropdown styles */
#downloadDropdown {
  display: none;
  flex-direction: column;
  border-radius: 0.5em;
  box-shadow: 0 6px 24px #0002;
  background: #fff;
  overflow: hidden;
  min-width: 110px;
}
#downloadDropdown.show {
  display: flex;
}
#downloadDropdown button {
  border: none;
  outline: none;
  width: 100%;
  text-align: left;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.14s;
}
#downloadDropdown button:active {
  filter: brightness(0.93);
}
#downloadDropdownBtn {
  position: relative;
  z-index: 11;
}
