﻿: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-bg);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--cockpit-text);
    overflow: hidden;
}

/* Icons */
/* Google Material Symbols */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    src: url('/fonts/google/MaterialSymbolsOutlined.ttf') format('truetype');
}

.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';
}

/* Icon button only */
.icon-google-button {
    all: unset;
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
    transition: color 0.2s ease;
}

    .icon-google-button:hover:enabled {
        color: #ccc;
    }

    .icon-google-button:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

/* Icon buttons with Text */
.icon-google-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;
}

    .icon-google-text-button::before {
        font-family: 'Material Symbols Outlined';
        font-weight: normal;
        font-style: normal;
        content: attr(data-icon);
        font-size: 1rem;
        line-height: 1;
        padding-right: 0.35rem;
        text-transform: none;
        letter-spacing: normal;
        white-space: nowrap;
        direction: ltr;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .icon-google-text-button:hover:enabled {
        color: #ccc;
    }

    .icon-google-text-button:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

/* Font Awesome Icons */
.icon-fa-button {
    all: unset;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    transition: color 0.2s ease;
    line-height: 1;
}

    .icon-fa-button:hover:enabled {
        color: #ccc;
    }

    .icon-fa-button:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .icon-fa-button > i {
        display: inline-block;
        line-height: 1;
    }

.icon-fa-text-button {
    all: unset;
    display: inline-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;
}

    .icon-fa-text-button:hover:enabled {
        color: #ccc;
    }

    .icon-fa-text-button:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .icon-fa-text-button > i {
        font-size: 1rem;
        line-height: 1;
    }




/* Whenever you need to use the icons font, set the text class to 'fa' */
.fa {
    font-family: "Font Awesome 6 Free", "FontAwesome", sans-serif;
    font-weight: 900;
}

/* COCKPIT ICON BUTTONS - Using FontAwesome 6.7 */
.cockpit-icon-button {
    all: unset;
    font-family: "Font Awesome 6 Free", "FontAwesome", sans-serif;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    transition: color 0.2s ease;
}

.cockpit-icon-button:hover:enabled {
    color: #ccc;
}

.cockpit-icon-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Icon buttons with Text */
.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", "FontAwesome", sans-serif;
    content: attr(data-icon);
    font-size: 1rem;
    padding: 0px 5px;
}

.cockpit-icon-text-button:hover:enabled {
    color: #ccc;
}

.cockpit-icon-text-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


/* FORMS 
 KFE: Apperently, in Blazor, if you add styling for <InputText> outside of the app.css
 it doesn't work so I had to put it in here
*/
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);
}

/* Welcome component, making the markdown file look more like Github's */
.markdown-body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 50px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: var(--cockpit-text);
}

/* GitHub-style headings */
.markdown-body h1 {
    font-size: 2em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.3em;
}

.markdown-body h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.2em;
}

.markdown-body code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}

.markdown-body pre {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
}

.attribute-file-input {
    display: none;
}

.app-shell {
    height: 100%; /* melhor que 100vh no mobile */
    display: flex;
    flex-direction: column;
    min-height: 0; /* CRÍTICO */
}

/* seu header global pode ter a altura que quiser */
.app-header {
    flex: 0 0 auto;
}

/* a área disponível abaixo do header */
.app-main {
    flex: 1 1 auto;
    min-height: 0; /* CRÍTICO */
    display: flex;
}

/* host do viewer ocupa só o espaço disponível */
.viewer-host {
    flex: 1 1 auto;
    min-height: 0; /* CRÍTICO */
    min-width: 0; /* CRÍTICO */
    display: flex;
}


input[type="color"] {
    -webkit-appearance: none;
    border: none;
}

    input[type="color"]::-webkit-color-swatch-wrapper {
        padding: 0;
    }

    input[type="color"]::-webkit-color-swatch {
        border: none;
    }