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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #fafafa;
}

nav {
    width: 100%;
    padding: 12px 0;
    background: #fafafa;
    box-shadow: -3px -3px 7px #ffffff,
        3px 3px 5px #ceced1;
    position: fixed;
    margin-bottom: 20px;
    z-index: 100;
}

nav .menu {
    max-width: 1270px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu .logo a {
    text-decoration: none;
    color: #31344b;
}

.menu ul {
    list-style: none;
    display: flex;
}

.menu ul a {
    margin: 0 8px;
    text-decoration: none;
    font-size: 15px;
    color: #31344b;
    font-weight: 400;
    display: inline-flex;
    padding: 7px 12px;
    position: relative;
    transition: all 0.3s ease;
}

.menu ul a:hover:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #009aff21;
    border-radius: 5px
}

.menu ul a:hover {
    color: #3498db;
}

nav label.button {
    color: #31344b;
    font-size: 18px;
    cursor: pointer;
    display: none;
}

nav label.cancel {
    position: absolute;
    top: 25px;
    right: 30px;
}

#check {
    display: none;
}

@media (max-width:850px) {
    .menu ul {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 400px;
        padding-top: 60px;
        height: 100%;
        background: #fafafa;
        box-shadow: 0 5px 10px #b0b0b5;
        z-index: 105;
        transition: all 0.3s ease;
    }

    .menu ul li {
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .menu ul a {
        display: block;
        font-size: 23px;
        width: 85%;
        margin-top: 15px;
        box-shadow: none;
    }

    .menu ul a:hover:before {
        box-shadow: none;
    }

    nav label.bars {
        display: block;
    }

    #check:checked~label.bars {
        display: none;
    }

    #check:checked~ul label.cancel {
        display: block;
    }

    #check:checked~ul {
        left: 0;
    }
}

.overlay {
    padding-top: 90px;
    padding-bottom: 5px;
    background: #fff;
    width: 85%;
    height: 100vh;
    box-shadow: 0 1px 4px #b0b0b5;
    overflow: auto;
}

.data-table {
    overflow-x: visible;
}

.btn-insert {
    color: #3498db;
    padding: 8px 20px;
    font-size: 15px;
    border: 1px solid #3498db;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    float: right;
}

.btn-insert:hover {
    background: #3498db;
    color: #fff;
}

input,
textarea {
    width: 300px;
    padding: 6px 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #212529;
    border: 1px solid #ced4da;
    border-radius: 5px;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

input:focus {
    border-color: #86b7fe;
    outline: 0;
}

.btn-add {
    width: 300px;
    color: #25bf37;
    padding: 8px 20px;
    font-size: 15px;
    border: 1px solid #25bf37;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
}

.btn-add:hover {
    background: #25bf37;
    color: #fff;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    width: 300px;
    text-align: left;
}

.btn-delete {
    color: #ec2929;
    padding: 4px 20px;
    font-size: 15px;
    border: 1px solid #ec2929;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
}

.btn-delete:hover {
    background: #ec2929;
    color: #fff;
}

.filter {
    width: 95%;
    padding: 20px 0;
    text-align: left;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
	position: relative;
	z-index: 10;
}

.filter input,
.filter datalist,
.filter fieldset {
    width: 250px;
    margin-right: 20px;
}

.filter .btn-insert,
.filter .btn-add {
    height: 38px;
    margin-right: 10px;
}

.filter form {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: auto;
}

.filter div a .btn-add {
    width: auto;
}

@media (max-width:890px) {
    .filter {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .filter div a .btn-add {
        width: 100%;
        margin-top: 10px;
    }

    .filter .btn-insert {
        margin: 0;
        width: 30%;
    }
}

@media (max-width:750px) {
    .filter form {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
    }

    .filter .btn-insert {
        width: 100%;
    }

    .filter div a .btn-add {
        width: 100%;
        margin-top: 10px;
    }

    .filter input {
        width: 100%;
        margin-top: 10px;
    }

    .filter fieldset {
        width: 100%;
    }

    .filter datalist {
        width: 81%;
    }
}

@media (max-width:700px) {
    .insert-user .btn-insert {
        float: none;
        width: 100%
    }

    .overlay {
        padding: 70px 20px;
    }
}

@media (max-width:1260px) {
    .btn-update,
    .btn-delete {
        width: 100%
    }

    .btn-update {
        margin-bottom: 5px;
    }
}

.btn-update {
    color: #f0bb0e;
    padding: 4px 20px;
    font-size: 15px;
    border: 1px solid #f0bb0e;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
}

.btn-update:hover {
    background: #f0bb0e;
    color: #fff;
}

input[type=text]:disabled {
    background: #dddddd;
}

/* custom scrollbar */
::-webkit-scrollbar {
	width: 20px;
}

::-webkit-scrollbar-track {
	background-color: transparent;
}

::-webkit-scrollbar-thumb {
	background-color: #d6dee1;
	border-radius: 20px;
	border: 6px solid transparent;
	background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
	background-color: #a8bbbf;
}