@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
}

header {
    width: 100%;
    height: fit-content;
    background-color: #fff;
    padding: 1.5rem 0;
    color: #333;
    display: flex;
    justify-content: center;

    .header-content {
        width: 80%;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;

        ul {
            display: flex;
            column-gap: 50px;
        }
    }
}

a {
    color: inherit;
}

p {
    color: white;
}

label {
    width: 300px;
    font-size: 15px;
    text-align: start;
}

input {
    width: 310px;
    border-radius: 5px;
    border: none;
    outline: none;
    padding: 8px 0 8px 10px;
}

span {
    display: flex;
    width: 92%;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 600;
}

button {
    margin-top: 10px;
    background-color: yellowgreen;
    color: black;
    border: none;
    outline: none;
    width: 70px;
    height: 2.3rem;
    border-radius: 5px;
    margin-left: 5px;
    cursor: pointer;

    &:hover {
        background-color: transparent;
        border: 1px solid black;
        color: black;
    }
}

body {
    overflow-x: hidden;
    background-color: #333;
}

.tittle-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px 0;

    .tittle-content {
        width: 80%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;

        h1 {
            font-size: 2rem;
            color: #fff;
        }

        h2 {
            margin-top: -10px;
            color: #fff;
        }
    }
}

.groups-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;

    .groups-content {
        width: 80%;
        height: 100%;
        display: flex;
        justify-content: start;

        .group-1 {
            width: 50%;
            height: 100%;
            display: flex;
            flex-direction: column;
    
            .search {
                display: flex;
                flex-direction: column;
                color: #fff;
            }
        }
    
        #group-2 {
            width: 50%;
            height: 100%;
            display: none;

            #list {
                width: 100%;
                height: 100%;
                border-bottom-right-radius: 15px;
                border-bottom-left-radius: 15px;
                border-top-right-radius: 15px;
                padding: 10px 20px;
                color: black;
                border: 1px solid white;
            }

            #list ul {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
            }
            
            #list ul li {
                color: white;
            }
            
            #label-list {
                width: 50%;
                padding: 0 10px;
                text-align: start;
                border-top-right-radius: 15px;
                background-color: white;
                color: black;
            }
        }
    
        #qtd-group {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: start;
            align-items: end;
            column-gap: 10px;
            margin-top: 20px;
    
            .qtd-group-1, 
            .qtd-group-2 {
                display: flex;
                flex-direction: column;
            }
            
            #btn-add-supply {
                width: auto;
                padding: 25px 30px;
                display: flex;
                justify-content: center;
                align-items: center;
                border: none;
                outline: none;
                cursor: pointer;
                border-radius: 10px;
                background-color: white;
                color: black;
            }
    
            #label-qtd, #label-remainder {
                width: 150px;
                background-color: white;
                color: black;
                padding: 0 10px;
                border-top-right-radius: 10px;
            }
            
            #qtd-abast, #qtd-remainder {
                width: 150px;
                height: 50px;
                align-content: center;
                border: 1px solid white;
                text-align: center;
            }
        }
    }
}

.info-container {
    width: 100%;
    display: flex;
    justify-content: center;

    .info-content {
        width: 80%;
        display: flex;
        flex-direction: column;
        color: #fff;

        .label-span {
            width: 15%;
            color: black;
            padding-left: 10px;
            background-color: white;
            border-top-right-radius: 10px;
        }

        #container-span {
            width: 100%;
            height: 30vh;
            display: flex;
            justify-content: center;
            border: 1px solid white;
            border-top-right-radius: 10px;
        }

        .info {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
    }
}

footer {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    .footer-content {
        width: 80%;
        height: 100%;
        margin-bottom: 30px;

        button {
            width: 200px;
            background-color: #fff;

            &:hover {
                background-color: lightskyblue;
                border: none;
                color: #000;
            }
        }
    }
}

#span-fleet, 
#span-plate {
    width: 20%;
    font-weight: inherit;
    font-size: 16px;
    color: black;
    background-color: white;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
}

#abast {
    margin: 0 2rem;

    #input-abast {
        width: 160px;
        border: 1px solid #333;
    }

}

#btn-close-dialog, #btn-reset {
    margin-top: 30px;
    margin-left: 0;
    background-color: darkred;
    color: white;

    &:hover {
        background-color: transparent;
        border: 1px solid black;
        color: black;
    }
}

#dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    p {
        text-align: center;
        font-size: 1.5rem;
        font-weight: 600;
        color: black;
    }
}

#dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 1000px){

    body {
        height: 100vh;
    }

    #span {
        font-size: 32px;
    }

    .groups {
        flex-direction: column;
        row-gap: 20px;
        height: 30%;
    }

    #label-list {
        width: 67%;
    }

    #qtd-group {
        margin-top: 20px;
    }

    .label-span {
        width: 40%;
        margin-top: 40px;
    }

    #span-fleet, #span-plate {
        width: 40%;
    }

    #btn-add-supply {
        min-width: 50px;
        margin: 0;
    }

}

@media (max-width: 850px){

    header {
        padding: 0 2rem;
    }

    .tittle {
        padding: 0 2rem;
    }

    .tittle h1 {
        font-size: 2rem;
    }

    .tittle h2 {
        font-size: 1rem;
    }

    .groups {
        padding: 0 2rem;
    }

    .info-content {
        padding: 0 2rem;
    }

}

@media (max-width: 450px) {

    header {
        padding: 0 1rem;
    }

    #input {
        width: 220px;
    }

    .tittle h1 {
        font-size: 1.5rem;
    }

    .tittle h2 {
        font-size: 1rem;
    }

    .tittle {
        padding: 0 1rem;
    }

    .groups {
        padding: 0;
        margin: 0;
        transform: scale(0.9);
    }

    .info-content {
        padding: 0;
        transform: scale(0.9);
    }


}