/* normal.css */


:root {

    --col_info: #101010;
    --col_info_bg: #638ad3;

    --col_warn: black;
    --col_warn_bg: #efefa3;

    --col_err: white;
    --col_err_bg: red;
}


body {
    font-family: sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #2a3d60;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='30px' width='90px' fill-opacity='0.03'><text x='0' y='20' fill='white' font-size='22'>101010</text></svg>");

}

div.top {
    color: white;
    display: flex;
    flex-grow: 0;
    background: #04a96c;
    font-size: large;
    padding: 10px;
}

a.top
{
    color: white;
}

div.fuss {
    display: flex;
    bottom: 0;
    font-size: medium;
    padding: 5px 10px;
    background: #04a96c;
    color: white;
}

#panAppLogin {
    flex: 1;
    /*background: #00aa66;*/

    display: flex;
    justify-content: center;  /* horizontal */
    align-items: center;      /* vertikal */
}

#panLogin {
    color: white;
    width: 40vw;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #04a96c;
    border: 2px solid #555;   /* Rahmen */
    border-radius: 12px;      /* abgerundete Ecken */
}

#panLogin label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 80%;
}
#panLogin input {
    width: 100%;
    margin-top: 4px;
    box-sizing: border-box;
}


#panTestUser
{
    margin-top:10px;
    flex-wrap:wrap;
    gap:6px;
    justify-content:center;
    display: none
}


#panApp {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel {
    /*border-top: 1px solid #ccc;*/
    padding: 10px 5px;
    /*box-sizing: border-box;*/
}

#panUsers {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #00aa66;
    padding: 6px 10px;
    font-weight: bold;
    color: white;
}

#panChat {
    /*flex: 0 0 auto;*/
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#panChatRow {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
}

#chatLeft {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

#tfMessage {
    width: 50vw;
    flex: 1 1 50%;
    padding: 4px;
    resize: vertical;
    min-height: 2.4em;
}

#btSendMessage {
    height: 2.4em;
}

#listChat {
    flex: 1;
    height: 76px;
    background: white;
    border: 1px solid #e0c9a3;
    padding: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    overflow-y: auto;
    white-space: pre-wrap;
}


#panVideo {
    flex: 0 0 auto;
    display: flex;
    background: #2c3f61;
}

video {
    width: 25vw;
    aspect-ratio: 4/3;
    background: #101010;
    border-color: #00aa66;
    border-style: solid;
    border-width: 1px;
    box-sizing: border-box;      /* entscheidend! */
}



#panLogAndButtons {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: hidden;
}



#panLabels {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-around;
    background: #00aa66;
    /*gap: 10px;*/
    color: white;
    /*margin-left: 6px;*/
    /*margin-right: 6px;*/
}


.fields
{
    /*align-content: center;*/
    /*flex: 1;*/
    /*background: #00aa66;*/
}


#chatButtons {
    padding-top: 5px;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}


.icon {
    width: 38px;
    height: 38px;
    padding: 4px;
    align-items: center;
    justify-content: center;
}

#panLogAndButtons {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: hidden;
    /*padding: 6px;*/
}


#panLog {
    flex: 1 1 auto;
    overflow-y: auto; /* nur der Log-Inhalt scrollt */
    background: #2e5635;
    font-family: monospace;
    white-space: pre-wrap;
    color: #d0ffd0;
    padding: 4px;
}

#buttonRow {
    flex: 0 0 auto; /* feste Höhe, bleibt sichtbar */
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 6px;
    background: #1a1a1a;
    border-top: 1px solid #444;
}


button {
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 8px;
    border-color: #638ad3;
}

.loginFields {
    /*border-radius: 2px;*/
    /*border-color: #638ad3;*/
}




button.toggle-on {
    background-color: orange;
    color: white; /* optional */
}

.spacer {
    flex: 1;
}

/* --------------- DIALOG ---------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
}

.modal[hidden] {
    display: none;
}

.modal-box {
    min-width: 280px;
    max-width: 90vw;
    background: #f9f9f9;
    border: 1px solid #bbb;
    border-radius: 6px;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: #222;
}

.modal-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #111;
}

.modal-text {
    margin-bottom: 12px;
    color: #333;
}

.modal-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modal-buttons button {
    padding: 8px 12px;
    background: #e8e8e8;
    color: #111;
    border: 1px solid #999;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.modal-buttons button:hover {
    background: #d5d5d5;
}
