/* IMPORT FONTS */

@import url('https://fonts.googleapis.com/css2?family=Besley:ital,wght@0,400..800;1,400..800&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


/* VARIBLES */

:root {
    --font: 'Inter', sans-serif;
    --altFont: 'Besley', serif;
    --iconFont: 'Font Awesome 6 Free';
    --fontSize: 16px;
    --font-size-mobile: 14px;
    --lightColor: #4d7581;
    --midColor: #415c63;
    --darkColor: #2b383b;
    --borderRadius: 10px;
    --blue: #1b47ef;
    --gray: #666;
    --green: #0c734b;
    --orange: #cd6000;
    --purple: #801bef;
    --red: #b94444;
}


/* GENERAL TEMPLATE */ 

* {
    outline: 0;
}

html {
    background: #1a1f23 url(/images/body_bkg.png) top center repeat;
    background-attachment: fixed;
    height: 100%;
}

body {
	color: #000;
    font-family: var(--font);
    font-size: var(--fontSize);
    height: 100%;
    line-height: 1.8;
    margin: 0;
    text-align: center;
    
    &:has(dialog[open]) {
        overflow: hidden
    }
}

#header {
    margin-bottom: 10px;
    padding: 20px 0;
    text-align: center;
    
    #logo {
        margin: 0 auto 50px 0;

        img {
            max-width: 100%;
            width: 300px;
        }
    }
}

nav#menu {
    background: var(--darkColor);
    border-radius: 5px;
    display: flex;
    font-family: var(--altFont);
    font-size: 18px;
    line-height: 1.1em;
    margin: 0 auto;
    width: fit-content;
    
    a {
        border-radius: 5px;
        color: #fff;
        font-weight: 600;
        padding: 15px 25px;
        text-decoration: none;
        
        &:before {
            content: attr(data-icon);
            font-family: var(--iconFont);
            margin-right: 10px;
        }
        
        &:hover {
            background: var(--midColor);
        }
        
        &:active {
            box-shadow: inset 0 0 10px 0 rgb(0 0 0 / 40%);
        }
    }
}

header#title {
    color: var(--darkColor);
    font-family: var(--altFont);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2em;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0px 1px 0 #fff;
    
    a {
        color: var(--darkColor);
        font-weight: 800;
    }
}

#main {
    margin: 0 auto;
    max-width: 1300px;
    padding: 0 10px;
}

h1,
h2 {
    color: var(--midColor);
    font-family: var(--altFont);
    font-weight: 700;
    line-height: 1.2em;
    margin: 0;
}

h1 {
    font-size: 21px;
    padding: 15px 0;
}

h2 {
    font-size: 18px;
    padding: 20px 0 10px 0;
}

img {
    border: 0;
}

footer {
    font-family: var(--altFont);
    font-size: 14px;
    font-weight: 600;
    padding: 30px 0;
    text-align: center;
    text-shadow: 0 1px 0 #fff;
}

#toTop {
    background: var(--midColor);
    border-radius: 10px 0 0 0;
    bottom: 0;
    box-shadow: 0 0 10px rgb(113 136 143 / 60%);
    color: #fff;
    cursor: pointer;
    font-size: 30px;
    font-weight: 600;
    line-height: 60px;
    position: fixed;
    right: 0;
    text-align: center;
    width: 60px;
    
    &:before {
        content: "\f062";
        font-family: var(--iconFont);
    }
    
    &:hover {
        background: var(--darkColor);
    }
    
    &:active {
        box-shadow: inset 0 0 10px 0 rgb(0 0 0 / 40%);
    }
}


/* PAGE WIDTH OVERRIDES */

body#page-login #main,
body#page-mfa #main,
body#page-forgot #main,
body#page-account #main {
    max-width: 500px;
}

body#page-dashboard #main {
    max-width: 800px;
}








.page {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgb(119 119 119 / 25%); 
    margin: 20px 0;
    padding: 40px;
    text-align: left;
}

hr {
    background: transparent;
    border: 0;
    border-bottom: 3px solid #d6e2e5;
    clear: both;
    height: 0;
    margin: 20px 0;
    padding: 0;
}

