/* styles.css */

/* Allgemeine Stile für den Hintergrund */
body {
    background-image: url('../img/Background-mainsite.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Fixierter Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* Über den meisten Inhalten */
}

/* Platzhalter für den Header, um den Inhalt darunter zu verschieben */
body {
    padding-top: 70px; /* Höhe des Headers ausgleichen */
}


/* Container für mittige Karten */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Füllt den verfügbaren Raum aus */
    padding: 10px;
}

/* Styling für Karten (z.B. Login, Registrierung) */
.card {
    width: 100%;
    max-width: 350px; /* Angemessene maximale Breite */
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.9); /* Leicht transparenter Hintergrund */
    overflow: hidden;
    margin: 5px;
    padding: 10px; /* Reduziertes Padding */
    max-height: none; /* Entfernung der festen Höhe */
}

/* Überschriften der Karten */
.card-header {
    font-size: 1.1rem; /* Reduzierte Schriftgröße */
    font-weight: bold;
    text-align: center;
    padding: 8px; /* Reduziertes Padding */
}

/* Schaltflächenstil */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: background-color 0.3s ease;
    font-size: 0.9rem; /* Kleinere Schriftgröße */
    padding: 8px; /* Reduziertes Padding */
}

/* Formularfeld Styling */
.form-control {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 6px; /* Reduziertes Padding */
    font-size: 0.9rem; /* Kleinere Schriftgröße */
    margin-bottom: 8px; /* Geringerer Abstand */
}

/* Fehler- und Erfolgsmeldungen */
.alert {
    border-radius: 5px;
    margin-top: 8px; /* Reduzierter Abstand */
}

/* Links */
a {
    text-decoration: none;
    color: #007bff;
    font-size: 0.9rem; /* Kleinere Schriftgröße */
}

a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Stil für den Footer */
footer {
    background-color: #343a40;
    color: #ddd;
    text-align: center;
    padding: 5px 10px;
    font-size: 0.8rem;
    position: sticky;
    bottom: 0;
    width: 100%;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .card {
        margin: 8px;
        max-width: 85%;
    }

    footer {
        padding: 3px 5px;
    }
}


/* User Tag */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 5px;
}

.tag {
    background-color: #e0e0e0;
    border-radius: 3px;
    padding: 5px;
    margin: 2px;
    display: flex;
    align-items: center;
}

.tag .remove-tag {
    margin-left: 5px;
    cursor: pointer;
    color: #ff0000;
    font-weight: bold;
}



/* Masonry-Layout */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
    opacity: 1; /* Direkt sichtbar */
    transform: none; /* Keine Bewegung */
    justify-content: flex-start;
}

