/* Created At: 2026-07-07T14:53:02Z */

/* ─── COLOR TOKENS (PASTEL GREEN THEME) ─── */
:root {
  --tool-gold: #2ebd7f;
  --tool-gold-glow: rgba(46, 189, 127, 0.35);
  --tool-gold-soft: rgba(46, 189, 127, 0.08);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 100px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* ─── LAYOUT GRID ─── */
.tool-layout {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
}


/* ─── SEGMENTED MODE SELECTOR ─── */
.mode-toggle {
  display: grid;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.mode-toggle.two-options {
  grid-template-columns: repeat(2, 1fr);
}

.mode-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  background: var(--tool-gold);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--tool-gold-glow);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.mode-btn {
  border: none;
  background: transparent !important;
  color: var(--text-2);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.25s ease;
  position: relative;
  z-index: 1;
  box-shadow: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mode-btn.active {
  color: #ffffff !important;
}

/* ─── PASSWORD INPUT EMBEDDED TOGGLES ─── */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper .inp-box {
  padding-right: 110px; /* Space for Copy, Toggle Visibility, Clear */
  box-sizing: border-box;
}

.pwd-input-field {
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.pwd-action-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  box-shadow: none !important;
}

.pwd-action-btn:hover {
  opacity: 0.8;
}

.copy-input-btn {
  right: 74px;
}

#btn-toggle-visibility,
#btn-toggle-visibility-c1,
#btn-toggle-visibility-c2 {
  right: 44px;
}

#btn-clear-input,
#btn-clear-input-c1,
#btn-clear-input-c2 {
  right: 14px;
}

/* ─── CHECKLIST LAYOUTS ─── */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transition: all 0.25s ease;
}

.checklist-item.pass {
  background: rgba(46, 189, 127, 0.05);
  border-color: rgba(46, 189, 127, 0.15);
}

.chk-icon {
  font-size: 14px;
  user-select: none;
  line-height: 1;
}

.chk-label {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.checklist-item.pass .chk-label {
  color: var(--text);
}

.tips-bullet-list {
  margin: 0;
  padding-left: 18px;
  font-family: 'Figtree', sans-serif;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
}

.tips-bullet-list li {
  margin-bottom: 6px;
}

.tips-bullet-list li strong {
  color: var(--text-2);
}

/* ─── STRENGTH SEGMENTED PROGRESS BARS ─── */
.score-display-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
}

.strength-score-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.score-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
}