p {
    margin: 0;
    padding: 8px 0;
}

::selection {
    background: rgb(185 205 210);
}

.error {
    background: #c70606;
    border-radius: var(--borderRadius);
    color: #fff;
    font-size: 15px;
    line-height: 1.5em;
    margin: 15px 0;
    padding: 15px 20px;
    text-align: left;
}


/* DASHBOARD */

.audit {
    background: #d7e0e2;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin: 15px 0;
    row-gap: 10px;
    padding: 20px 30px;
    
    &>div.audit-title {
        font-family: var(--altFont);
        font-size: 18px;
        font-weight: 700;
        line-height: 1.4;
    }
    
    &>div.audit-period,
    &>div.audit-questions,
    &>div.audit-date,
    &>div.audit-due {
        font-size: 15px;
        font-weight: 500;
        
        &:before {
            font-family: var(--iconFont);
            font-weight: 600;
            display: inline-block;
            text-align: center;
            width: 20px;
            margin-right: 4px;
        }
        
        strong {
            margin-left: 5px;
        }
    }
    
    &>div.audit-period:before {
        content: "\f073";
    }
    
    &>div.audit-questions:before {
        content: "\f0cb";
    }
    
    &>div.audit-date:before {
        content: "\f064";
    }
    
    &>div.audit-due {
        color: #c32c2c;

        &:before {
            content: "\f017";
        }
    }
}


/* TEXT STYLES */

a {
    color: #000fe1;
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
    
    &:hover {
        text-decoration: none;
    }
    
    &:active {
        color: #cb0094;
    }
}

.bold {
    font-weight: 700;
}

.blue {
    color: var(--blue);
}

.gray {
    color: var(--gray);
}

.green {
    color: var(--green);
}

.orange {
    color: var(--orange);
}

.purple {
    color: var(--purple);
}

.red {
    color: var(--red);
}


/* AUDIT */

#auditPeriod,
#auditDue {
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    line-height: 1.1em;
    margin: 0 auto 5px auto;
    padding: 7px 15px;
    width: fit-content;
    
    span {
        font-weight: 600;
        margin-left: 3px;
    }
    
    &:before {
        font-family: var(--iconFont);
        font-weight: 600;
        margin-right: 8px;
    }
}

#auditPeriod {
    background: #2c4dc3;
    
    &:before {
        content: "\f073";
    }    
}

#auditDue {
    background: #c32c2c;
    
    &:before {
        content: "\f017";
    }    
}

#auditInfo {
    background: rgb(255 255 255 / 70%);
    border-radius: 10px;
    font-weight: 500;
    margin: 15px 0;
    padding: 25px;
    text-align: left;
}


#auditCategories {
    background: rgb(223 235 237 / 70%);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    font-family: var(--altFont);
    font-weight: 500;
    gap: 7px 20px;
    margin: 15px 0;
    padding: 15px 20px;
    text-align: left;
    
    span {
        color: var(--darkColor);
        cursor: pointer;
        text-decoration: underline;
        font-weight: 700;
        
        &:hover {
            text-decoration: none;
        }
        
        &:active {
            color: black;
        }
    }
}

#auditActions {
    display: flex;
    font-size: 15px;
    gap: 10px;
    justify-content: flex-end;
    line-height: 1.1em;
    padding: 40px 0 0 0;
    
    a {
        background: var(--midColor);
        border-radius: 5px;
        box-shadow: 0 0 10px rgb(113 136 143 / 60%);
        color: #fff;
        font-family: var(--altFont);
        font-weight: 600;
        padding: 15px 20px;
        text-decoration: none;
        
        &:before {
            content: attr(data-icon);
            font-family: var(--iconFont);
            margin-right: 10px;
        }
        
        &:hover {
            background: var(--lightColor);
        }
        
        &:active {
            box-shadow: inset 0 0 10px 0 rgb(0 0 0 / 40%);
        }
        
        &.on {
            color: #ffe24b;
        }
    }
}

