/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    background-color: #fffdfa;
}

body {
    overflow-y: scroll;
}

body.preload .sidebar {
    transition: none !important;
    transform: translateX(-100%) !important;
}

body.preload .content {
    transition: none !important;
}
.ean_input {
    display: flex;
    align-items: center; /* vertikal zentriert */
    gap: 10px; /* optionaler Abstand zwischen Input und Dropdown */
}





.mermaid {
    text-align: center;
}

.mermaidTooltip {
  position: fixed;
  padding: 0.5rem 0.75rem;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  font-size: 0.9rem;
  white-space: pre-line;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.2s ease;
}




a {
    color: #6c757d !important;
    text-decoration: none !important;
}

a:hover {
    color: #FFA500 !important; /* Orange Farbe beim Hover */
    transition: color 0.3s ease; /* Sanfter Farbübergang */
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding-top: 8px;
    padding-bottom: 8px;
    color: #0000008C;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 52px;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle-btn {
    background-color: transparent; /* Standard: Kein Hintergrund */
    color: #363d47; /* Dunkle Schriftfarbe */
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 10px;
    height: 42px;
    width: 42px;
    display: flex;
    margin-left: 10px;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Macht den Button rund */
    transition: background-color 0.3s ease; /* Sanfte Animation */
}

.toggle-btn:hover {
    background-color: #f0f0f0; /* Hellgrauer Hintergrund bei Hover */
}


.website-name {
    font-weight: bold;
    font-size: 18px;
    color: #363d47;
    margin-left: 10px;
    line-height: 42px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User Info */
.user-info {
    position: relative;
    cursor: pointer;
}

#user-icon {
    font-size: 40px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0000008C;
    cursor: pointer;
    margin-right: 15px;
}

/* Dropdown */
.user-dropdown {
    position: absolute;
    top: 140%;
    right: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1100;
    width: 250px;
}

.user-dropdown a {
    padding: 10px 15px;
    text-decoration: none;
    color: black;
    display: block;
}

.user-dropdown a:hover {
    background-color: #f0f0f0;
}

.user-info.active .user-dropdown {
    display: flex;
}

/* Profile Information */
.user-profile {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f8f9fa;
}

.profile-icon {
    font-size: 36px;
    color: #343a40;
    margin-right: 10px;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: bold;
    color: #343a40;
}

.profile-email {
    font-size: 0.5em;
    color: #6c757d;
}

/* Main Container */
.main-container {
    display: flex;
    height: calc(100vh - 50px);
    /* Mmargin-top: 50px;*/
}

.sidebar {
    width: 250px;
    background-color: #f8f9fa;
    padding: 15px;
    overflow-y: hidden; /* Deaktiviert Scrollen für die Sidebar selbst */
    position: fixed;
    left: 0;
    top: 50px;
    height: calc(100vh - 50px); /* Höhe der Sidebar abzüglich Header */
    transition: transform 0.3s ease;
    z-index: 900;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex; /* Flexbox für vertikale Anordnung */
    flex-direction: column;
}


.sidebar.hidden {
    transform: translateX(-100%);
}

.content {
    flex-grow: 1;
    overflow-y: auto;
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

.content.full-width {
    margin-left: 0;
    width: 100%;
}

/* .ausmusterungs-content{
    margin-top: 20px;
} */

.documentation-text {
    text-decoration: none; /* Entfernt die Standard-Unterstreichung */
    color: #363d47; /* Standardfarbe */
    font-weight: normal; /* Falls nötig, anpassen */
    transition: color 0.3s ease; /* Sanfter Hover-Effekt */
}

.documentation-text:hover {
    color: #FFA500; /* Orange Farbe beim Hover */
}

.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15) !important;
}

