/* --- Abstract_App: Stylesheet --- */
/* Bulma CSS Framework (CDN wird im HTML eingebunden) */

/* Eigenes CSS für Abstract_App */

/* Basis-Stile */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    margin-bottom: 1.5rem;
}
/* Alle Buttons mit runden Ecken (Bulma-Überschreibung) */
.button {
    border-radius: 8px !important;
}

/* Optional: Stärkere Rundung (z. B. 8px für mehr "Rundheit") */
.button.is-rounded {
    border-radius: 100px !important;
    
}

/* Eigene Button-Farben */
.button.custom-blue {
    background-color: #00293C !important; /* Blau */
    border-color: #00293C !important;
}

.button.custom-green {
    background-color: #1E656D !important; /* Grün */
    border-color: #1E656D !important;
}

.button.custom-red {
    background-color: #F62A00 !important; /* Rot */
    border-color: #F62A00 !important;
}

.button.custom-gray {
    background-color: #808080 !important; /* Grau */
    border-color: #696969 !important;
}

.button.custom-black {
    background-color: #000000 !important;
}

/* Hover-Effekte anpassen */
.button.custom-blue:hover {
    background-color: #00293C !important;
}

.button.custom-green:hover {
    background-color: #1E656D !important;
}

.button.custom-red:hover {
    background-color: #F62A00 !important;
}

.button.custom-black:hover {
    background-color: #c0392b !important;
}

/* Upload-Bereich Styling */
.upload-area {
    background-color: #f5f5f5; /* Hellgrau */
    border: 1px #4a4a4a; /* Dunkelgraue Umrandungslinie */
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s, border-color 0.3s;
}

.upload-area.drag-over {
    background-color: #e8e8e8; /* Etwas dunkleres Grau beim Drag-Over */
    border-color: #363636;
}

.upload-area .title {
    margin-bottom: 0.5rem;
}

.upload-area .subtitle {
    color: #7a7a7a;
}

/* Abstract-Inhalt */
.abstract .content.box {
    border: 2px solid #000000;
    border-radius: 4px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background-color: #f5f5f5;
}

.abstract .content h1,
.abstract .content h2,
.abstract .content h3,
.abstract .content h4 {
    margin: 1rem 0 0.5rem;
    line-height: 1.3;
}

.abstract .content h1 { font-size: 2.55rem; }
.abstract .content h2 { font-size: 1.15rem; }
.abstract .content h3 { font-size: 1.05rem; }
.abstract .content h4 { font-size: 1rem; }

.abstract .content p {
    margin: 0.6rem 0;
}

.abstract .content ul,
.abstract .content ol {
    margin: 0.6rem 0;
    padding-left: 1.4rem;
}

.abstract .content li {
    margin: 0.3rem 0;
}

.abstract .content strong {
    color: #0f172a;
    font-weight: 600;
}

.abstract .content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}




/* Abstract-Liste*/
.abstract-list {
    margin-top: 1.5rem;
}

.abstract-item {
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background-color: #f5f5f5;
}

.abstract-item h3 {
    margin-top: 0;
    color: #363636;
}

.abstract-item .content {
    margin: 0.75rem 0;
    white-space: pre-line;
}

.abstract-item .meta {
    font-size: 0.875rem;
    color: #7a7a7a;
}

/* Sichtbarkeits-Indikator */
.visibility-private {
    color: #7a7a7a;
}

.visibility-public {
    color: #007BFF;
}

/* Formulare */
.form-group {
    margin-bottom: 1rem;
}

/* Buttons */
.button {
    margin-right: 0.5rem;
}

/* Tabs für Login/Registrierung */
.tabs {
    margin-bottom: 1.5rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Upload-Formular */
#pdf_input, #url_input {
    margin-bottom: 1rem;
}

/* Dropzone für Drag & Drop */
.dropzone {
    border: 2px dashed #4a4a4a;
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.dropzone.drag-over {
    background-color: #e8e8e8;
    border-color: #363636;
}

.dropzone .icon {
    font-size: 3rem;
    color: #4a4a4a;
    margin-bottom: 1rem;
}

.dropzone .title {
    color: #363636;
    margin-bottom: 0.5rem;
}

.dropzone .subtitle {
    color: #7a7a7a;
}

/* Ergebnis-Darstellung */
.abstract {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* Dashboard */
.dashboard-actions {
    margin: 1.5rem 0;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header h1 {
        margin-bottom: 1.5rem;
    }
    
    
    .level-right {
        margin-top: 0.5rem;
    }
}

/* Anpassung für Mobile: Buttons unter der Überschrift, aber in einer Zeile */
@media screen and (max-width: 767px) {
    /* Titel und Buttons untereinander anordnen */
    .level {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* Titel soll volle Breite einnehmen */
    .level-left {
        width: 100% !important;
        margin-bottom: 0.5rem !important; /* Abstand zu den Buttons */
    }

    /* Buttons in einer Zeile halten */
    .level-right {
        width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important; /* Verhindert Umbruch der Buttons */
        gap: 0.5rem !important; /* Abstand zwischen den Buttons */
        overflow-x: auto !important; /* Falls nötig: horizontales Scrollen (kann entfernt werden, wenn genug Platz ist) */
    }

    /* Buttons nicht schrumpfen lassen */
    .level-right > div {
        flex-shrink: 0 !important;
    }

    /* Buttons kompakt halten, aber nicht zu klein */
    .level-right .button {
        min-width: auto !important;
    }
}






/* Abstract-Inhalt */
.abstract-item .content h1,
.abstract-item .content h2,
.abstract-item .content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #363636;
}

.abstract-item .content h3 {
    border-bottom: 1px solid #dbdbdb;
    padding-bottom: 0.5rem;
}

.abstract-item .content strong {
    color: #2c3e50;
    font-weight: 600;
}

.abstract-item .content em {
    font-style: italic;
    color: #4a4a4a;
}

.abstract-item .content p {
    margin-bottom: 0.75rem;
}

/* Box für Abstracts */
.abstract-item.box {
    margin-bottom: 1.5rem;
}



/* Up-Button am Fußende der Seite */
#up-button {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 100 !important; /* Damit der Button über anderen Elementen liegt */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5) !important; /* Leichtes Schatten für bessere Sichtbarkeit */
    /* Mindestbreite/höhe für Touch-Ziel 
    min-width: 48px !important;  
    min-height: 48px !important;  */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Up-Button-Icon anpassen */
#up-button .icon {
    margin: 0 !important;
}

/* Up-Button nur auf mobilen Geräten anzeigen (optional) */
@media screen and (min-width: 768px) {
    #up-button {
        display: none !important; /* Auf Desktop ausblenden */
    }
}