.auditCategory {
    .auditCategoryTitle {
        color: var(--darkColor);
        cursor: pointer;
        font-weight: 800;
        padding: 10px 0 0 10px;
        text-align: left;
        
        &:before {
            color: var(--midColor);
            content: '\f078';
            font-family: var(--iconFont);
            margin-right: 15px;
        }
    }
    
    &.collapsed {
        .auditCategoryTitle:before {
            content: '\f077';
        }
        
        .page {
            padding: 13px 40px 11px 40px;
            
            &:after {
                color: var(--lightColor);
                content: '\f141';
                font-family: var(--iconFont);
                font-size: 20px;
                font-weight: 700;
            }
        
            .question {
                display: none;
            }
        }
    }
}

.question {
    column-gap: 40px;
    display: flex;
    padding-bottom: 30px;
    
    &+.question {
        border-top: 5px solid var(--midColor);
        padding-top: 30px;
    }
    
    &>div:first-child {
        background: var(--midColor);
        border-radius: 5px;
        color: #fff;
        flex: 0 0 85px;
        font-family: var(--altFont);
        font-feature-settings: 'tnum';
        font-size: 19px;
        font-weight: 600;
        letter-spacing: .6px;
        line-height: 1;
        padding-top: 20px;
        text-align: center;
    }
    
    &>div:last-child {
        flex: 1;
        line-height: 1.7;
        padding: 0;
    }
    
    ol,
    ul {
        margin: 10px 0;
    }
       
    .responseHeading:before,
    .resultHeading:before {
        content: "\f064";
        font-family: var(--iconFont);
        font-weight: 700;
        margin-right: 10px;
    }
    
    .responseHeading {
        border-top: 3px dashed #d6e2e5;
        margin-top: 30px;
        padding-top: 30px;

        &:before {
            content: "\f064";
        }
    }
    
    .resultHeading:before {
        content: "\f4ad";
    }

    blockquote {
        background: #eaeff1;
        border-left: 5px solid #d6e2e5;
        border-radius: 5px;
        margin: 0 0 15px 0;
        padding: 20px 30px;
        
        .questionResultStatus {
            font-family: var(--altFont);
            font-weight: 700;
        }
        
        &.blueResult {
            border-left-color: var(--blue);
            
            .questionResultStatus {
                color: var(--blue);
            }
        }
        
        &.grayResult {
            border-left-color: var(--gray);
            
            .questionResultStatus {
                color: var(--gray);
            }
        }
        
        &.greenResult {
            border-left-color: var(--green);
            
            .questionResultStatus {
                color: var(--green);
            }
        }
        
        &.orangeResult {
            border-left-color: var(--orange);
            
            .questionResultStatus {
                color: var(--orange);
            }
        }
        
        &.purpleResult {
            border-left-color: var(--purple);
            
            .questionResultStatus {
                color: var(--purple);
            }
        }
        
        &.redResult {
            border-left-color: var(--red);
            
            .questionResultStatus {
                color: var(--red);
            }
        }
                
        p {
            margin: 0;
            padding: 0;
            
            &+p {
                margin-top: 3px;
            }
        }
        
        hr {
            margin: 10px 0;
        }
    }
    
    .questionStatus {
        font-weight: 700;
        line-height: 1.4em;
        margin: 35px 0 0 auto;
        text-align: center;
        
        &.questionStatus0,
        &.questionStatus1 {
            color: #c32c2c;
            
            &:before {
                content: "\f06a";
            }
        }
        
        &.questionStatus2 {
            color: #005f3a;
            
            &:before {
                content: "\f058";
            }
        }
        
        &:before {
            font-family: var(--iconFont);
            font-size: 22px;
            margin-right: 5px;
            vertical-align: bottom;
        }
    }

    #responseInput {
        margin-top: 15px;
    }
    
    #responseUpload {
        margin: 30px 0 10px 0;
        
        label {
            color: var(--midColor);
            cursor: pointer;
            font-family: var(--altFont);
            font-weight: 700;
            text-decoration: underline;
            
            &:hover {
                text-decoration: none;
            }
        }
    }
    
    #responseUploads {
        font-feature-settings: 'tnum';
        font-size: 15px;
        
        &>div {
            margin: 3px 0;
            
            a {
                font-weight: 600;
            }
        
            .delete {
                color: var(--red);
                cursor: pointer;
                font-family: var(--altFont);
                font-size: 13px;
                font-weight: 600;
                margin-left: 15px;
                
                &:before {
                    content: "\f2ed";
                    font-family: var(--iconFont);
                    margin-right: 2px;
                }
            }
            
            &:before {
                content: "\f15b";
                font-family: var(--iconFont);
                margin: 0 6px 0 0;
            }
        }
    }
    
    #responseSelect {
        margin-top: 50px;
    }
}


