
form {
    display: inline-block;
    min-width: 100%;
}

form > h3.deleteWarning {
    color: #ef2612;
}
.darkmode form > h3.deleteWarning {
    color: #c0392b;
}

form > div > div {
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: stretch;
    position: relative;
    border-radius: 7px;
    transition: 0.1s;
}

form > div > div:hover {
    background-color: rgba(0,0,0,0.03);
    transition: 0.1s;
}
.darkmode form > div > div:hover {
    background-color: rgba(255,255,255,0.02);
    transition: 0.1s;
}
#version_child_filter:hover > div {
    background-color: transparent;
}

form > div > div:hover label {
    text-shadow: 0.01em 0 rgba(0,0,0,0.9);
    transition: 0.1s;
}
.darkmode form > div > div:hover label {
    text-shadow: 0.01em 0 rgba(255,255,255,0.9);
    transition: 0.1s;
}

form > div > div > *:nth-child(1) {
    margin-right: 20px;
    transition: 0.1s;
    white-space: nowrap;
}

form > div > div > label[class='required']:before {
    content: '*';
    font-weight: bold;
    color: rgba(255,50,0,0.8);
    position: absolute;
    left: -8px;
}

form > div > div > *:nth-child(2) {
    border: 3px solid rgba(0,0,0,0.1);
    background-color: rgba(255,255,255,0.3);
}
.darkmode form > div > div > *:nth-child(2) {
    border: 3px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.3);
}

form > div > div > select {
    background-color: rgb(250,250,250) !important;
}
.darkmode form > div > div > select {
    background-color: rgb(13,13,13) !important;
}



/* specific case(s) */
form[name="user_self_edit"] {
    min-width: 30rem;
}

form[name="reset_password_request_form"] > div > *:nth-child(1) {
    margin-right: 20px;
}
form[name="reset_password_request_form"] > div > *:nth-child(2) {
     border: 3px solid rgba(0,0,0,0.1);
     background-color: white;
}
.darkmode form[name="reset_password_request_form"] > div > *:nth-child(2) {
     border: 3px solid rgba(0,0,0,0.1);
     background-color: rgba(255,255,255,0.3);
}
.darkmode form[name="reset_password_request_form"] > div > *:nth-child(2) {
     border: 3px solid rgba(255,255,255,0.1);
     background-color: rgba(0,0,0,0.3);
}
/* end of specific case(s) */


form input,textarea,select {
    border-radius: 5px;
    color: inherit;
    font-family: inherit;
    outline: none;
    padding: 5px;
    border-width: 3px;
    border-style: solid;
}
.darkmode form input,textarea,select {
    background-color: rgba(0,0,0,0.35);
}


/* dropdown style */
/* first resets the select style */
form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url('../img/dropdown/arrow.png') no-repeat right;
    cursor: pointer;
    padding-right: 2em;
}

form select::-ms-expand {
    display: none;
}
/* self-reminder : don't try to style select other than background color, it's just impossible atm */





form textarea {
    width: 25em;
    min-height: 6em;
    resize: vertical;
}

form input[type=date] {
    width: 8em;
}


form input:hover,textarea:hover,select:hover {
    /* yeah i know light and dark mode colors here are the same, it's normal */
    border-color: rgba(0,0,0,0.2) !important;
}
.darkmode form input:hover,textarea:hover,select:hover {
    border-color: rgba(0,0,0,0.2) !important;
}
form input:invalid,textarea:invalid,select:invalid {
    border-color: rgba(255,50,0,0.7) !important;
}
/* What's just above NEEDS to stay above what's just below, this prioritizes :focus over :hover */
form input:focus,textarea:focus,select:focus {
    border-color: #16a085 !important;
}


form input[type=checkbox] {
    -webkit-appearance: none;
    -moz-appearance: none;
    content: '';
    display: inline-block;
    width: 2.1em;
    height: 2.1em;
    background-color: #1B7943;
    border-radius: 5px;
    cursor: pointer;
}

form input[type=radio] {
    -webkit-appearance: none;
    -moz-appearance: none;
    content: '';
    display: inline-block;
    width: 2.1em;
    height: 2.1em;
    background-color: #1B7943;
    border-radius: 50%;
    cursor: pointer;
}

form input[type=checkbox]:checked + label:before {
    content: '';
    background-color: #7b519d;
}

form input[type=checkbox]:focus {
    border-color: rgba(0,0,0,0.1) !important;
}
.darkmode form input[type=checkbox]:focus {
    border-color: rgba(255,255,255,0.1) !important;
}

form input[type=checkbox]:hover {
    border-color: rgba(0,0,0,0.2) !important;
}
.darkmode form input[type=checkbox]:hover {
    border-color: rgba(255,255,255,0.2) !important;
}

form input[type=checkbox]:checked {
    background-color: #16a085;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,1);
    border: 3px solid #DADADA !important;
}
.darkmode form input[type=checkbox]:checked {
    background-color: #16a085;
    box-shadow: inset 0 0 0 3px rgba(0,0,0,1);
    border: 3px solid #282828 !important;
}

form input[type="file"] {
    border-style: dashed !important;
    border-width: 5px !important;
    padding: 2em;
    box-sizing: border-box;
}

form input[type="file"]:hover {
    cursor: pointer;
}
.darkmode form input[type="file"]:hover {
    border-color: rgba(255,255,255,0.2) !important;
}






/* colorpickers */
.colorpicker_custom {
    display: flex;
    justify-content: space-between;
}

.colorpicker_custom input[type='color'] {
    height: 4em;
    width: 4em;
    background-color: transparent;
    border-radius: 50%;
    padding: 0;
    margin: 5px;
    border: none;
    cursor: pointer;
}

.colorpicker_custom input[type='text'] {
    width: 8em;
}







.form_inline_buttons form {
    display: inline-flex;
    align-items: center;
}

.form_inline_buttons .form_button_container {
    margin-left: 1em;
}








@media (max-width: 899px) {
    form > div > div {
        padding: 15px 5px;
        align-items: normal;
        flex-direction: column;
    }
    form > div > div > label[class="required"]::before {
        left: -3px;
    }
    form > div > div > *:nth-child(1) {
        white-space: break-spaces;
    }
    form textarea {
        width: auto;
        min-height: 12em;
    }
    form[name='changelog_findviaticket'] {
        flex-wrap: wrap;
    }
    form[name='changelog_findviaticket'] div {
        width: 99%;
        margin: 0;
    }
    form > div > div:hover, .darkmode form > div > div:hover {
        background-color: transparent;
    }
    form input[type="file"] {
        padding: 2em 1em;
    }
}








