:root {
    --header-bg: #ddf;
    --header-hight: 50px;

    --header-text-color: #black;
    --main-bg: #222;
    --button-normal-bg: #d4af37;
    --button-inactive-bg: #aaaaaa;
    --button-hover-bg: #c92;
    --button-pressed-bg: #b81;

    --sidebar-bg: white;
    --sidebar-text-color: black;
    --tab-color: black;
    --tab-border: #333333;
    --tab-unslected-bg: #aaaaaa;
    --tab-unslected-text: #444;

    --ti-red: #c1272d;
    --ti-blue: #005eb8;
    --ti-yellow: #fbc02d;
    --ti-green: #007a33;
    --ti-purple: #7e57c2;
    --ti-black: #222222;
    --ti-white: #e0e0e0;
    --ti-orange: #f57c00;
    --ti-pink: #d81b60;
    --ti-brown: #795548;    
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color); /* Modern browsers support accent-color */
    cursor: pointer;
    margin-right: 8px;
}

input[type="number"] {
    width: 30px; /* or whatever width feels good */
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333333;
}

input[type="number"]:focus {
    border-color: #66afe9;
    outline: none;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
}

select {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    padding: 6px 10px;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
    border-radius: 6px;
    appearance: none; /* Removes weird native arrows (can style later if needed) */
}

select:hover {
    border-color: #888888;
}

select:focus {
    outline: none;
    border-color: var(--primary-color, #4CAF50);
    box-shadow: 0 0 5px rgba(0, 128, 0, 0.2);
}

html body {
    margin: 0;
    border: 0;
    padding: 0;
    height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    /*min-height: 100vh;
    max-height: 100vh;*/
    min-width: 100vw;
    max-width: 100%;
    font-family: 'Orbitron', sans-serif;
    background: var(--main-bg);
    overflow: hidden;
}


/*
* Main layout
*/
#header {
    height: var(--header-hight);
    margin: 0px;
    padding: 0 20px;
    border-bottom: 1px solid #dddddd;
    background: var(--header-bg);
    align-items: center;
}

#main {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    min-height: calc(100vh - var(--header-hight));
    max-height: calc(100vh - var(--header-hight));
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

#sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text-color);
    border-right: 1px solid #dddddd;
    z-index: 10;
 }

 @media (max-width: 767px) {
    #sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

 @media (min-width: 768px) {
    #sidebar {
        width: 350px;
        min-width: 350px;
        max-width: 350px;
    }
}

#content { 
    position: relative;
    vertical-align: top;
    width: 100%;
}

.error_holder {
    position: relative
}

#error_message {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: #e79595;
    color: black;
    padding: 10px;
    margin: 10px 0;
    min-width: 300px;
    font-family: sans-serif;
    font-size: 16px;
    z-index: 1000;
    display: none; /* Hidden by default */
}

.serverDown {
    display: flex;
    height: 100%;
    align-items: center;
    font-size: 20px;
    justify-content: center;
    background: white;
    color: black;
}