.strength-badge {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge-very-weak {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.badge-weak {
  color: #f97316 !important;
  background: rgba(249, 115, 22, 0.08) !important;
  border: 1px solid rgba(249, 115, 22, 0.2) !important;
}

.badge-medium {
  color: #eab308 !important;
  background: rgba(234, 179, 8, 0.08) !important;
  border: 1px solid rgba(234, 179, 8, 0.2) !important;
}

.badge-strong {
  color: #84cc16 !important;
  background: rgba(132, 204, 22, 0.08) !important;
  border: 1px solid rgba(132, 204, 22, 0.2) !important;
}

.badge-very-strong {
  color: #2ebd7f !important;
  background: rgba(46, 189, 127, 0.08) !important;
  border: 1px solid rgba(46, 189, 127, 0.2) !important;
}

.segmented-progress-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  height: 8px;
}

.progress-segment {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* Color codes for segment states */
.progress-segment.fill-very-weak { background-color: #ef4444 !important; }
.progress-segment.fill-weak { background-color: #f97316 !important; }
.progress-segment.fill-medium { background-color: #eab308 !important; }
.progress-segment.fill-strong { background-color: #84cc16 !important; }
.progress-segment.fill-very-strong { background-color: #2ebd7f !important; }

/* ─── DENSITY COMPOSITION DISTRIBUTION CHART ─── */
.density-bar-container {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin-top: 8px;
}

body.light .density-bar-container {
  background: rgba(0, 0, 0, 0.05);
}

.density-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.density-segment.ds-lower { background-color: #3b82f6; }
.density-segment.ds-upper { background-color: #60a5fa; }
.density-segment.ds-digits { background-color: #f59e0b; }
.density-segment.ds-symbols { background-color: #ef4444; }
.density-segment.ds-extended { background-color: #10b981; }

.density-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  color: var(--text-3);
}

.density-label-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.density-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.density-color-dot.ds-lower { background-color: #3b82f6; }
.density-color-dot.ds-upper { background-color: #60a5fa; }
.density-color-dot.ds-digits { background-color: #f59e0b; }
.density-color-dot.ds-symbols { background-color: #ef4444; }
.density-color-dot.ds-extended { background-color: #10b981; }

/* ─── CHARACTER PREVIEW BADGES ─── */
.char-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 24px;
}

.char-preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  user-select: none;
  transition: all 0.2s ease;
}

.char-preview-badge.cb-lower { background-color: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #93c5fd; }
.char-preview-badge.cb-upper { background-color: rgba(96, 165, 250, 0.15); border: 1px solid rgba(96, 165, 250, 0.3); color: #bfdbfe; }
.char-preview-badge.cb-digits { background-color: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #fde047; }
.char-preview-badge.cb-symbols { background-color: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
.char-preview-badge.cb-extended { background-color: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #6ee7b7; }

/* Light mode specific preview colors */
body.light .char-preview-badge.cb-lower { background-color: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.25); color: #2563eb; }
body.light .char-preview-badge.cb-upper { background-color: rgba(96, 165, 250, 0.08); border-color: rgba(96, 165, 250, 0.25); color: #1d4ed8; }
body.light .char-preview-badge.cb-digits { background-color: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.25); color: #d97706; }
body.light .char-preview-badge.cb-symbols { background-color: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.25); color: #dc2626; }
body.light .char-preview-badge.cb-extended { background-color: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.25); color: #059669; }

/* Tab Views toggle with smooth animation */
.tab-view-pane {
  display: none;
}
.tab-view-pane.active-view {
  display: block;
  animation: tabFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tabFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── COMPARE MODE LAYOUT ─── */
.compare-layout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .compare-layout-grid {
    grid-template-columns: 1fr;
  }
}

.compare-column {
  width: 100%;
  box-sizing: border-box;
}

/* ─── ANALYTICS INFOS GRID ─── */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.analytic-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-sizing: border-box;
}

.analytic-item.full-width {
  grid-column: 1 / -1;
}

.analytic-title {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analytic-val {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.analytic-val.font-large {
  font-size: 20px;
}

/* ─── HISTORY AUDIT LOG ─── */
.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.history-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.history-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  word-break: break-all;
  user-select: all;
  margin-right: 12px;
}

.history-copy-badge {
  outline: none;
  font-family: 'Figtree', sans-serif;
  color: var(--tool-gold) !important;
  background: var(--tool-gold-soft) !important;
  border: 1px solid var(--tool-gold-glow) !important;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.history-copy-badge:hover {
  background: var(--tool-gold) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px var(--tool-gold-glow);
}

.history-toggle-badge {
  outline: none;
  font-family: 'Figtree', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  cursor: pointer;
  background: transparent !important;
  color: var(--text-2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.2s ease;
}

.history-toggle-badge:hover {
  border-color: var(--tool-gold) !important;
  color: var(--tool-gold) !important;
}

body.light .history-toggle-badge {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.history-delete-btn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  box-shadow: none !important;
}

.history-delete-btn:hover {
  opacity: 1;
}

/* ─── LIGHT MODE ADAPTATION ─── */
body.light .checklist-item {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light .checklist-item.pass {
  background: rgba(46, 189, 127, 0.04);
  border-color: rgba(46, 189, 127, 0.15);
}

body.light .score-display-wrap,
body.light .analytic-item,
body.light .history-row {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light .history-row:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light .progress-segment {
  background: rgba(0, 0, 0, 0.04);
}

body.light .mode-toggle {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light .mode-indicator {
  background: var(--tool-gold);
  box-shadow: 0 4px 10px rgba(46, 189, 127, 0.2);
}

body.light .mode-btn {
  color: #334155;
}

body.light .mode-btn.active {
  color: #ffffff !important;
}
