* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    /* --main-font-color: #464646;
    --helfer-green: #B2D289;
    --helfer-orange: #DF9E71;
    --helfer-blue: #82BBDD;
    --helfer-blue-light: #abd2e8;
    --helfer-blue-lighter: #b8e0f7;
    --dark-orange: #C47C4B;
    --bg-color-main: #FFFFFF; */
    --main-font-color: #464646;
    --secondary-font-color: #ffffff;
    --helfer-green: #B2D289;
    --helfer-orange: #DF9E71;
    --helfer-blue: #82BBDD;
    --helfer-blue-light: #abd2e8;
    --helfer-blue-lighter: #b8e0f7;
    --dark-orange: #C47C4B;
    --bg-color-main: #ffffff;
    --accent-color: rgb(65, 110, 244);
    --light-gray: rgb(162, 194, 207);

    /* --main-font-color: #FFFFFF;
    --secondary-font-color: #1b1b1d;
    --helfer-green: #383e45;
    --helfer-orange: #383e45;
    --helfer-blue: #383e45;
    --helfer-blue-light: #383e45;
    --helfer-blue-lighter: #383e45;
    --dark-orange: #14181a;
    --bg-color-main: #252a2f;
    --accent-color: rgb(148, 126, 255); */

    font-family: 'Karla', Arial, Helvetica, sans-serif;
    color: var(--main-font-color);
    font-size: 1.1rem;
}

body {
    height: fit-content;
    min-height: 100vh;
    background-color: var(--bg-color-main);
    display: grid;
    grid-template-columns: 80px auto;
}

a {
    text-decoration: none;
}

button {

    cursor: pointer;
    transition: filter 0.2s;
}

button:hover {

    filter: brightness(1.2);
}

#sidebar {

    background-color: var(--helfer-orange);
    display: grid;
    align-items: center;
    height: 100vh;
    position: sticky;
    top: 0;

    & #nav-container {

        height: fit-content;
        display: grid;

        & a {

            position: relative;
            height: 80px;
            width: 80px;
            background-color: transparent;
            border-left: 0px solid white;
            transition: border-width 0.1s, background-color 0.25s;
            display: grid;
            justify-content: center;
            align-content: center;
            grid-template-columns: auto;

            & img {

                height: auto;
                width: 32px;
            }

            & .descriptor {

                display: none;
                background-color: var(--helfer-orange);
                padding: 5px 15px;
                height: 40px;
                width: fit-content;
                top: 20px;
                left: 100px;
                justify-content: center;
                align-content: center;
                border-radius: 4px;
                box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);

                & p {

                    color: var(--secondary-font-color);
                    font-weight: 600;
                }

                & ::before {

                    content: "";
                    display: grid;
                    position: absolute;
                    height: 20px;
                    width: 20px;
                    top: 10px;
                    left: -8px;
                    transform: rotate(45deg);
                    background-color: var(--helfer-orange);
                    border-radius: 4px;
                }
            }
        }

        & a:hover:not(.selected) {
                
            background-color: var(--accent-color);
            border-left: 5px solid white;

            & .descriptor {

                display: grid;
                position: absolute;
            }
        }

        & .selected {
                
            background-color: var(--accent-color);
            /* border-left: 5px solid white; */
        }
    }

}

main {

    display: grid;
    grid-template-rows: auto auto auto auto auto auto;
    padding: 40px;
    align-content: start;

    & h2 {

        margin-bottom: 12px;
    }

    & div:not(:last-child) {

        margin-bottom: 40px;
    }

    & #new-entry-container {

        background-color: var(--light-gray);
        border-radius: 20px;
        padding: 40px;
        display: grid;
        position: relative;
    }

    & #client-search-container {

        background-color: var(--helfer-green);
        border-radius: 20px;
        padding: 40px;
        display: grid;
    }

    & #table-container {

        width: 100%;
        display: grid;
        grid-template-rows: auto 40px;
        align-content: start;
        row-gap: 20px;
        grid-template-areas: 'table table table';

        & #table-clients {

            height: fit-content;
            background-color: var(--helfer-blue-lighter);
            border-radius: 20px;
            overflow: hidden;
            border-spacing: 0;
            grid-area: table;

            & tbody {

                & tr {

                    height: 60px;
                    transition: background-color 0.25s;

                    & th, td {

                        padding: 0 10px;
                    }

                    & th:first-child, td:first-child, th:last-child, td:last-child {

                        padding: 5px 40px;
                    }

                    & th {

                        text-align: left;
                        color: var(--main-font-color);
                        font-size: 1.2rem;

                        & button {

                            border: 0;
                            background-color: transparent;
                            font-weight: inherit;
                            color: inherit;
                            font-size: inherit;
                            cursor: pointer;
                        }
                    }

                    /* & td {

                    } */
                }

                & tr:nth-child(1) {

                    height: 60px;
                    background-color: var(--helfer-blue);
                    font-size: 1.1rem;
                }

                & tr:nth-child(even) {

                    background-color: var(--helfer-blue-light);
                }

                & tr:not(:first-child):hover {

                    background-color: var(--helfer-blue);
                }
            }
        }

        & #page-before, #page-after {

            border: 0;
            border-radius: 8px;
            background-color: var(--accent-color);
            max-width: 200px;
            width: 100%;
            color: var(--secondary-font-color);
            font-weight: 600;
            font-size: 1.1rem;
        }

        & #page-before {

            justify-self: start;
        }

        & p {

            font-weight: 600;
            font-size: 1.1rem;
            align-self: center;
            text-align: center;
        }

        & #page-after {

            justify-self: end;
        }
    }
}