:root {
    --bg-color: rgb(18, 18, 19);
    --txt-color: rgb(246, 244, 240);
    --txt-color-light: rgb(162, 159, 159);
    --gray100: rgb(30, 30, 31);
    --gray200: rgb(43, 43, 44);
    --primary: rgb(94, 83, 218);
    --primary-dark: rgb(53, 44, 156);
    --txt-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg-color);
    font-family: "Darker Grotesque", sans-serif;
    color: var(--txt-color);
    display: flex;
    flex-direction: column;

    font-size: var(--txt-size);
}

header {
    box-sizing: border-box;
    width: 100%;
    height: 60px;
    padding: 0 50px;
    display: flex;
    align-items: center;

    h1 {
        margin: 0;
        font-weight: 400;
    }
}

#dashboard-control {
    position: fixed;
    top: 80px;
    left: 0;
    width: 40px;
}

button:hover {
    cursor: pointer;
}

button svg,
button svg g {
    stroke: var(--txt-color);
    transition: .5s;
}

.dashboard-btn {
    height: 40px;
    width: 50px;
    transform: translateX(-6px);
    background-color: var(--gray100);
    border: 1px solid var(--gray200);
    border-radius: 0 5px 5px 0;
    transition: .5s;
}

.dashboard-btn:hover {
    transform: translateX(-1px);
}

.dashboard-btn:hover svg g,
.editor-header button:hover svg {
    stroke: var(--primary);
    filter: drop-shadow(0px 0px 2px #863d96);
}

.dashboard-btn:active svg g {
    stroke: var(--primary-dark);
    filter: none;
}

main {
    width: 100%;
    box-sizing: border-box;
    padding: 0 60px;
    flex-grow: 1;

    display: flex;
    flex-direction: column;
    gap: 20px;

    .edit-container {
        box-sizing: border-box;
        width: 100%;
        background-color: var(--gray100);
        border: 1px solid var(--gray200);
        border-radius: 5px;
        height: 85vh;
        padding: 20px;

        display: flex;
        gap: 20px;

        .param-editor {
            width: 250px;
            /* min-width: 20%; */
            flex-grow: 1;

            .editor-header {
                display: flex;
                align-items: center;
                justify-content: space-between;

                h2 {
                    margin: -8px 0 0 0;
                    font-weight: 400;
                }

                button {
                    border: 0;
                    background-color: transparent;
                }

                button svg {
                    width: 25px;
                }
            }

            .data-sets-container,
            .fit-curves-container {
                position: relative;

                h3 {
                    font-weight: 300;
                    text-align: center;
                }

                button.add-btn {
                    background-color: transparent;
                    border: none;
                    position: absolute;
                    top: 3px;
                    right: 0;
                }

                button.add-btn svg {
                    width: 20px;
                }

                button.add-btn:hover svg {
                    transform: scale(1.2);
                }
            }

            .settings-editor {
                max-height: 95%;
                position: relative;
                overflow-y: scroll;
            }

        }

        .graph-container {
            /* width: 100%; */
            flex-grow: 1;
            /* max-width: 70%; */
            height: 90%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }
}

.settings-editor {
    padding-left: 3px;
}

.settings-editor h3 {
    margin: 10px 0 0 0;
}

input {
    /* box-sizing: border-box; */
    background-color: var(--gray100);
    border: none;
    outline: 1px solid var(--gray200);
    color: var(--txt-color);
    font-family: "Darker Grotesque";
    padding: 5px;
    border-radius: 5px;
    transition: .2s;
}

input[type="number"] {
    width: 50px;
}

input[type="color"] {
    padding: 0 2px;
    width: 28px;
}

.config-wrapper {
    margin-bottom: 5px;
}

label.unit {
    color: var(--txt-color-light);
}

input:focus {
    outline: none;
    outline: 2px solid var(--gray200);
}

canvas {
    border-radius: 5px;
    /* background-color: rgb(73, 73, 73); */
    /* width: 1000px; */
    /* height: 575px; */
}

.data-set-wrapper {
    width: 100%;
    max-height: 60vh;
    /* display: flex; */
    /* flex-direction: column; */
    /* gap: 20px; */
    overflow-y: scroll;
}

.data-set {
    width: 100%;
    height: 300px;
    border-radius: 5px;
    background-color: var(--bg-color);
    position: relative;
    margin-bottom: 20px;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: scroll;

    .clipboard-btn {
        background-color: transparent;
        border: none;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .clipboard-btn svg {
        width: 80px;
        stroke: var(--gray100);
    }

    .clipboard-btn:hover svg {
        stroke: var(--txt-color-light);
    }
}

.none {
    display: none;
}

table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

thead tr th{
    padding-bottom: 10px;
}

tr:nth-child(1) td{
    
    border-top: 1px solid var(--gray200);
}

tr:nth-child(even) td{
    background-color: rgba(255, 255, 255, 0.040);
}

td:focus {
    outline:1px solid var(--primary);
}

tr {
    height: 25px;
}

tr:hover td{
    background-color: rgba(255, 255, 255, 0.10);
}

.dataset-config-btn {
    position: absolute;
    background-color: transparent;
    /* width: 20px; */
    top: 13px;
    border: 0;
    padding: 0;
    transition: .3s ease-out;
}

.dataset-settings {
    margin-top: 30px;
}

.dataset-config-btn svg {
    width: 20px;
}

.dataset-config-btn:hover {
    
    transform: scale(1.2);
}

footer {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--txt-color-light);
}