/* Windows 95 Theme Styles */
:root {
    --win95-bg: #c0c0c0;
    --win95-border-raised: #dfdfdf #808080 #808080 #dfdfdf;
    --win95-border-lowered: #808080 #dfdfdf #dfdfdf #808080;
    --win95-blue: #000080;
    --win95-blue-light: #0080ff;
    --win95-font: 'MS Sans Serif', sans-serif;
    --win95-error: #ff0000;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #008080; /* Classic Windows 95 Teal */
    color: black;
    font-family: var(--win95-font);
    overflow: hidden;
    font-size: 11px;
}

#graph {
    width: 100%;
    height: 100%;
}

/* Controls */
#controls {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 200;
    display: flex;
    gap: 5px;
}

#backButton {
    background: var(--win95-bg);
    border: 2px solid;
    border-color: var(--win95-border-raised);
    color: black;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: normal;
    font-size: 11px;
    font-family: var(--win95-font);
    min-height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}

#backButton:hover {
    background: #d4d0c8;
}

#backButton:active {
    border-color: var(--win95-border-lowered);
    box-shadow: inset 1px 1px 0px rgba(0,0,0,0.5);
}

/* Windows 95 Error Message */
#errorMessage {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--win95-bg);
    border: 2px solid;
    border-color: var(--win95-border-raised);
    color: black;
    padding: 0;
    display: none;
    z-index: 300;
    max-width: 300px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-size: 11px;
    font-family: var(--win95-font);
}

#errorMessage .win95-titlebar {
    background: linear-gradient(90deg, var(--win95-error), #ff4444);
    color: white;
    padding: 2px 4px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 18px;
}

#errorMessage .win95-content {
    padding: 12px;
    background: var(--win95-bg);
    border: 1px solid;
    border-color: var(--win95-border-lowered);
    margin: 2px;
}

/* Windows 95 Loading Indicator */
#loadingIndicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--win95-bg);
    border: 2px solid;
    border-color: var(--win95-border-raised);
    padding: 0;
    z-index: 300;
    display: none;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-align: center;
    font-size: 11px;
    font-family: var(--win95-font);
    width: 250px;
}

#loadingIndicator .win95-titlebar {
    background: linear-gradient(90deg, var(--win95-blue), var(--win95-blue-light));
    color: white;
    padding: 2px 4px;
    font-weight: bold;
    height: 18px;
    display: flex;
    align-items: center;
}

#loadingIndicator .win95-content {
    padding: 16px;
    background: var(--win95-bg);
    border: 1px solid;
    border-color: var(--win95-border-lowered);
    margin: 2px;
}

/* Loading spinner */
.spinner {
    border: 2px solid #dfdfdf;
    border-top: 2px solid var(--win95-blue);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Windows 95 System Font Styling */
em {
    font-style: italic;
    color: #000080;
    font-size: inherit;
}

strong {
    font-weight: bold;
    font-size: inherit;
}

/* Windows 95 Focus Styles */
button:focus {
    outline: 1px dotted black;
    outline-offset: -3px;
}

body, #graph {
    cursor: url("media/Cursor.ico"), auto;
}
#graph {
    cursor: url("media/Cursor.ico"), auto;
}
#ascii-intro {
    cursor: url("media/Cursor.ico"), auto;
}

#connected-nodes-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    min-height: 54px;
    background: transparent !important; /* Keine Farbe, wirklich durchsichtig */
    border: none !important; /* Kein Rahmen */
    box-shadow: none !important; /* Kein Schatten */
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2000;
    padding: 7px 20px 7px 10px;
    overflow-x: auto;
   
}

    #connected-nodes-bar button {
        font-family: var(--win95-font, 'MS Sans Serif', Arial, sans-serif) !important;
        font-size: 14px !important;
        padding: 2px 24px 2px 24px !important;
        margin: 0 8px 0 0 !important;
        border-width: 2px !important;
        border-style: solid !important;
        border-top-color: #fff !important;
        border-left-color: #fff !important;
        border-bottom-color: #808080 !important;
        border-right-color: #808080 !important;
        border-radius: 0 !important;
        background: #ece9d8 !important;
        color: #000 !important;
        min-width: 72px !important;
        min-height: 28px !important;
        box-shadow: none !important;
        outline: none !important;
        font-weight: normal !important;
        display: inline-block !important;
        transition: none !important;
    }

        #connected-nodes-bar button:active {
            border-top-color: #808080 !important;
            border-left-color: #808080 !important;
            border-bottom-color: #fff !important;
            border-right-color: #fff !important;
            background: #d4d0c8 !important;
        }
        #connected-nodes-bar button:focus {
            outline: 1px dotted #000;
            outline-offset: -4px;
        }

@media (max-width: 600px) {
    #connected-nodes-bar button {
        font-size: 15px;
        min-width: 54px;
        padding: 4px 9px 3px 9px;
    }
}