#scrollToTop {
    position: fixed; /* Fixiert den Button über allen anderen Elementen */
    bottom: 20px; /* Abstand vom unteren Rand */
    right: 20px; /* Abstand vom rechten Rand */
    width: 50px; /* Breite des Buttons */
    height: 50px; /* Höhe des Buttons */
    background-color: #ffa500; /* Orange Hintergrundfarbe */
    color: white; /* Weißer Text */
    border: none; /* Keine Umrandung */
    border-radius: 50%; /* Rundes Design */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sanfter Schatten */
    font-size: 20px; /* Textgröße für den Pfeil */
    cursor: pointer; /* Zeigt den Cursor als Hand an */
    z-index: 9999; /* Sicherstellt, dass der Button über allem anderen liegt */
    display: none; /* Standardmäßig ausblenden */
    align-items: center; /* Zentriert den Text vertikal */
    justify-content: center; /* Zentriert den Text horizontal */
}

#scrollToTop:hover {
    background-color: #ff8c00; /* Dunkleres Orange beim Hover */
}

.hidden {
    display: none;
}

.btn-primary {
    background-color: #eb8c04 !important; /* Neue Hintergrundfarbe (Orange) */
    border-color: #eb8c04 !important; /* Randfarbe */
    color: white !important; /* Textfarbe */
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #FFA500 !important; /* Dunklere Farbe beim Hover */
    border-color: #FFA500 !important;
}

#formMessage {
    text-align: center; /* Nachricht zentrieren */
    margin-top: 20px; /* Abstand nach oben */
    font-weight: bold;
    color: red; /* Standardmäßig rot für Fehler */
}

#saveProfile {
    display: block; /* Block-Element für zentrierte Ausrichtung */
    margin: 30px auto; /* Oben 30px Abstand & automatisch horizontal zentrieren */
    padding: 10px 20px; /* Etwas größere Schaltfläche */
    font-size: 16px; /* Lesbarkeit verbessern */
}

.flash_msg{
    width: 300px !important;
    position: fixed;
    top: 80px;
    right: 15px;
    z-index: 9999;
}

.alert {
    border: 0px !important;
}

.alert-success {
    color: #0f5132 !important;
}

.alert-danger {
    color: #842029 !important;
}

.filtered {
    background-color: #ffa500 !important; /* Beispiel: Gelbe Farbe für gefilterte Spalten */
    color: white;
}

.hide{
    display: none;
}





/*###################### Buttons ######################*/

.maker-button{
    background: #198754 !important;
}

.maker-button.maker-button svg {
  color: #fff !important;
  fill: #fff !important;
}

.delete-comment-btn {
    background-color: transparent;
    border: none;
    color: #dc3545;
    font-size: 0.8em !important;  /* Größere Schriftgröße für bessere Sichtbarkeit */
    cursor: pointer;
    position: absolute;
    right: 10px; /* Rechtsbündig */
    padding: 5px 8px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;  /* Für abgerundeten Button */
}

.delete-comment-btn:hover {
    color: #fff;
    background-color: #dc3545;
}



.clear-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: none;
}
/*###################### Monitoring ######################*/
.monitoring_picture {
    max-width: 100% !important;
    max-height: 300px !important;
    height: 100% !important;
}
.monitoring_picture_container {
    padding: 5px; /* Abstand zwischen Bild und äußerem Rand */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.10);
    background-color: #fff; /* Weißer Rahmen */
    max-width: 500px !important;
    width: 100% !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px !important;
}


/*###################### Media Queries ######################*/

@media (max-width: 700px) {
    .sidebar {
        transform: translateX(-100%);
        position: absolute;
        top: 50px;
        left: 0;
        height: calc(100vh - 50px);
    }

    .sidebar.hidden {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
    }

    .user-dropdown {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        background: white;
        border-radius: 0;
        z-index: 1200;
        padding: 5px;
        width: calc(100% - 10px);
        margin: 0 auto;
        box-sizing: border-box;
    }

    .documentation-text {
        display: none; /* Blendet nur den Text "Dokumentation" aus */
    }
    .below-header-content {
        margin-left: 0px!important; /* Standardwert für die Sidebar-Breite */
    }
}


#scannerVideo video,
#scannerVideo canvas {
    width: 100% !important;
    height: 100% !important;
}

.dropzone-box {
    border: 2px dashed #6c757d;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: 0.2s ease-in-out;
    cursor: pointer;
}

.dropzone-box:hover {
    background: #e9ecef;
    border-color: #495057;
}

