:root {
    --primary: #2d73f5 /*#0E43FB*/;
    --border: #343B4F;
    --neutral-800: #081028; /* Background */
    --neutral-700: #0A1330; /* Container Item 1 */
    --neutral-600: #0B1739; /* Container Item 2 */
    --neutral-500: #7E89AC;
    --neutral-400: #AEB9E1; /* Text 1 */
    --neutral-300: #D1DBF9;
    --neutral-200: #D9E1FA;
    --neutral-100: #FFFFFF; /* Text 2 */

    --green-400: #11845B;
    --green-300: #05C168;
    --green-200: #7FDCA4;

    --orange-400: #D5691B;
    --orange-300: #FF9E2C;
    --orange-200: #FFD19B;

    --red-400: #DC2B2B;
    --red-300: #FF5A65;
    --red-200: #FFBEC2;
}

* {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    /* font-weight: 400; */
    font-style: normal;
}

html, body {
    margin: 0;
    color: var(--neutral-100);
}

main {
    display: flex;
    width: 100vw;
    height: 100vh;
    background-color: var(--neutral-800);
    padding: 1px;
}

#sidebar {
    width: 20vw;
    height: 100vh;
    border-right: 1px solid var(--neutral-600);
    box-shadow: 8px 0 16px -4px rgba(0, 0, 0, 0.25); /* Stronger shadow on right */
}

.sidebar-item {
    color: var(--neutral-400);
    font-size: larger;
    padding: 8px 16px;
    margin: 8px 24px;
    border-radius: 4px;
    overflow: hidden;
    &.active{
        position: relative;
        color: var(--neutral-100);
        background-color: var(--neutral-600);

        &::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0px; /* adjust as needed */
            bottom: 0px; /* adjust as needed */
            width: 4px; /* thickness of the line */
            background: var(--primary); /* or any color you want */
            
        }
    }

}

#content {
    display:flex;
    width: calc(80vw - 80px);
    height: 100vh;
    padding: 0 40px;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;

    & button {
        background-color: var(--primary);
        border: none;
        border-radius: 4px;
        color: var(--neutral-100);
        padding: 10px 20px;

    }
}

#containers, #images {
    border-radius: 12px;
    border: 1px solid var(--border);
    background-color: var(--neutral-600);
    overflow: hidden;
    margin-top: 40px;



    & table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        border-top: 1px solid var(--border);
    }


    & td                        { padding: 20px 4px; }
    & tr:nth-child(even)        { background-color: var(--neutral-700); }
    & tbody tr:hover            { background-color: var(--neutral-500)}
    & td:first-child            { padding-left: 40px}
    & td:last-child             { padding-right: 40px}
    & tbody td:not(:first-child){ color: var(--neutral-400)}
    & td:last-child             { border-left: 1px solid var(--border)}
}

#containers-head, #images-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
}

.compose-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    & span {
        cursor: pointer;
        color: var(--primary);
        font-size: 28px;
    }
}

.mdi-circle {
    color: var(--green-300);
}
.mdi-circle-slice-4{
    color: var(--orange-300);
}

.mdi-circle-outline{
    color: var(--red-300);
}

.mdi-trash-can {
    color: var(--red-300) !important;
}



#overlay{
    position: absolute;
    top:0;
    left:0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
}

#overlay-content{
    width: 80vw;
    height: 80vh;
    background-color: var(--neutral-700);
    border-radius: 12px;
    padding:10px 25px;
    border: 1px solid var(--border);    
}


.input-label{
    display: flex;
    flex-direction: column;
    align-items: start;
    font-size: 10px;
    padding: 15px 0;

    & input {
        padding: 5px;
        font-size: large;
        color: white;
        border: 1px solid var(--border);
        border-radius: 4px;
        background-color: var(--neutral-500);
        margin-top: 4px;
    }
}

#create-project-form {
    display:flex;
    flex-direction: column;

    & table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        border-top: 1px solid var(--border);
        margin-bottom: 20px;
    }


    & td                        { padding: 20px 4px; }
    & tr:nth-child(even)        { background-color: var(--neutral-700); }
    & tbody tr:hover            { background-color: var(--neutral-600)}
    & td:first-child            { padding-left: 40px}
    & tbody td:not(:first-child){ color: var(--neutral-400)}
    & td:last-child             { border-left: 1px solid var(--border)}
    & thead td:last-child       { min-width: 2em;}


    & input:read-only {
        font-size: large;
        background-color: transparent;
        border: none;
        color: var(--neutral-100);
    }
    & input[name="in-port"] {width: 5ch;}

    & input[name="out-port"]{
        width: 5ch;
        font-size: large;
        background-color: transparent;
        border: none;
        color: var(--neutral-100);
        border-bottom: 2px solid var(--neutral-500);
    }

    & .mdi-trash-can { 
        display: flex;
        justify-content: center;
        font-size: xx-large;
    }
}

#create-project{
    align-self: flex-end; 
    font-size: medium;
    font-weight: bold;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary);
    color: var(--neutral-100);
    align-self: flex-end;
}

#add-image {
    &.disabled {
        color: var(--neutral-400);
    }

    color: var(--primary);
    font-size: x-large;
    align-self: flex-end;
    margin-right: 15px;
}



