@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #ddd;
    color: black;
    font-family: "Poppins", sans-serif;
}

header a {
    text-decoration: none;
}

header {
    padding: 0 20px;
    background-color: #1d1f1d;
    height: 50px;
    display: flex;
    justify-content: space-between;
}

#brand {
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
}

    #brand a {
        color: #ff0000;
    }

ul {
    list-style: none;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

    ul a {
        color: white;
    }

    ul li {
        padding: 5px;
        margin-left: 10px;
    }

        ul li:hover {
            transform: scale(1.1);
            transition: 0.3s;
        }

#logout {
    border-radius: 5px;
    padding: 5px 8px;
}

#logout {
    border: 1px solid #ff0000;
}

#logout a {
    color: #ff0000;
}

#hamburger-icon {
    margin: auto 0;
    display: none;
    cursor: pointer;
}

    #hamburger-icon div {
        width: 35px;
        height: 3px;
        background-color: white;
        margin: 6px 0;
        transition: 0.4s;
    }

.open .bar1 {
    -webkit-transform: rotate(-45deg) translate(-6px, 6px);
    transform: rotate(-45deg) translate(-6px, 6px);
}

.open .bar2 {
    opacity: 0;
}

.open .bar3 {
    -webkit-transform: rotate(45deg) translate(-6px, -8px);
    transform: rotate(45deg) translate(-6px, -8px);
}

.open .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    height: calc(100vh - 50px);
    width: 100%;
    background-color:black;
}

    .mobile-menu li {
        margin-bottom: 10px;
    }

@media only screen and (max-width: 600px) {
    header nav {
        display: none;
    }

    #hamburger-icon {
        display: block;
    }
}

.hamburger {
    margin-top: 10px;
    margin-left: 10px;
    z-index: 1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    width: 30px;
}

    .hamburger span {
        background-color: red;
        display: block;
        height: 5px;
        margin-bottom: 5px;
        width: 25px;
    }

        .hamburger span:last-child {
            margin-bottom: 0;
        }

.sidebar {
    z-index: 0;
    height: 300px;
    width: 250px;
    position: fixed;
    top: 50px;
    left: 0;
    padding-top: 40px;
    background-color: #1d1f1d;
    transition: all 0.3s ease-in-out;
}

    .sidebar h1 {
        font-size: 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 10px;
        color: white;
    }

    .sidebar a {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        color: white;
    }

    .sidebar.collapsed {
        width: 0;
        overflow: hidden;
    }
/* Header styles */
h1 {
    font-size: 28px;
    text-align: center;
    margin: 20px 0;
}

h2 {
    font-size: 18px;
    text-align: center;
    margin: 10px 0;
}

/* Box Styles*/
box {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 3px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    margin: 5px;
}

/* Center the login form on the page */
form {
    margin: auto;
    width: 50%;
    padding: 20px;
    border: 3px solid #ccc;
    border-radius: 10px;
}

form_export {
    margin: auto;
    padding: 30px;
    width: 500px;
    border: 3px solid #ccc;
    border-radius: 10px;
    box-shadow: 5px;
}

/* Style the form select and button elements */
select, button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 5px;
}

button {
    background-color: #ff0000;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #808080;
}

/* Style the form input fields */
label, input[type="text"], input[type="password"], input[type="submit"] {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

label {
    font-weight: bold;
}

input[type="submit"] {
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    input[type="submit"]:hover {
        background-color: #808080;
    }

container {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin: auto;
    padding: 5px;
}

/* Style the checkbox container */
.checkbox-container {
    padding-left: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 18px;
}

    /* Hide the default checkbox */
    .checkbox-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

/* Create the custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
    background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/*Table styles*/
table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 auto;
}

th, td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #808080;
}


/* Datatables styles */
.dataTables_wrapper {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .desktop-chart {
        display: none;
    }

    .mobile-chart {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-chart {
        display: none;
    }

    .desktop-chart {
        display: block;
    }
}