/* FORM FIELDS */

select, 
input[type=text], 
input[type=password] {
    background: #f8f8f8;
    border-color: #888;
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
    box-shadow: 2px 2px 2px inset #ddd;
    box-sizing: border-box;
    color: #222;
    font-family: var(--font);
    font-size: var(--fontSize);
    font-weight: 500;
    max-width: 100%;
    padding: 10px;
    width: 100%;
    
    &:focus 
    {
        background: #fff;
        border-color: #3e6af3;
        color: #000;
    }
}

select {
    cursor: pointer;
}

input[type=file] {
    display: none;
}


/* FORM LAYOUT */

.field {
    padding: 15px 0;
    
    div:first-child {
        color: var(--darkColor);
        font-weight: 700;
        line-height: 1;
        margin-bottom: 7px;
        text-align: left;
    }
}


/* BUTTONS */

.btn-area {
    margin: 50px 0;
    text-align: center;
}

.btn {
    background: var(--midColor);
    border: 0 solid rgb(45 67 73);
    border-radius: 3px;
    box-shadow: 0 0 10px rgb(113 136 143 / 6);
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: var(--altFont);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .5px;
    line-height: 1;
    padding: 15px 35px;
    text-decoration: none;
    text-shadow: 0 2px 1px rgb(24 45 51 / 40%);
    
    &:hover {
        background: var(--lightColor);
        color: #eee;
    }
    
    &:active {
        background: rgb(45 67 73);
        box-shadow: inset 0 0 10px 0 rgb(0 0 0 / 40%);
    }
    
    &+.btn {
        margin-left: 10px;
    }
    
    i { 
        margin-right: 7px;
    }
}


/* DIALOG */

#dialog {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 0 20px rgb(0 0 0 / 50%);
    outline: 0;
    padding: 30px;
    text-align: left;

    header {
        color: var(--darkColor);
        font-family: var(--altFont);
        font-size: 19px;
        font-weight: 700;
        margin-bottom: 20px;
    }
    
    ul {
        margin: 0;
        padding-left: 20px;
    }
    
    i {
        color: var(--midColor);
        margin-right: 15px;
    }
    
    .dialogBtns {
        margin-top: 40px;
        text-align: right;
        
        button {
            background: var(--midColor);
            border: 0;
            border-radius: 5px;
            color: #fff;
            cursor: pointer;
            display: inline-block;
            font-family: var(--altFont);
            font-size: 16px;
            font-weight: 600;
            line-height: 1em;
            outline: 0;
            padding: 10px 15px;
        
            &:hover {
                background: var(--lightColor);
            }
            
            &:active {
                box-shadow: inset 0 0 10px 0 rgb(0 0 0 / 40%);
            }
            
            &+button {
                margin-left: 15px;
            }
        }
    }

    &::backdrop {
        backdrop-filter: blur(5px);
        background:rgb(100 100 100 / 30%);
    }
}


/* STATUS MESSAGES */

#page-updated, 
#page-error {
    border-radius: 15px;
    box-shadow: 0 0 20px rgb(0 0 0 / 50%);
    color: #fff;
    font-family: var(--altFont);
    font-size: 18px;
    font-weight: 500;
    left: 0;
    line-height: 1;
    margin: 0 auto;
    padding: 25px 35px;
    position: fixed;
    right: 0;
    text-align: center;
    top: 20px;
    width: fit-content;
    z-index: 9;
}

#page-updated {
    background: #005f3a;
}

#page-error {
    background: #c32c2c;
}