.grid-item {
    background: #555151;
    padding: 10px;
    flex: 1 1 calc(20% - 20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    border: 1px solid #f0eaea;
    opacity: 1; /* Direkt sichtbar */
    transform: none; /* Keine Bewegung */
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-height: 40px;
}

.grid-item.show {
    opacity: 1;
    transform: translateY(0); /* Zielposition */
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.grid-item a {
    color: #ffffff; /* Linkfarbe */
    text-decoration: none; /* Unterstrich entfernen */
    word-wrap: break-word; /* Langer Text wird gebrochen */
    max-width: 80%; /* Maximale Breite, um Überlauf zu verhindern */
    overflow-wrap: break-word; /* Wortumbruch für sehr lange Links */
    font-size: 1rem; /* Lesbare Schriftgröße */
}

.grid-item a:hover {
    text-decoration: underline; /* Unterstrich beim Hover */
}

/* Animation */
.grid-item.show {
    animation: slideIn 0.5s forwards; /* Einfache Slide-In Animation */
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Style für den ShareBookmarksContainer, damit er sich besser positioniert */
#show-ShareBookmarksContainer {
    width: 70%; /* Die Breite reduzieren, damit Platz zum Offcanvas bleibt */
    margin-left: 5%; /* Positionierung nach links verschieben */
    transition: all 0.5s ease; /* Sanfte Animation für die Position */
}

/* Der eigentliche Container für die Bookmarks */
.bookmark-shares-content {
    display: flex;
    flex-wrap: wrap; /* Elemente brechen, wenn sie keinen Platz mehr haben */
    gap: 15px; /* Abstand zwischen den Elementen */
    justify-content: center; /* Optional: Kann auch 'flex-start' oder 'space-around' sein */
}

.info-icon {
    background-color: white; /* Hintergrund des Info-Icons */
    color: #616161; /* Textfarbe des Icons */
    border-radius: 50%; /* Runde Form für das Icon */
    padding: 3px 8px; /* Größe des Icons */
    margin-left: 10px; /* Abstand zum Text */
    font: normal normal bold 15px/1 Georgia, serif;
    cursor: pointer; /* Zeigt an, dass es klickbar ist */
}

#bookmark-search-form .input-group-text {
    border-color: transparent; /* Remove border color on focus */
}

/* Styling für die aktiven Filter */
.active-filters {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 19px;
    margin: -15px 0 0 0;
    padding: 0 6px;
    border: 2px solid rgba(61,57,57,1);
    border-top-width: 0;
    -webkit-border-radius: 0 0 7px 7px;
    border-radius: 0 0 7px 7px;
    font: normal 16px/1 "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    color: rgba(255,255,255,1);
    text-align: center;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    background: rgb(0,0,0);
}

/* Gemeinsame Stile für beide Karten-Typen */
.share-card, .share-card-colaboration {
    color: #fff;
    border: 1px solid #fff;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    height: 100%;
    width: 180px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.share-card {
    background-color: #6c757d;
}

.share-card-colaboration {
    background-color: #53A764;
}

.share-name {
    margin-top: 0;
    font-size: 1.0em;
}

.share-details {
    margin-top: 2px;
    font-size: 0.8em;
}

.icon-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-container a {
    color: #fff;
    font-size: 1.0em;
    text-decoration: none;
}

/* Hover-Effekt für alle Icons */
.icon-container a:hover,
.share-bookmarkUser-url:hover {
    color: #ced4da;
}

/* Spezifischer Stil, falls nötig */
.edit-icon.position-absolute {
    position: absolute;
}

/* Tostdesign für die shareinfo */
.custom-toast {
    position: relative;
    background-color: #343a40;
    color: #fff;
    border-radius: 0.5rem;
    max-width: 150px;
    margin-top: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.custom-toast .toast-header {
    background-color: #2c3136;
    color: #fff;
    border-bottom: 1px solid #454d55;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.custom-toast .toast-body {
    padding: 0.75rem;
}

.custom-toast .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}


/* Styles für den add-Share-Container */


.add-share-container {
    position: fixed; /* Fixiere den Container relativ zum Viewport */
    bottom:40px; /* Platziere ihn am unteren Bildschirmrand */
    left: 50%; /* Zentriere ihn horizontal */
    transform: translateX(-50%); /* Verschiebe ihn nach links um die Hälfte seiner Breite, um ihn wirklich zu zentrieren */
    margin: 0; /* Entferne die Margin, um Überlappungen zu verhindern */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #212529; /* Schwarzer Hintergrund */
    border-radius: 7px 7px 0 0; /* Abgerundete obere Ecken */
    padding: 1px 10px; /* Innenabstand */
    color: #fff; /* Weiße Schriftfarbe */
    max-width: 500px; /* Setze eine feste Breite nach Bedarf */
    width: 100%; /* Passe die Breite bis zur maximalen Breite an */
}

.add-share-container i {
    font-size: 15px; /* Größe des Icons */
    margin-right: 10px; /* Abstand rechts vom Icon */
}

.add-share-name {
    font-size: 15px; /* Schriftgröße des Share-Namens */
    font-weight: bold; /* Fettschrift */
    flex-grow: 1; /* Nimmt den verbleibenden Platz ein */
    text-align: center; /* Zentrierte Ausrichtung des Share-Namens */
}

.add-share-icon {
    font-size: 24px; /* Größe des Plus-Icons */
    cursor: pointer; /* Zeiger zeigt eine Aktion an */
    color: #fff;
    margin-left: 10px; /* Abstand links vom Icon */
}

.add-share-icon:hover {
    color: #ced4da; /* Helleres Grau beim Hover */
}

.fa-square-minus  {
    cursor: pointer; /* Zeiger zeigt eine Aktion an */
}

.fa-square-minus:hover {
    color: #ced4da; /* Helleres Grau beim Hover */
}

/* Styles für den add-User-Share-Offcans */

.offcanvas-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.offcanvas-header {
    background-color: #343a40;
    color: #fff;
}

.offcanvas-body {
    background-color: #2d3238;
    color: #ced4da;
    padding: 20px;
}

/* Benutzerkarten Styling */
#userList {
    margin-top: 20px;
}

.user-card {
    display: flex;
    align-items: center;
    background-color: #6c757d;
    border-radius: 20px;
    border-color: #ccc;
    border: 1px solid #ccc;
    padding: 3px;
    margin-bottom: 10px;
    color: #fff;
}

.user-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: auto;
}

.user-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-right: 10px;
}

/* Eingabefeld für Benutzername */
#userSearchInput {
    border-radius: 5px;
    padding: 10px;
    margin-right: 10px;
    font-size: 1rem;
    width: calc(65% - 50px);
    border: none;
}

#addUserBtn {
    font-size: 1.2rem;
    padding: 0 15px;
    background-color: #2d3238;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#addUserBtn:hover {
    background-color: #393e44;
}

/* Toast-Stil */
.bookmark-toast {
    width: 300px;
    padding: 15px;
    background-color: #333;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    opacity: 0;
}

.visible-container.bookmark-toast {
    transform: translateY(0);
    opacity: 1;
}

.hidden-container.bookmark-toast {
    opacity: 0;
}

