:root {
    --green: #00804C;
    --light-green: rgb(30, 158, 106);
    --gray: #EEEEEE;
    --light-gray: #F6F6F6;
    --text-gray: #212121;
    --text-light-gray: #333;
    --alert: #f06d06;
}

* {
    padding: 0;
    margin: 0;
    font-family: "Titillium Web", sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
}

a {
    text-decoration: none;
    color: inherit;
}

.loginText {
    cursor: pointer;
}

.link {
    color: var(--light-green);
}

table {
    display: table;
}

.cards {
    display: none;
}


.navbar {
    background-color: var(--green);
    color: white;
    text-shadow: 1px 1px 2px var(--text-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    box-shadow: rgba(0, 0, 0, 0.50) 0 3px 8px;
    flex-wrap: wrap;
    row-gap: 0.7em;
}

    .navbar span {
        display: flex;
        align-items: center;
        gap: 0.5em;
    }

        .navbar span svg {
            height: 4em;
            width: auto;
            min-width: 4em;
            min-height: 4em;
            filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.50));
        }

    .navbar h1 {
        font-size: 2.5em;
    }

    .navbar ul {
        list-style: none;
        display: flex;
        justify-content: space-evenly;
        gap: 2em;
        font-size: 1.2em;
    }

    .navbar .logout:hover {
        cursor: pointer;
    }

.content {
    display: flex;
    flex: 1;
}

.sidebar {
    background-color: var(--gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-gray);
}

    .sidebar ul {
        list-style: none;
        display: flex;
        flex-direction: column;
    }

    .sidebar li {
        display: flex;
        align-items: center;
        gap: 0.4em;
        padding: 1.1em 1em;
        transition: background-color 0.2s ease-in;
    }

        .sidebar li p {
            text-shadow: 0.3px 0.3px 1px var(--text-gray);
        }

        .sidebar li:hover {
            background-color: var(--light-green);
            color: white;
            fill: white;
            cursor: pointer;
        }

    .sidebar .active {
        background-color: var(--light-green);
        color: white;
        fill: currentColor;
    }

        .sidebar .active svg {
            fill: currentColor;
        }

    .sidebar .inactive {
        background-color: var(--gray);
        fill: currentColor;
    }

        .sidebar .inactive svg {
            fill: currentColor;
        }

    .sidebar li:hover svg {
        fill: currentColor;
    }

    .sidebar li svg {
        height: 2em;
        width: auto;
        fill: var(--text-gray);
    }

    .sidebar li p {
        font-size: 1.2em;
    }

.msgError {
    color: red;
    font-size: 1.2em;
}

.middle {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.main {
    flex: 1;
    padding: 2em;
}


.footer {
    border-top: 2px solid var(--gray);
    background-color: var(--light-gray);
    align-items: center;
    padding: 2em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

    .footer img {
        height: max(5em, calc(2em + 3vw));
        width: auto;
    }

    .footer .separator {
        width: 2px;
        height: 100%;
        background-color: var(--green);
    }

    .footer .info {
        color: var(--text-light-gray);
        display: flex;
        flex-direction: column;
    }

        .footer .info h1 {
            font-size: max(1.2em,calc(0.2em + 1.5vw));
        }

        .footer .info p {
            font-size: max(0.9em, calc(0.2em + 0.7vw));
        }

@media screen and (max-width: 980px) {
    body {
        font-size: 14px;
    }

    .sidebar p {
        display: none;
    }
}


@media screen and (max-width: 768px) {

    .footer {
        flex-direction: column;
        justify-content: center;
    }

        .footer .separator {
            height: 2px;
            width: 100%;
            background-color: var(--green);
        }

    table {
        display: none;
    }

    .cards {
        display: flex;
        flex-wrap: wrap;
        gap: 2em;
        justify-content: center;
        margin-top: 1em;
        margin-bottom: 1em;
    }

    .card a {
        margin-left: auto;
    }

    .action-btn {
        margin-top: 0.5em;
        font-size: 1.2em;
    }
}



@media screen and (max-width: 682px) {
    body {
        font-size: 10px;
    }
}
