* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

html {
    width: 100vw;
    height: 100vh;
}

body {
    margin: 0px;
}


header {
    display: flex;
    align-items: center;
    padding: 20px;

    nav {
        display: flex;
        width: 100%;
        justify-content: space-between;

        #github-button {
            background-color: transparent;
            padding: 10px 20px;
            border: 2px solid black;
            color: black;
            font-size: 16px;
            border-radius: 20px;
            font-weight: bold;
        }
    }
}

.header-logo {
    display: flex;
    align-items: center;
    width: 200px;

}

main {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    align-items: center;
    align-content: center;

    .main-section {
        /* border: 1px solid red; */
        height: 80vh;
        box-sizing: border-box;
    }

    #left-section {
        flex: 1;
    }

    #right-section {
        flex: 1;
    }

    #center-section {
        flex: 2;
        align-items: center;
        align-content: center;
        justify-content: center;
        text-align: center;

        #createTeam {
            padding: 20px;
            font-size: 24px;
            background-color: rgb(245, 245, 245);
            width: 200px;
            margin: auto;
            cursor: pointer;
            border-radius: 20px;

            &:hover {
                border: 1px solid #dfdfdf;

            }
        }

    }
}

footer {
    padding: 10px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
    background-color: #ffffff;
}

#createTeamForm {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* border: 1px solid red; */
}

#teamName {
    padding: 10px;
    font-size: 16px;
    width: 300px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-radius: 10px;
    border: 1px solid #dfdfdf;
}


#addTeam {
    padding: 10px 20px;
    font-size: 16px;
    width: 300px;
    cursor: pointer;
    border-radius: 10px;
    background-color: #6b6bff;
    border: none;
    color: white;
    font-weight: bold;

    &:hover {
        background-color: #b587f8;
    }
}

#addTeamMemberForm {
    width: 100%;
    /* height: 100%; */
    display: flex;
    align-items: center;
    flex-direction: column;
    /* border: 1px solid red; */
}

.teamFormInput {
    padding: 10px;
    font-size: 16px;
    width: 300px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-radius: 10px;
    border: 1px solid #dfdfdf;
}

#skillInput {
    width: 100%;
}

.container {
    max-width: 100%;
    margin: auto;
    padding-bottom: 20px;
}

.skills-box {
    border: 2px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    cursor: text;
}

.skills-box:focus-within {
    border-color: #4f46e5;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: #4f46e5;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag span {
    cursor: pointer;
    font-weight: bold;
}

#skillInput {
    border: none;
    outline: none;
    flex: 1;
    min-width: 200px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.suggestions {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 180px;
    overflow-y: auto;
    display: none;
}

.suggestion {
    padding: 10px;
    cursor: pointer;
}

.suggestion:hover {
    background: #eef2ff;
}

.summary {
    margin-top: 20px;
    background: #eef2ff;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

div#AddedMemberTable {
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
    display: flex;
    flex-direction: column;
    margin-top: 50px;
    /* border: 1px dashed red; */

    thead>tr {
        background-color: #b587f8;
        color: white;
        border-collapse: collapse;

        th {
            padding: 10px;
            font-size: 12pt;
        }
    }

    tbody>tr {
        background-color: #f9f9f9;
        border-bottom: 1px solid #ddd;

        td {
            padding: 10px;
            font-size: 12pt;
        }
    }
}

#createTasks {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    width: 300px;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid #6b6bff;
    background-color: transparent;
    color: #6b6bff;
    font-weight: bold;
}

/* -------------------------------------CSS for Create Task------------------------------------ */

#addTasksForm {
    width: 100%;
    /* height: 100%; */
    display: flex;
    align-items: center;
    flex-direction: column;
    /* border: 1px solid red; */
}

.taskFormInput {
    padding: 10px;
    font-size: 16px;
    width: 300px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-radius: 10px;
    border: 2px solid #dfdfdf;

}

#skillInput {
    width: 100%;
}

.container {
    max-width: 100%;
    margin: auto;
    padding-bottom: 20px;
}

.skills-box {
    border: 2px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    cursor: text;
}

.skills-box:focus-within {
    border-color: #4f46e5;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: #4f46e5;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag span {
    cursor: pointer;
    font-weight: bold;
}

#skillInput {
    border: none;
    outline: none;
    flex: 1;
    min-width: 200px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.suggestions {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 180px;
    overflow-y: auto;
    display: none;
}

.suggestion {
    padding: 10px;
    cursor: pointer;
}

.suggestion:hover {
    background: #eef2ff;
}

.summary {
    margin-top: 20px;
    background: #eef2ff;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

div#AddedTaskTable {
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
    display: flex;
    flex-direction: column;
    margin-top: 50px;
    /* border: 1px dashed red; */

    thead>tr {
        background-color: #b587f8;
        color: white;
        border-collapse: collapse;

        th {
            padding: 10px;
            font-size: 12pt;
        }
    }

    tbody>tr {
        background-color: #f9f9f9;
        border-bottom: 1px solid #ddd;

        td {
            padding: 10px;
            font-size: 12pt;
        }
    }
}

#createTasks {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    width: 300px;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid #6b6bff;
    background-color: transparent;
    color: #6b6bff;
    font-weight: bold;
}

#addTask {
    padding: 10px 20px;
    font-size: 16px;
    width: 300px;
    cursor: pointer;
    border-radius: 10px;
    background-color: #6b6bff;
    border: none;
    color: white;
    font-weight: bold;

    &:hover {
        background-color: #b587f8;
    }
}

.PrioritySelection {
    width: 100%;

    #SetPrioritySelection {
        width: 100%;
        font-size: 12pt;
        padding: 10px;
        font-size: 16px;
        margin-bottom: 20px;
        border-radius: 10px;
        border: 2px solid #dfdfdf;
        background-color: white;

        &:focus {
            border: 2px solid #b587f8
        }

        &:after {
            border: 2px solid #b587f8
        }

    }

    #SetPrioritySelection:open {
        border: 1px solid #b587f8;
    }
}


#displayResult {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: 20px;

    #assignmentTable {
        width: 100%;
        border-collapse: collapse;

        thead>tr {
            background-color: #b587f8;
            color: white;
            border-collapse: collapse;

            th {
                padding: 10px;
                font-size: 12pt;
                border-bottom: 2px solid #ddd;
                padding: 10px;
                font-size: 12pt;
            }

            tbody>tr {
                border-collapse: collapse;

                td {
                    padding: 10px;
                    font-size: 12pt;
                    border-bottom: 1px solid #ddd;
                }
            }
        }
    }
}