/********
ROOT
********/
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;500;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container{
   flex: 0 0 85%;
    height: 100vh;
}

.main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

body{
    font-family:  'Roboto', sans-serif;
    font-size: 20px;
    display: flex;
    
}

h1, h2, h3, h4{
    margin-bottom: 50px;
}

a{
    text-decoration: none;
    color: #000;
}

ul{
    list-style: none;
}

form{
    width: 500px;
    margin-bottom: 50px;
}

form > div{
    position: relative;
}

form > div i{
    position: absolute;
    right: 20px;
    top: 14px;
    cursor: pointer;
}

form label{
    display: block;
    padding-left: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    color: lightgrey;
    font-weight: 300;
}

form input, form select{
    padding: 12px 10px;
    width: 100%;
    border: 2px solid rgb(6,67,242);
    border-radius: 1rem;
}

form input:focus, form select:focus{
    outline: none;
}

form input[type=submit]{
    display: block;
    margin-top: 50px;
    background-color: rgb(6,67,242);
    color: #fff;
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    transition: .3s;
    box-shadow: 3px -3px 5px rgba(0,0,0,.4);
}

form input[type=submit]:hover{
    box-shadow: none;
    transform: translate(3px, -3px);
}

/***********
HEADER
***********/

.mobile{
    display: none;
}

header{
    background-color: rgb(6,67,242);
    height: 100vh;
    flex: 0 0 15%;
    box-shadow: 0 0 12px rgba(0,0,0,.4);
    color: #fff;
    min-width: 220px;
}

.desktop{
    width: 100%;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
}

.desktop p{
    font-style: italic;
}

.desktop .brand{
    height: 15vh;
}

.desktop .brand a{
    font-size: 36px;
    font-style: italic;
}

.desktop ul{
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
   
}

.desktop ul li{
    border-bottom: 2px solid #fff;
    margin-bottom: 20px;
}

.desktop ul li a{
    display: block;
    padding-bottom: 10px;
}



header a{
    color: #fff;
}

#nav{
    display: none;
}

/******
MAIN
******/

.fuel{
   display: flex; 
   align-items: center;
   justify-content: space-between;
   width: 50%;
   height: 300px;
}

.fuel article, .pumpe a{
    padding: 20px 0;
    flex: 0 0 22%;    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0,0,0,.4);
    background: rgb(6,67,242);
    color: #fff;
    cursor: pointer;
    transition: .3s;
}

.fuel article span{
    color: red;
    font-size: 32px;
    margin: 10px auto;
}

.fuel article a{
    color: #fff;
}

table{
    width: 50%;
    margin-bottom: 50px;
}

table tr:first-child {
    background-color: rgb(6,67,242);
    color: #fff;
    width: 100%;
    text-align: center;
}
table tr:first-child td{
    padding: 10px 0;
}

table td{
    font-size: 16px;
    padding: 5px 0;
    
}

.pumpe{
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pumpe a{
    padding: 20px;
    min-width: 130px;
}

.kolGoriva tr td:not(:first-child){
text-align: center;
}

.fuelChAdmin td:not(:first-child){
    cursor: pointer;
}

.kodPrikaz{
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kodPrikaz h3{
    margin-bottom: 0;
}

.dodajR{
    margin-bottom: 50px;
}
.toolbox{
    position: absolute;
    top: 50px;
    left: 25%;
    width: 50%;
    height: 20vh;
    display: block;
    display: none;
}

.toolbox p{
    text-align: center;
    line-height: 20vh;
}

.pregledRadnika td{
    padding-left: 10px;
    width: 50%;
}

.pregledRadnika tr:first-child td{
    text-align: left;
    padding-left: 10px;
}

.pregledRadnika tr td:first-child{
    background-color: rgb(6,67,242);
    color: #fff;
}

.pregledRadnika tr td:last-child{
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

.adminPanelRadnici{
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 350px;
}

.adminPanelRadnici section{
   width: 50px;
   display: flex;
   justify-content: space-between;
}

.adminPanelRadnici section a:last-child{
    color: red;
}

.pumpePage{
    flex-direction: column !important;
}

.pumpaSingle{
    display: flex;
    justify-content: space-between;
    min-width: 300px;
}

.dodajPumpu{
    margin-top: 50px;
    margin-bottom: 0;
}

.dodajPumpu label{
    text-align: center;
    color: #000;
    font-size: 20px;
    font-weight: 500;
}

@media(max-width: 1000px){
    body{
        flex-direction: column;
    }

    body #nav{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        position: absolute;
        width: 100%;
        height: 90vh;
        background: #fff;
        top: 10vh;
        left: -100%;
        transition: .3s;
        z-index: 1000;
    }

    body #nav ul{
        height: 200px;
        width: 200px;
    }

    body #nav p{
        width: 200px;
    }

    header{
        width: 100%;
        height: 10vh;
        flex: none;
        margin-bottom: 50px;
    }

    .desktop{
        display: none;
    }

    .mobile{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 10vh;
        padding: 0 50px;
    }

    .mobile .brand{
        font-style: italic;
    }

    .toggler{
        width: 30px;
        height: 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .toggler .bar{
        background-color: #fff;
        height: 3px;
        width: 100%;
        transition: .3s;
    }

    .mobile .active .bar1{
        transform: rotate(-45deg) translate(-9px, 6px);
    }

    .mobile .active .bar2{
        transform: translateX(200px);
        opacity: 0;
    }

    .mobile .active .bar3{
        transform: rotate(45deg) translate(-13px, -10px);
    }

    
}

@media(max-width: 768px){

    h1{text-align: center;}

    table{
        width: 90%;
    }

   
    .fuel{
        width: 90%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        grid-gap: 20px;
        padding-bottom: 100px;
        height: auto;
    }

    .fuel article{
      justify-self: center;
      width: 200px;
    }

    form{
        width: 90%;
    }
    
}