.dropzone-box.dragover {
    background: #d1e7dd !important;
    border-color: #198754 !important;
    color: #198754;
}

.dz-icon {
    margin-bottom: 10px;
}

.dz-text {
    font-size: 18px;
    margin: 0;
}

.dz-subtext {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

#modeLabel.live {
    color: #28a745 !important; /* Bootstrap Grün */
}

#modeLabel.dev {
    color: #dc3545 !important; /* Bootstrap Rot */
}

/* Stil für das WhatsApp-Chat-Design */
.chat-box {
    background-color: #e9ecef;
    border-radius: 10px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

/* Nachrichten-Box */
.chat-message {
    display: block;
    margin-bottom: 10px;
    max-width: 100%;
    padding: 10px;
    border-radius: 8px;
    background-color: #fff;
    text-align: left;
    font-size: 14px;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Zusatzinformationen (Name und Uhrzeit) */
.chat-info {
    font-size: 11px;
    color: #555;
    margin-top: 15px;
    text-align: right;
}

.chat-footer {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: #fafafa;
}

.chat-footer input {
    flex: 1;
    margin-right: 10px;
}

/* Zusatzinformationen (Name und Uhrzeit) */
.chat-info {
    font-size: 11px;
    color: #555;
    margin-top: 15px;
    text-align: right;
}

.chat-footer {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: #fafafa;
}

.chat-footer input {
    flex: 1;
    margin-right: 10px;
}

.delete-comment-btn {
    background-color: transparent;
    border: none;
    color: #dc3545;
    font-size: 0.8em !important;  /* Größere Schriftgröße für bessere Sichtbarkeit */
    cursor: pointer;
    position: absolute;
    right: 10px; /* Rechtsbündig */
    padding: 5px 8px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;  /* Für abgerundeten Button */
}

.delete-comment-btn:hover {
    color: #fff;
    background-color: #dc3545;
}


/* RGB-animierter Interliving-Text in der Kategorie-Überschrift */
.interliving-rgb-text {
    display: inline-block;
    margin-left: 4px; /* bisschen Abstand zum Icon */
    font-weight: 700;

    background: linear-gradient(90deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #00ffff,
        #0000ff,
        #8b00ff,
        #ff0000
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    animation:
        interliving-rgb-move 6s linear infinite,
        interliving-rgb-glow 1.5s ease-in-out infinite alternate;
}

/* Gradient bewegt sich über den Text */
@keyframes interliving-rgb-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Leichter Glow um den Text herum */
@keyframes interliving-rgb-glow {
    0% {
        text-shadow:
            0 0 4px rgba(255, 0, 0, 0.6),
            0 0 10px rgba(0, 255, 255, 0.3);
    }
    100% {
        text-shadow:
            0 0 10px rgba(0, 255, 0, 0.9),
            0 0 20px rgba(0, 0, 255, 0.7);
    }
}

.file-name {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .dropzone {
        border: 2px dashed rgba(108, 117, 125, .45);
        border-radius: 16px;
        padding: 28px;
        text-align: center;
        background: rgba(248, 249, 250, .9);
        cursor: pointer;
        transition: all .15s ease-in-out;
    }

    .dropzone:hover {
        transform: translateY(-1px);
        background: #fff;
    }

    .dropzone.dragover {
        border-color: rgba(13, 110, 253, .8);
        background: rgba(13, 110, 253, .06);
    }

    .file-pill {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .35rem .6rem;
        border-radius: 999px;
        background: #eb8c04;
        border: 1px solid #eb8c04;
        font-size: .9rem;
    }

    .muted-sm {
        font-size: .9rem;
        color: #6c757d;
    }

    .mono {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    }

    .btn-outline-primary{

        background-color: #f0f0f0 !important; /* Neue Hintergrundfarbe (Orange) */
        border-color: #eb8c04 !important; /* Randfarbe */
        color: #eb8c04 !important; /* Textfarbe */
    }

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active {
        background-color: #eb8c04 !important; /* Dunklere Farbe beim Hover */
        border-color: #FFA500 !important;
        color: #ffffff !important;
    }