﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&display=swap');

:root {
    --clr-deep-fleet-blue: #2B3236;
    --clr-skywave-blue: #58A5CC;
    --clr-stormy-sea-blue: #3B6F95;
    --clr-steel-ship-gray: #454D52;
    --clr-mist-gray-18: rgba(255, 255, 255, .18);
    --clr-shady-lady-gray: #AFADAE;
    /*--clr-ocean-surge-teal: #73B6A2;*/
    --clr-text-gray: #333;
    --clr-white: #FFFFFF;
    --clr-black: #000000;
    --clr-info: #5DC7EC;
    --clr-success: #408558;
    --clr-warning: #F6C344;
    --clr-danger: #AC3A3F;
    --clr-disabled: #949494;
    --clr-gold: #FDAA2F;
    /*    Fonts*/
    --ff-roboto-regular: 'Roboto', sans-serif;
    /*    Font Weights*/
    --fw-thin: 100;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;
    --fw-bolder: 900;
    /*    Font Sizes*/
    --fs-small: 12px;
    --fs-regular: 19px;
    /*    Responsive Font*/
    --current-device-width: 100vw;
    --ideal-viewport-width: 1920;
    --ideal-font-size: 19;
    --fs-responsive: calc(var(--ideal-font-size) * var(--current-device-width) / var(--ideal-viewport-width));
    /*    add font sizes as need*/
}

@media (min-width: 1921px) {
    :root {
        --fs-responsive: 19px;
    }
}

@media (max-width: 991px){
    :root {
        --fs-responsive: 16px;
    }
}

html, body {
    height: 100%;
    line-height: 1.5;
    font-family: var(--ff-roboto-regular);
    font-size: var(--fs-responsive);
    font-weight: var(--fw-regular);
}

html {
    box-sizing: border-box;
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--ff-roboto);
    background-color: var(--clr-deep-fleet-blue);
    color: var(--clr-white);
    -webkit-font-smoothing: antialiased; /* Improves font rendering in WebKit browsers */
    -moz-osx-font-smoothing: grayscale; /* Improves font rendering in Firefox on macOS */
}

/* Style the scrollbar track */
::-webkit-scrollbar {
    width: 7px; /* Width of the scrollbar */
    height: 7px; /* Height of the horizontal scrollbar*/
}

/* Style the scrollbar thumb */
::-webkit-scrollbar-thumb {
    background-color: var(--clr-shady-lady-gray); /* Color of the scrollbar thumb */
    border-radius: 20px; /* Round edges of the thumb */
    background-clip: content-box;
}

/* Style the scrollbar track background */
::-webkit-scrollbar-track {
    background-color: transparent; /* Color of the track */
}

/* To get rid of white box in corner*/
::-webkit-scrollbar-corner {
    background-color: transparent;
}

/* Change the browser autofill to desired color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--clr-deep-fleet-blue) inset;
    -webkit-text-fill-color: var(--clr-white);
    font-size: var(--fs-responsive);
}

*, *::before, *::after {
    box-sizing: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    margin: 0;
    font-weight: 400;
    font-size: var(--fs-responsive);
}

h1 {
    font-weight: var(--fw-bold);
    outline: none;
}

a {
    text-decoration: none;
    color: var(--clr-white);
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    margin-bottom: 1rem;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    text-align: inherit;
    appearance: none;
    font: inherit;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: var(--fs-responsive);
}

[hidden] {
    display: none;
}

.validation-message {
    color: var(--clr-danger);
    font-size: .9rem;
}

/* Forms */
textarea,
select,
input:not([type="checkbox"]):not([type="file"]):not([type="range"]) {
    border: 1px solid var(--clr-skywave-blue);
    height: 40px;
    color: var(--clr-white);
    background-color: var(--clr-deep-fleet-blue);
    padding: 0 10px;
    appearance: none;
    font-size: var(--fs-responsive);
    width: 100%;
}

    textarea.error,
    select.error,
    input:not([type="checkbox"]):not([type="file"]):not([type="range"]).error {
        border: 1px solid red;
    }


select {
    background: url('Images/Icons/FixedArrow.svg') 99% no-repeat !important;
    background-color: var(--clr-deep-fleet-blue) !important;
    padding-right: 2rem;
}



    textarea:disabled,
    select:disabled,
    input:not([type="checkbox"]):not([type="file"]):disabled {
        color: var(--clr-disabled);
    }

textarea {
    height: fit-content;
    min-height: 150px
}

input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

select:focus, input:focus {
    outline: none;
}

.input-group > label {
    display: block;
    font-weight: var(--fw-bold);
}

.input-group .validation-message {
    margin-top: 0.25rem;
}

.color-active {
    color: var(--clr-text-success);
}

.color-inactive {
    color: var(--clr-danger);
}

/* BUTTONS */
button {
    cursor: pointer;
    border: 2px solid var(--clr-skywave-blue);
    background: var(--clr-stormy-sea-blue);
    color: var(--clr-white);
    padding: 0 1rem;
    height: 40px;
    text-align: center;
    transition: background-color 0.3s ease;
}

    button:hover {
        border: solid 1.5px #2F5F77;
        transform: scale(1.03);
    }

