﻿:root {
    --color-primary: #0d6efd;
    --color-primary-light: #e7f1ff;
    --color-bg-dark: #1a1a2e;
    --color-bg-sidebar: #16213e;
    --color-bg-header: #0f3460;
    --color-text-light: #e0e0e0;
    --color-accent: #00b4d8;
    --color-border: #2a2a4a;
    --color-success: #2ecc71;
    --color-warning: #f39c12;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--color-bg-dark); /* statt black */
    color: var(--color-text-light); /* statt white */
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#header {
    display: grid;
    grid-template-areas:
        "logo title"
        "logo dropdown";
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-bg-header), var(--color-bg-sidebar));
    border-bottom: 1px solid var(--color-border);
}

#logo {
    grid-area: logo;
    color: white;
}

#title {
    grid-area: title;
    text-align: center;
}

#dropdown {
    grid-area: dropdown;
    text-align: center;
    margin-top: 0.5rem;
}

#lblTitle {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#container {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

/* Linke Seite: Navigation mit Baum */
#sidebar {
    width: 3500px;
    min-width: 150px;
    max-width: 400px;
    border-right: 1px solid var(--color-border); /* statt 2px solid #ccc */
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-sidebar); /* statt black */
    color: white;
}

    #sidebar h3 {
        text-align: center;
        background: linear-gradient(135deg, var(--color-bg-header), var(--color-bg-sidebar));
        margin: 0;
        padding: 8px 10px;
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        border-bottom: 1px solid var(--color-border);
        display: flex;
        align-items: center;
        justify-content: center;
    }


#treeview {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

[aria-describedby="treeGrid_Name"] {
    display: flex;
}

span.cell-wrapperleaf {
    width: 290px;
}

.tree-cell-wrapper {
    position: relative;
    width: 100%;
    min-height: 1.5em;
}

.tree-cell-text {
    display: inline-block;
    padding-right: 40px; /* Platz für Icons reservieren */
    white-space: nowrap;
}

.tree-cell-icons {
    flex: 1;
    position: absolute;
    right: 4px;
    top: 2px;
    display: flex;
    gap: 6px; /* Abstand zwischen den Icons */
    align-items: center;
}

    .tree-cell-icons i {
        font-size: 14px;
        cursor: default;
    }

.fa-book {
    color: darkgreen;
}

.ui-icon-triangle-1-e {
    background-position-x: -16px !important;
    background-position-y: -128px !important;
}

/* Mittlerer Bereich */
#content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px;
    position: relative;
}

#toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #444;
}

button {
    background-color: #666;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

    button:hover {
        background-color: #888;
    }

#pdfSelector {
    width: 400px;
}


#pdfViewerObject {
    width: 100%;
    height: 100%;
}


.pdfCanvas {
    display: block;
    margin-bottom: 10px;
    height: 100%;
}

#pdfViewer {
    width: 100%;
    height: calc(100vh - 120px); /* Platz für Toolbar */
    overflow-y: auto; /* Scrollbalken aktivieren */
    background-color: white;
    display: flex;
    flex-direction: column; /* Stellt sicher, dass die Seiten untereinander erscheinen */
    justify-content: center;
    align-items: center;
}




/* Splitter */
#splitter {
    width: 5px;
    cursor: col-resize;
    background: var(--color-border); /* statt #aaa */
}

#lnkLizenz, #spanZugangsbestimmungen {
    font-size: xx-small;
    margin-left: auto;
    white-space: nowrap
}

td.DokumenteVorhanden span {
    color: green;
    font-weight: bold;
}

td.DokumenteTeilweiseVorhanden span {
    color: orange;
    font-weight: bold;
}

#lblDescription {
    text-align: left;
    margin-left: 10px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    opacity: 0.85;
    margin-bottom: 0;
}
#linkSelector {
    background-color: var(--color-bg-sidebar);
    color: var(--color-text-light);
    border-color: var(--color-border);
}
