/* Inherits base styles from styles.css */

.tool-main-content {
  padding-top: 120px;
  padding-bottom: 4rem;
}

.tool-wrapper {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(77, 208, 225, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tool-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tool-main-icon {
  font-size: 2.5rem;
  color: #4dd0e1;
  margin-bottom: 1rem;
}

.tool-header h1 {
  font-size: 2.2rem;
}

/* Result display */
.result-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#passwordOutput {
  flex-grow: 1;
  padding: 1rem;
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  border: 2px solid rgba(77, 208, 225, 0.3);
  border-radius: 10px;
  background: rgba(15, 15, 35, 0.8);
  color: #ffffff;
  text-align: center;
}

.icon-btn {
  flex-shrink: 0;
  width: 50px;
  border: none;
  background: rgba(77, 208, 225, 0.2);
  color: #4dd0e1;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(77, 208, 225, 0.4);
  color: #fff;
}

/* Strength Meter */
.strength-meter {
  width: 100%;
  height: 10px;
  background: rgba(10, 10, 20, 0.5);
  border-radius: 5px;
  margin-bottom: 2.5rem;
  position: relative;
}

.strength-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
  position: absolute;
  right: 0;
  top: 15px;
  font-size: 0.9rem;
  font-weight: bold;
}

.strength-bar.weak {
  width: 33%;
  background-color: #ff6b6b;
}
.strength-bar.medium {
  width: 66%;
  background-color: #ffd93d;
}
.strength-bar.strong {
  width: 100%;
  background-color: #6dcf7f;
}

.strength-text.weak {
  color: #ff6b6b;
}
.strength-text.medium {
  color: #ffd93d;
}
.strength-text.strong {
  color: #6dcf7f;
}

/* Options */
.options-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.option-item:first-child {
  grid-column: 1 / -1; /* Make length slider span both columns */
}

.option-item label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ccc;
}

input[type="range"] {
  width: 100%;
  cursor: pointer;
}

/* SEO Content Section */
.content-section {
  max-width: 800px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(77, 208, 225, 0.2);
  color: #e0e0e0;
}

.content-section h2 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.content-section h3 {
  color: #4dd0e1;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-section p,
.content-section li {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content-section ol {
  padding-left: 20px;
}

/* Error message */
.hidden {
  display: none;
}
#errorArea {
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  .options-container {
    grid-template-columns: 1fr;
  }
  .tool-wrapper {
    padding: 1.5rem;
  }
}
