* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    color: #fff;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: white;
}

img {
    max-width: 100%;
    height: auto;
}

.wrapper {
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(26,14,1,1) 100%);
    width: 100%;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}


header {
    padding: 50px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    text-transform: uppercase;
    font-size: 29px;
    font-weight: 800;
}

header nav {
    width: auto;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

header nav ul li {
    position: relative;
}

header nav ul li a {
    color: #fff;
}

header nav ul li.active::after {
    content: '';
    display: block;
    width: 40px;
    height: 5px;
    background: #DC7000;
    border-radius: 10px;
    margin-top: 8px;
}

header nav ul li:not(.active):not(.btn) a:hover {
    border-bottom: 3px solid #DC7000;
    padding-bottom: 3px;
}

header nav ul li.btn a {
    background: #FA9021;
    padding: 9px 17px;
    border-radius: 5px;
    transition: 0.3s;
}

header nav ul li.btn a:hover {
    background: #3b2003;
}


.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f1f1f;
    min-width: 220px;
    padding: 10px 0;
    border-radius: 10px;
    z-index: 1000;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #aaa;
    transition: 0.3s;
}

.dropdown-menu li a:hover {
    background: #2a2a2a;
    color: #fff;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.generator-section {
    display: flex;
    justify-content: center;
    padding: 60px 0 100px;
}

.generator-box {
    width: 420px;
    max-width: 100%;
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.generator-box h1 {
    text-align: center;
    margin-bottom: 20px;
}


#password {
    width: 100%;
    height: 65px;
    border: none;
    outline: none;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 20px;
    background: #111;
    color: white;
}


.settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.settings label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

#length {
    width: 80px;
    padding: 6px;
    border-radius: 8px;
    border: none;
    outline: none;
}

.buttons {
    display: flex;
    gap: 10px;
}

.buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: #FA9021;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.buttons button:hover {
    background: #DC7000;
    transform: scale(1.05);
}


@media (max-width: 768px) {

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    header nav {
        width: 100%;
    }

    header nav ul {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .dropdown-menu {
        position: static;
        display: block;
        background: transparent;
        padding-left: 10px;
    }

    .dropdown-menu li a {
        padding: 6px 0;
        color: #ccc;
    }

    .dropdown-menu li a:hover {
        background: transparent;
        color: #FA8305;
    }

    .generator-section {
        padding: 30px 0 60px;
    }

    .generator-box {
        padding: 20px;
    }

    #password {
        height: 55px;
        font-size: 18px;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons button {
        width: 100%;
    }

    .settings label {
        flex-direction: column;
        align-items: flex-start;
    }

    #length {
        width: 100%;
    }
}