* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #1a1a2e;
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #2d2d42;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #4361ee;
    letter-spacing: 1px;
}

.help-btn {
    background: #4361ee;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.help-btn:hover {
    background: #3451db;
}

.main-content {
    margin-top: 50px;
    display: grid;
    gap: 30px;
}

.password-generator, .password-storage, .stored-passwords, .password-history {
    background: #16213e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-bottom: 20px;
    color: #4361ee;
    font-weight: 600;
}

.password-display {
    background: #1f2937;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#password {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    word-break: break-all;
}

.copy-btn {
    background: #4361ee;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.copy-btn:hover {
    background: #3451db;
}

.options {
    margin-bottom: 20px;
}

.option {
    margin-bottom: 15px;
}

input[type="checkbox"] {
    margin-right: 10px;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.strength-meter {
    height: 10px;
    background: #1f2937;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.strength-meter-fill {
    height: 100%;
    width: 0%;
    transition: 0.3s;
}

.generate-btn, .store-btn {
    background: #4361ee;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.generate-btn:hover, .store-btn:hover {
    background: #3451db;
}

.storage-form {
    display: grid;
    gap: 15px;
}

.storage-form input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #2d2d42;
    background: #1f2937;
    color: #fff;
    font-size: 16px;
}

.storage-form input:focus {
    outline: none;
    border-color: #4361ee;
}

.help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #16213e;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
}

.modal-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.modal-content li {
    margin-bottom: 10px;
}

.close-btn {
    background: #4361ee;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    background: #3451db;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #4361ee;
    color: white;
    border-radius: 8px;
    transform: translateX(200%);
    transition: 0.3s;
}

.toast.show {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .password-generator, .password-storage, .stored-passwords, .password-history {
        padding: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }
}  