﻿: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: 100vh;
    width: 100vw;
    background-color: var(--cockpit-bg);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--cockpit-text);
    overflow: hidden;
}

/* 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;
}