/* STYLES FOR COCKPIT */
:root {
    --cockpit-black: #0a0a0f;
    --cockpit-darkgray: #1e1e1e;
    --cockpit-gray: #333333;
    --cockpit-white: #ffffff;
    --cockpit-accent: #29474d;
    --cockpit-border: #3c3c3c;
    --cockpit-text: #d4d4d4;
    --cockpit-icon: #cccccc;
    --left-width: 200px;
    --right-width: 200px;
    --bottom-height: 200px;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100vw;
    background-color: var(--cockpit-darkgray);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--cockpit-text);
    overflow: hidden;
}





/* FONTS (Google Material and Font Awesome) */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    src: url('/fonts/googlematerial/MaterialSymbolsOutlined.ttf') format('truetype');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    src: url('/fonts/fontawesome/fa-solid-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/fontawesome/fa-regular-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/fontawesome/fa-brands-400.woff2') format('woff2');
}

.icon-google {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.fa,
.fa-solid {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.fa-regular {
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
}

.fa-brands {
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
}

.fa,
.fa-solid,
.fa-regular,
.fa-brands {
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}





/* STYLES FOR ICON BUTTONS (Using Font Awesome) */
.cockpit-icon-button {
    all: unset;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    transition: color 0.2s ease;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    .cockpit-icon-button:hover:enabled {
        color: #ccc;
    }

    .cockpit-icon-button:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }





/* STYLES FOR ICON + TEXT BUTTONS (Using Font Awesome) */
.cockpit-icon-text-button {
    all: unset;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    color: white;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .cockpit-icon-text-button::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-style: normal;
        content: attr(data-icon);
        font-size: 1rem;
        padding: 0px 5px;
        line-height: 1;
    }

    .cockpit-icon-text-button:hover:enabled {
        color: #ccc;
    }

    .cockpit-icon-text-button:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }





/* STYLES FOR INPUT */
input.input-field,
input.input-field:focus,
input.input-field:active {
    all: unset;
    background-color: var(--cockpit-gray);
    color: var(--cockpit-text);
    border: 1px solid var(--cockpit-border);
    padding: 10px;
    margin: 5px;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    width: 80%;
}

    input.input-field:focus {
        border-color: var(--cockpit-accent);
    }





/* STYLES FOR BLAZOR UNHANDLED ERROR */

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }





/* STYLES FOR APP LOADING PROGRESS */

.loading-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2937;
}

.loading-content {
    width: min(90vw, 320px);
    text-align: center;
}

.loading-logo-text {
    margin: 0 auto 1rem auto;
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
}

.loading-bar {
    width: 100%;
    height: 6px;
    overflow: hidden;
    background: #e5e7eb;
}

.loading-bar-fill {
    height: 100%;
    width: var(--blazor-load-percentage, 0%);
    background: #374151;
    transition: width 120ms ease-out;
}

.loading-text {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
}

    .loading-text::after {
        content: var(--blazor-load-percentage-text, "0%");
    }

.loading-text-message {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
}

/* BLAZOR STANDARD LOADING PROGRESS INDICATOR
.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }
*/