#openTerminalBtn {
    height: 40px;             /* 80% av footern */
    width: 40px;              /* behåll proportioner */
    background: url('/static/svg/terminal.svg') no-repeat center center;
    background-size: contain;
	margin-left: 10px;
    border: none;
    cursor: pointer;
}

#openTerminalBtn.inactive {
    opacity: 0;           /* gör knappen osynlig */
    pointer-events: none; /* gör den oklickbar */
}



/* =========================================================
   TERMINAL
   ========================================================= */

.terminal-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    font-family: monospace;
    background: transparent;
}


/* =========================================================
   TERMINALFÖNSTER
   ========================================================= */

.terminal-window {
    width: 640px;
    max-width: 96vw;

    background: #000;

    border: 1px solid #333;
    border-radius: 10px;

    overflow: hidden;
}


/* =========================================================
   TITELRAD
   ========================================================= */

.terminal-titlebar {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 8px 12px;

    background: #1f1f1f;
}


.terminal-dot {
    width: 12px;
    height: 12px;

    border-radius: 50%;
}


.terminal-dot-red {
    background: #ff5f56;
}


.terminal-dot-yellow {
    background: #ffbd2e;
}


.terminal-dot-green {
    background: #27c93f;
}


.terminal-title {
    flex: 1;

    margin-left: 10px;
    margin-right: 50px;

    color: #aaa;

    font-size: 12px;

    text-align: center;
}


/* =========================================================
   TERMINALSKÄRM
   ========================================================= */

.terminal-screen {
    height: 380px;

    overflow-y: auto;

    padding: 12px 14px;

    color: #fff;

    font-size: 15px;
    line-height: 1.5;

    cursor: text;
}


.terminal-line {
    white-space: pre-wrap;
    word-break: break-word;
}


.terminal-line-result {
    color: #fff;
}


.terminal-line-error {
    color: #f87171;
}


.terminal-line-info {
    color: #9ca3af;
}


/* =========================================================
   INPUT
   ========================================================= */

.terminal-input-line {
    display: flex;
    align-items: center;
}


.terminal-prompt {
    margin-right: 8px;

    white-space: pre;

    color: #fff;
}


.terminal-input {
    flex: 1;

    background: transparent;

    border: none;
    outline: none;

    color: #fff;

    font-family: monospace;
    font-size: 15px;
    line-height: 1.5;

    caret-color: #fff;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.terminal-screen::-webkit-scrollbar {
    width: 8px;
}


.terminal-screen::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}





/* =========================================================
   GRAPH-MODAL
   ========================================================= */

.modalGraph {
    position: fixed;

    top: 50%;
    left: 50px;

    width: 800px;
    height: 500px;

    transform: translateY(-50%);

    z-index: 1000;

    display: none;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border: 1px solid #333;
    border-radius: 10px;
}

.modalGraph.open {
    display: block;
}


.modal-content-graph {
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border: 0;

    background: white;
}


.modal-content-graph iframe {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    overflow: hidden;
    

}