.bookmark-toast-content h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.bookmark-toast-content p {
    margin: 5px 0 10px;
    font-size: 0.9rem;
}

.bookmark-toast-content a {
    color: #1e90ff;
    text-decoration: none;
    font-weight: bold;
}

.bookmark-toast-content a:hover {
    text-decoration: underline;
}

/* Modal Content with rounded corners and shadow */
.openshare-modal-content {
    border-radius: 10px;
    overflow: hidden; /* Damit der Inhalt innerhalb der abgerundeten Ecken bleibt */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Verstärkter Schattenwurf */
    background-color: #2c2c2c; /* Hintergrundfarbe des Modals */
}

/* Modal Header */
.openshare-modal-header {
    background-color: #2c2c2c;
    color: #ffffff;
    border-bottom: 1px solid #444;
    position: relative; /* Position für Schließen-Button */
    padding: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Modal Body */
.openshare-modal-body {
    background-color: #333;
    color: #e0e0e0;
    padding: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Modal Footer */
.openshare-modal-footer {
    background-color: #2c2c2c;
    border-top: 1px solid #444;
    padding: 15px;
}

/* Close Button */
.openshare-btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    filter: invert(1); /* This inverts the color for a dark background */
    cursor: pointer;
}

/* Input field for password */
.openshare-modal-body input {
    background-color: #444;
    border: 1px solid #555;
    color: #f8f9fa;
    border-radius: 5px; /* Abgerundete Ecken für das Input-Feld */
    padding: 10px;
}

.openshare-modal-body input::placeholder {
    color: #c0c0c0;
}

/* Button Styling */
.openshare-btn-primary {
    background-color: #555; /* Grauton für den Button */
    border-color: #555;
    border-radius: 5px;
    padding: 10px 20px;
    color: #ffffff;
}

.openshare-btn-primary:hover {
    background-color: #777; /* Hellerer Grauton beim Hover */
    border-color: #777;
}

/* Allgemeiner Stil für das usertag-Offcanvas */
.usertag-offcanvas {
    z-index: 1055;
    background-color: #343a40;
    color: #ffffff;
    width: 300px !important; /* Schmale Breite */
    max-width: 90% !important;
}

/* Stil für den Header des Offcanvas */
.usertag-offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Optional: leichte Trennlinie */
    padding: 1rem;
}

/* Stil für die Checkbox-Liste (Tags) */
.usertag-tags-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Abstand zwischen den Checkboxen */
}

/* Stil für die Checkboxen */
.usertag-tags-container .form-check-input {
    margin-right: 0.5rem; /* Abstand zwischen Checkbox und Text */
}

/* Stil für die Buttons untereinander */
.usertag-buttons {
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriere den Button-Container horizontal */
    gap: 0.5rem; /* Abstand zwischen den Buttons */
    margin-top: 1rem;
}

/* Buttons mit einer festen Breite und 50% Abstand von links */
.usertag-buttons .btn {
    width: 50%; /* Die Buttons nehmen 50% der Breite des Containers ein */
    margin-left: 50%; /* Abstand von links */
    transform: translateX(-50%); /* Zentriere die Buttons, um die linke Ausrichtung zu kompensieren */
}

/* Stil für den Spinner (Ladeanimation) */
.usertag-spinner {
    margin: 20px auto; /* Zentrierung des Spinners */
    display: block;
}

/* Optional: Hover-Effekt für die Buttons */
.usertag-buttons .btn:hover {
    background-color: #495057; /* Leichte Veränderung der Hintergrundfarbe beim Hover */
}

/* Stil für die Buchstabenüberschrift */
.tag-group-heading {
    display: flex;
    align-items: center;
    margin: 10px 0; /* Abstände nach oben und unten */
}

/* Stil für die Buchstaben (klein und fett) */
.group-letter {
    font-size: 1rem; /* kleinere Schriftgröße */
    font-weight: bold;
    color: #FFFFFF; /* Farbe passend zum Hintergrund */
    margin-right: 10px; /* Abstand zur Trennlinie */
}

/* Stil für die Trennlinie */
.group-separator {
    flex-grow: 1;
    height: 1px;
    background-color: #666666; /* Farbe der Linie */
}

.usertag-buttons-sticky {
    position: sticky;
    bottom: 0; /* Die Buttons bleiben am unteren Rand des Offcanvas */
    width: 100%; /* Die Buttons nehmen die gesamte Breite des Offcanvas ein */
    background-color: #2e2e2e; /* Hintergrundfarbe passend zum Offcanvas */
    padding: 15px 10px; /* Etwas Abstand für eine angenehme Klickbarkeit */
    border-top: 1px solid #666666; /* Optionaler Rand als Abgrenzung */
    display: flex;
    justify-content: space-around; /* Verteilt die Buttons gleichmäßig */
    z-index: 1000; /* Sicherstellen, dass sie immer sichtbar sind */
}

.usertag-buttons-sticky button {
    flex: 1;
    margin: 0 5px; /* Abstand zwischen den Buttons */
}