button-delete {
    background: var(--clr-danger);
    color: var(--clr-white);
}

button-disabled {
    background: var(--clr-steel-ship-gray);
    color: var(--clr-white);
}

.btn-stretch {
    width: 100%;
}

/*Browser Specific*/
::-ms-reveal,
::-ms-clear {
    display: none;
}

/* RADIO BUTTONS */
.radio-group {
}

    .radio-group input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 25px;
        height: 25px;
        border: 2px solid var(--clr-white);
        border-radius: 50%;
        outline: none;
        cursor: pointer;
        margin-right: .5rem;
        position: relative;
    }

        .radio-group input[type="radio"]:checked {
            border-color: var(--clr-white);
        }

            .radio-group input[type="radio"]:checked::before {
                content: '';
                display: block;
                width: 60%;
                height: 60%;
                background-color: var(--clr-white);
                border-radius: 50%;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

.custom-radio label {
    cursor: pointer;
}

/* CHECKBOX */
input[type="checkbox"]:checked {
    background: var(--clr-deep-fleet-blue);
    color: var(--clr-white);
}

input[type="checkbox"] {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: 0;
    background: var(--clr-deep-fleet-blue);
    height: 19px;
    width: 19px;
    border: 1px solid var(--clr-white);
    color: var(--clr-white);
}

    input[type="checkbox"]:after {
        content: ' ';
        position: relative;
        left: 30%;
        width: 40%;
        height: 75%;
        border: solid var(--clr-white);
        border-width: 0 2px 2px 0;
        transform: rotate(40deg);
        display: none;
    }

    input[type="checkbox"]:checked:after {
        display: block;
    }

.desktop-content-wrapper {
    padding: 3rem;
}

/* EDIT SIDEBAR */
.sidebar-input-group {
    width: 150px;
    margin: 0 auto;
    margin-bottom: 25px;
}

    .sidebar-input-group p {
        font-size: var(--fs-responsive);
    }

.edit-sidebar h1 {
    font-weight: var(--fw-medium);
    padding-top: .4em;
}

.sidebar-toggle-group {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    gap: 20px;
    width: 150px;
    height: 30px;
    height: fit-content;
    margin: 10px auto 1em auto;
    text-overflow: ellipsis;
}


/* TABLES */
.standard-table {
    border-collapse: collapse;
    margin: 2rem 0;
    width: 100%;
    overflow: auto;
}

    .standard-table thead {
        color: var(--clr-white);
        border-bottom: 1px solid var(--clr-white);
    }

        .standard-table thead th {
            font-weight: var(--fw-bold);
            cursor: pointer;
        }

        .standard-table thead tr {
            text-align: left;
        }

    .standard-table th,
    .standard-table td,
    .standard-table tbody tr {
        background: none;
        border-bottom: 1px solid var(--clr-white);
    }

        .standard-table tbody tr:hover {
            background-color: var(--clr-mist-gray-18);
        }

        .standard-table tbody tr td button {
            visibility: hidden;
        }

        .standard-table tbody tr:hover td button {
            visibility: visible;
        }

/*Tooltips*/
.tooltip,
.tooltip-dashboard {
    background-color: var(--clr-steel-ship-gray);
    padding: .5rem;
    font-size: 11px;
    font-weight: 400;
    display: block;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    -webkit-transform: translateY(10px);
    -moz-transform: translateY(10px);
    -ms-transform: translateY(10px);
    -o-transform: translateY(10px);
    transform: translateY(10px);
    -webkit-transition: all .25s ease-out;
    -moz-transition: all .25s ease-out;
    -o-transition: all .25s ease-out;
    transition: all .25s ease-out;
    -webkit-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
    -moz-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
}

    .tooltip:before,
    .tooltip-dashboard:before {
        content: " ";
        display: block;
        position: absolute;
    }

    .tooltip:after,
    .tooltip-dashboard:after {
        border-left: solid transparent 8px;
        border-right: solid transparent 8px;
        border-top: solid var(--clr-steel-ship-gray) 8px;
        bottom: -8px;
        content: " ";
        height: 0;
        position: absolute;
        width: 0;
        left: 50%;                           /* center arrow */
        transform: translateX(-50%);         /* shift half its own width */
    }

/* for Blazored/Toast */
.blazored-toast-info {
    border: none !important;
    border-left: 7px solid var(--clr-info) !important;
}

.blazored-toast-success {
    border: none !important;
    border-left: 7px solid var(--clr-success) !important;
}

.blazored-toast-warning {
    border: none !important;
    border-left: 7px solid var(--clr-warning) !important;
}

.blazored-toast-error {
    border: none !important;
    border-left: 7px solid var(--clr-danger) !important;
}

.blazored-toast {
    width: 20rem !important;
    border-radius: 0 !important;
    color: var(--clr-white) !important;
    vertical-align: middle;
    background-color: #343B3E !important;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28) !important;
}

.blazored-toast-close {
    height: 1.5rem;
    color: var(--clr-white) !important;
}

.blazored-toast-progressbar {
    visibility: hidden;
}

.material-icons {
    color: var(--clr-white);
    font-size: 1.5rem !important;
}
