/* Develop tool shell (shared layout with theme) */
.text-tool {
    
    margin: 0 auto;
}

.text-tool.editor-section,
.editor-section.text-tool {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-tool .card {
    border: 1px solid var(--color-border, #e5e7eb);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
    border-radius: var(--radius, 12px);
    background: var(--color-surface, #fff);
}

.text-tool .card-body {
    padding: 1.25rem 1.35rem;
}

.text-tool .card-title {
    color: var(--color-text, #1f2937);
    font-weight: 700;
    font-size: 1.05rem;
}

.text-tool .form-control,
.text-tool .form-select,
.text-tool .select-input,
.text-tool textarea {
    border-radius: 8px;
    border: 1px solid var(--color-border, #e5e7eb);
}

.text-tool .form-control:focus,
.text-tool .form-select:focus,
.text-tool textarea:focus {
    border-color: var(--color-primary, #0d9488);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.text-tool .btn-primary {
    background: var(--color-primary, #0d9488);
    border-color: var(--color-primary, #0d9488);
}

.text-tool .btn-primary:hover {
    background: var(--color-primary-hover, #0f766e);
    border-color: var(--color-primary-hover, #0f766e);
}

.text-tool .alert {
    border-radius: 10px;
}

[data-theme="dark"] .text-tool .card {
    background: var(--color-surface, #1f2937);
    border-color: var(--color-border, #374151);
}

[data-theme="dark"] .text-tool .card-title,
[data-theme="dark"] .text-tool .form-label,
[data-theme="dark"] .text-tool {
    color: var(--color-text, #f9fafb);
}

[data-theme="dark"] .text-tool .text-muted,
[data-theme="dark"] .text-tool .form-text {
    color: var(--color-text-secondary, #9ca3af) !important;
}

[data-theme="dark"] .text-tool .form-control,
[data-theme="dark"] .text-tool .form-select,
[data-theme="dark"] .text-tool textarea {
    background: #111827;
    color: var(--color-text, #f9fafb);
    border-color: var(--color-border, #374151);
}

/* --- tool: password-generator --- */
.tool-password-generator-full .input-group input {
      font-size: 1.15rem;
      letter-spacing: 1px;
    }
    .tool-password-generator-full .btn-primary {
      background: #6c63ff;
      border: none;
    }
    .tool-password-generator-full .btn-primary:hover {
      background: #2574e6;
    }
    .tool-password-generator-full .btn-outline-secondary {
      border-color: #6c63ff;
      color: #6c63ff;
    }
    .tool-password-generator-full .btn-outline-secondary:hover {
      background: #6c63ff;
      color: #fff;
    }
    .tool-password-generator-full .form-label {
      font-weight: 500;
      color: #555;
      margin-bottom: 0.5rem;
    }
    .tool-password-generator-full .form-control {
      border: 1px solid #e9ecef;
      border-radius: 6px;
    }
    .tool-password-generator-full .form-control:focus {
      border-color: #6c63ff;
      box-shadow: 0 0 0 0.2rem rgba(108, 99, 255, 0.25);
    }
    .tool-password-generator-full .form-range {
      height: 6px;
      border-radius: 3px;
    }
    .tool-password-generator-full .form-range::-webkit-slider-thumb {
      background: #6c63ff;
    }
    .tool-password-generator-full .form-range::-moz-range-thumb {
      background: #6c63ff;
    }
    .tool-password-generator-full .form-check-input:checked {
      background-color: #6c63ff;
      border-color: #6c63ff;
    }
    .tool-password-generator-full .form-check-input:focus {
      border-color: #6c63ff;
      box-shadow: 0 0 0 0.2rem rgba(108, 99, 255, 0.25);
    }
    .tool-password-generator-full .form-check-label {
      color: #555;
      font-size: 0.95rem;
    }
    .tool-password-generator-full textarea {
      font-family: 'Courier New', monospace;
      font-size: 0.9rem;
      line-height: 1.4;
      resize: vertical;
    }
