body {
  margin: 0;
  padding: 0;
  background-color: #f1f1f1 !important;
}

/* CALCULATORS bar !!!!! */
.hdr6 {
  padding-right: 22px !important;
}

.titli_pw {
  margin: 8px 0 16px;
}

.titli_pw h1 {
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  text-shadow: 1px 1px 1px white;
  filter: drop-shadow(4px 4px 10px #057);
  padding: 0 4px;
}

.titli_pw img {
  filter: drop-shadow(1px 1px 1px black);
}


.ttle {
  display: flex;
  flex-wrap: wrap;
}

.ttle .l2 {
  display: flex;
  place-items: center;
  justify-content: center;
}

.ttle .l10 {
  display: flex;
  place-items: center;
  justify-content: center;
}

.ttle h3 {
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  text-shadow: #057 0 0 16px;
}

.image-iframe {
  max-width: 80px;
  height: auto;
  filter: drop-shadow(1px 1px 1px #666);
}

/* ------ */
.calculator-password {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.calculator-password .titli_pw {
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 10px;
  padding: 10px;
}

.calculator-password .titli_pw h2 {
  font-weight: 600;
  text-shadow: 1px 1px 1px white;
  filter: drop-shadow(4px 4px 10px #057);
  font-size: 28px;
  margin: 20px 0;
}

.calculator-password .description {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: justify;
  padding: 0 10px;
}

.calculator-password .section-title {
  color: #057;
  font-size: 20px;
  margin: 20px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #057;
}

.calculator-password hr {
  border: 1px solid #057;
  margin: 30px 0;
}

.calculator-password .calculator {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.calculator-password .result-calculator {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.calculator-password .input-row {
  margin-bottom: 15px;
}

.calculator-password .input-headline {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.calculator-password .calculator-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calculator-password .unit-text {
  min-width: 80px;
  padding: 8px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  color: #333;
}

.calculator-password .password-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.calculator-password .password-input:focus {
  outline: none;
  border-color: #057;
  box-shadow: 0 0 5px #057;
}

.calculator-password .checkbox-group {
  margin-top: 20px;
}

.calculator-password .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.calculator-password .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.calculator-password .checkbox-label:hover {
  background-color: #e0e0e0;
}

.calculator-password .checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.calculator-password .password-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #e3f2fd;
  border: 2px solid #057;
  border-radius: 8px;
  padding: 5px;
}

.calculator-password .password-output {
  flex: 1;
  padding: 15px;
  border: none;
  background-color: transparent;
  font-family: monospace;
  font-size: 24px;
  font-weight: 600;
  color: #057;
  text-align: center;
}

.calculator-password .password-output:focus {
  outline: none;
}

.calculator-password .copy-btn-small {
  width: 50px;
  height: 50px;
  border: none;
  background-color: #057;
  color: white;
  border-radius: 8px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.calculator-password .copy-btn-small:hover {
  background-color: #046;
  transform: scale(1.05);
}

.calculator-password .strength-meter {
  margin: 20px 0;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.calculator-password .strength-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
}

.calculator-password .strength-value {
  padding: 2px 10px;
  border-radius: 20px;
  color: white;
}

.calculator-password .strength-value.strong {
  background-color: #4caf50;
}

.calculator-password .progress-bar-container {
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.calculator-password .progress-bar {
  height: 100%;
  transition: width 0.3s ease;
}

.calculator-password .strength-very-weak {
  background-color: #f44336;
  width: 20%;
}

.calculator-password .strength-weak {
  background-color: #ff9800;
  width: 40%;
}

.calculator-password .strength-medium {
  background-color: #ffc107;
  width: 60%;
}

.calculator-password .strength-strong {
  background-color: #4caf50;
  width: 80%;
}

.calculator-password .strength-very-strong {
  background-color: #2196f3;
  width: 100%;
}

.calculator-password .result-row {
  margin: 15px 0;
  padding: 15px;
  background-color: #e3f2fd;
  border-radius: 8px;
}

.calculator-password .result-table {
  width: 100%;
  border-collapse: collapse;
}

.calculator-password .result-table td {
  padding: 8px 5px;
}

.calculator-password .result-table td:first-child {
  width: 50%;
  font-weight: 600;
}

.calculator-password .result-table td:nth-child(2) {
  width: 40%;
}

.calculator-password .result-table td:last-child {
  width: 10%;
}

.calculator-password .result-input {
  width: 100%;
  padding: 8px;
  border: 2px solid #057;
  border-radius: 4px;
  background-color: #fff;
  font-weight: 600;
  color: #057;
  text-align: right;
}

.calculator-password .result-input[readonly] {
  background-color: #f0f8ff;
  cursor: default;
}

.calculator-password .warning-note {
  background-color: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

.calculator-password .warning-note p {
  margin: 5px 0;
  font-family: monospace;
  font-size: 14px;
}

.calculator-password .addmore {
  width: 48%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #057;
  color: white;
  margin: 5px 1%;
  display: inline-block;
}

.calculator-password .addmore:hover {
  background-color: #046;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 85, 119, 0.3);
}

.calculator-password .info-container {
  background-color: #f5f5f5;
  border-left: 4px solid #057;
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 10px 10px 0;
}

.calculator-password .info-container h3,
.calculator-password .info-container h4 {
  color: #057;
  margin: 20px 0 10px;
}

.calculator-password .info-container h4:first-child {
  margin-top: 0;
}

.calculator-password .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.calculator-password .info-card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calculator-password .info-card h4 {
  color: #057;
  margin: 0 0 10px 0;
}

.calculator-password .entropy-scale {
  margin: 20px 0;
}

.calculator-password .scale-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.calculator-password .scale-item {
  flex: 1;
  min-width: 150px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  color: white;
}

.calculator-password .scale-item.weak {
  background-color: #f44336;
}

.calculator-password .scale-item.medium {
  background-color: #ff9800;
}

.calculator-password .scale-item.good {
  background-color: #ffc107;
  color: #333;
}

.calculator-password .scale-item.strong {
  background-color: #4caf50;
}

.calculator-password .scale-item.very-strong {
  background-color: #2196f3;
}

.calculator-password .scale-label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.calculator-password .scale-value {
  display: block;
  font-size: 14px;
  opacity: 0.9;
}

.calculator-password .tips-list {
  list-style-type: none;
  padding: 0;
}

.calculator-password .tips-list li {
  padding: 10px;
  margin: 5px 0;
  background-color: white;
  border-radius: 4px;
  border-left: 4px solid #4caf50;
}

.calculator-password .tips-list li:has(❌) {
  border-left-color: #f44336;
}

.calculator-password .protection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.calculator-password .protection-item {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calculator-password .protection-item h4 {
  color: #057;
  margin: 0 0 10px 0;
}

.calculator-password .note {
  background-color: #fff3e0;
  padding: 15px;
  border-radius: 8px;
  font-style: italic;
  margin: 20px 0;
}

@media screen and (max-width: 768px) {
  .calculator-password .row-padding {
    flex-direction: column;
  }

  .calculator-password .half {
    width: 100%;
    margin-bottom: 20px;
  }

  .calculator-password .titli_pw h2 {
    font-size: 22px;
  }

  .calculator-password .calculator-input {
    flex-wrap: wrap;
  }

  .calculator-password .password-output {
    font-size: 18px;
  }

  .calculator-password .result-table td {
    /* display: block; */
    width: 100%;
  }

  .calculator-password .addmore {
    width: 100%;
    margin: 5px 0;
  }

  .calculator-password .scale-container {
    flex-direction: column;
  }

  .calculator-password .protection-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .calculator-password {
    padding: 10px;
  }

  .calculator-password h3 {
    font-size: 18px;
  }

  .calculator-password .password-output {
    font-size: 16px;
  }

  .calculator-password .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

#strength_bar {
  width: 100%
}