<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Password Strength Checker & Generator</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="container">
        <h2 class="heading">Password Strength Checker</h2>
        <input type="password" id="password" placeholder="Enter your password" class="password-input" oninput="checkPasswordStrength()">
        <div id="strength" class="strength"></div>
        <div id="suggestion" class="suggestion"></div>
        
        <hr class="divider">

        <h2 class="heading">Password Generator</h2>
        <label for="length">Password Length:</label>
        <input type="number" id="length" class="number-input" placeholder="8-20" min="8" max="20">
        
        <div class="checkbox-container">
            <label>
                <input type="checkbox" id="includeSpecial"> Include Special Characters
            </label>
            <label>
                <input type="checkbox" id="includeNumbers"> Include Numbers
            </label>
        </div>

        <button class="generate-btn" onclick="generatePassword()">Generate</button>
        
        <input type="text" id="generatedPassword" class="generated-password" readonly placeholder="Generated Password">
        <button class="copy-btn" onclick="copyPassword()">Copy</button>
    </div>
    
<!-- Footer Section -->
<div class="footer">
    <p>By <span class="glow">59Official</span></p>
</div>

    <!-- Feedback Button und Modal -->
    <div id="feedback-container">
        <button id="feedback-button" class="feedback-button">📝 Feedback</button>
        <div id="feedback-modal" class="feedback-modal">
            <div class="modal-content">
                <h2>Dein Feedback</h2>
                <textarea id="feedback-text" placeholder="Schreib uns dein Feedback..."></textarea>
                <button id="submit-feedback" class="submit-feedback">Absenden</button>
                <button id="close-feedback" class="close-feedback">Schließen</button>
            </div>
        </div>
    </div>

    <div id="error-message" style="display: none; color: red; font-size: 1.2em; font-weight: bold; text-align: center; animation: fadeIn 0.8s ease;">
        🚨 Bitte gib eine Zahl ein, bevor du ein Passwort generierst!
    </div>
    

    <script src="script.js"></script>
</body>
</html>
