
* {
    font-family: tahoma, helvetica, arial;
    text-align: left;
}

body {
    padding: 15px 50px 30px;
    background-color: #FAFAFA !important;
    display: flex;
    flex-direction: column;
}

h1 {
    margin-bottom: 0px !important;
}

.content {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0;
}


.login_form .button,
.add_a_task .button,
.add_subtask {
    margin: auto;
    background: #3AA6B9;
    color: white;
    border: none;
    padding: 8px 13px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    margin: 25px auto 0;
}

.login_form .button:hover,
.add_a_task .button:hover,
.add_subtask:hover {
    background: #64CCC5 !important;
    color: white;
    text-decoration: none;
}

/******************************************/
/*               LOGIN                  */
/******************************************/

.login_form {
    background: white;
    padding: 20px 30px 40px;
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
    margin: 50px auto;
}

.login_form,
.login_form form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login_form p {
    margin: 20px 0 0;
}

.login_form input[type=text],
.login_form input[type=password] {
    display: block;
    padding: 7px;
    width: 200px;
    margin: 4px 0;
}

/**************************/
/*          ALERT         */
/**************************/

.alert-primary {
    background: #cbe5f1 !important;
    color: #4E4E4E !important;
    border: none !important;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.alert-primary a,
.alert-primary a:hover {
    color: #1f6279 !important;
    font-weight: bold;
}

.hide_message {
    position: absolute;
    color: white;
    right: 20px;
}

/**************************/
/*           MENU         */
/**************************/

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.menu {
    background: white;
    border-radius: 20px;
    padding: 0 10px;
    display: inline-block;
    margin: auto;
}

.menu li {
    float: left;
}

.menu a {
    display: block;
    text-align: center;
    padding: 10px 25px 10px 0;
    text-decoration: none;
    color: #4E4E4E;
}

.menu i {
    margin: 0 10px;
}

.menu a:hover, .dark_mode-label:hover {
    color: #64CCC5 !important;
    text-decoration: none;
}


/*******************************/
/*      Table list design      */
/*******************************/

table.task_list {
    width: 100%;
}

.task_list a {
    color: black;
}

.task_list a:hover {
    color: #64CCC5 !important;
    text-decoration: none;
}

.toptask td,
.subtask td {
    padding: 9px 0;
    font-size: 17px;
}

.toptask td,
.subtask td {
    font-size: 1em;
}


/************* STATUS TAG *************/

.task_state {
    width: 100px;
}

.task_state p {
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 0;
}

.task_state p[data-status="Ongoing"] {
    background: #64CCC5;
}

.task_state p[data-status="Waiting"] {
    background: #176B87;
}

/*********** FIRSTNAME TAG *************/

.task_assignee {
    padding: 4px 5px;
    margin: 0 5px;
    border-radius: 3px;
    background: #F1F1F1;
    color: #909090;
    font-size: 15px;
}


/****** EDIT, ARCHIVE ETC. BUTTONS ******/

.task {
    text-align: right;
    width: 165px;
}

.all_tasks .task {
    width: 205px;
}

.task a {
    padding: 10px;
    font-size: 18px;
    color: black;
}


/******************************************/
/*       MY TASKS + MY ACTIVE TASKS      */
/******************************************/

.my_tasks {
    background: white;
    padding: 2px 13px;
    border-radius: 5px;
    margin: 50px 0;
}

.my_tasks tr:not(:last-child) {
    border-bottom: 1px solid #F2F2F2;
}


/******************************************/
/*             WHO IS ON WHAT ?           */
/******************************************/

.who_is_on_what {
    margin-bottom: 50px;
}

.who_is_on_what .toptask,
.all_tasks .subtask {
    background: white;
    border-bottom: 1px solid #FAFAFA;
}

.who_is_on_what .task_state,
.all_tasks .task_state {
    padding: 0 7px;
}

.user_task {
    border-bottom: 1px solid #FAFAFA;
}

.user_task td {
    padding: 40px 0 5px;

}

/******************************************/
/*                 ALL TASKS              */
/******************************************/

.all_tasks .toptask .project_name,
.all_tasks .toptask .last_status {
    font-weight: bold;
}


.all_tasks .toptask td {
    padding-top: 40px;
    padding-bottom: 8px;
}

/******************************************/
/*             LATEST STATUSES            */
/******************************************/

.status_list {
    margin: 50px 0;
}


/**********************************************/
/*       ADD A TASK / EDIT A TASK FORM        */
/**********************************************/


/**** TITLE *****/
.add_a_task_title {
    display: block;
    padding: 40px 0 20px;
    border-radius: 10px 10px 0 0;
    background: white;
    margin: auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}


.add_a_task_title span {
    text-align: center;
}

.add_subtask {
    margin: 20px auto 0;
}

/***** Form Content *****/

.add_a_task {
    padding: 0 50px 40px;
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: column;
}

.add_a_task {
    background: white;
    margin: auto;
    max-width: 600px;
}

th {
    width: 200px;
    padding: 5px 0;
}

.add_a_task textarea,
.add_a_task input,
.add_a_task select {
    border: 1px solid #B5B5B5;
    border-radius: 3px;
    padding: 5px 8px;
}

.add_a_task textarea,
.add_a_task input[type=url],
.add_a_task input[type=text],
.add_a_task select {
    width: 100%;
}

.add_a_task input[type=checkbox] {
    width: 17px;
    height: 17px;
}


/***** MORE INFO ****/

.more_info {
    max-width: 600px;
    margin: 30px auto;
}

.more_info .subtasks {
    color: #3AA6B9;
    font-weight: bold;
    line-height: 2;
}

.status {
    line-height: 2;
}


/***** ARCHIVE LIST  ****/

.paginator {
    display: inline-block;
    padding-left: 5px;
    margin: 20px 0;
    border-radius: 4px;
}

.paginator > li {
    display: inline;
}

.paginator > li > a {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #337ab7;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}

.paginator > li > a.current-page {
    z-index: 3;
    color: #fff;
    cursor: default;
    background-color: #337ab7;
    border-color: #337ab7;
}

.dark_mode-label {
    display: block;
    margin: auto;
    padding-bottom: 0;
    color: #4E4E4E;
}

/***** DARK MODE  ****/
/***** ALWAYS LAST CSS  ****/

body.dark-mode {
    background-color: #041C32 !important;
}


.dark-mode {
    .dark_mode-label {
        color: white;
    }

    .menu {
        background: #064663;
    }

    .menu a {
        color: white;
    }

    .add_a_task, .add_a_task_title {
        background: #064663;
    }

    .add_a_task label {
        color: white;
    }

    .more_info {
        color: white;
    }

    .subtask {
        background: #064663;
    }
    
    .user_task,
    .who_is_on_what .toptask, 
    .all_tasks .subtask{
        border-bottom: 1px solid #041C32;
    }
    

    & h1, .h1 {
        color: white;
    }

    .my_tasks {
        background: #064663;
    }

    .task_list, .task_list a {
        color: white;
    }
    
    .who_is_on_what .toptask{
        background: #064663;
    }


    .task a {
        color: white;
    }

    .last_status {
        color: white;
    }

    .dark_mode-label {
        color: white;
    }

    .task_assignee {
        padding: 4px 5px;
        margin: 0 5px;
        border-radius: 3px;
        background: #909090;
        color: #F1F1F1;
        font-size: 15px;
    }

    .my_tasks tr:not(:last-child) {
    border-bottom: 1px solid #041c32;
}
}


.switch[type="checkbox"] {
    outline: 0;
    user-select: none;
    position: absolute;
    opacity: 0;

    + label {
        display: inline-flex;
        position: relative;
        padding-left: 62px;
        user-select: none;
        cursor: pointer;

        &::before,
        &::after {
            content: '';
            position: absolute;
            display: block;
            background: #064663;

        }

        &::before {
            top: 0;
            left: 0;
            width: 52px;
            height: 25px;
            border-radius: 12px;
            background: linear-gradient(to right, #91e5ef 0, #0c5170 100%);
        }

        &::after {
            top: 3px;
            left: 3px;
            width: 20px;
            height: 20px;
            border-radius: 12px;
            background: #0a4772;
            transition: all .15s ease-out;
        }
    }

    &:checked {

        + label {

            &::after {
                left: 29px;
            }
        }
    }
}



