﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.navbar-brand img {
    max-height: 50px; /* Adjust this value to make the logo a bit larger */
    width: auto;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles */
html {
    font-size: 14px;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 125px; /* Margin bottom by footer height */
    font-family: 'Arial', sans-serif;
    background-color: #E9F6E9;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
    width: 100%;
}

.card {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 15px;
    width: 90%; /* Change width to 90% for a more appealing margin */
}

.card-header {
    background-color: #e0e0e0;
    padding: 10px;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

.card-body {
    padding: 10px;
}

.msg-background-color {
    background-color: #f2f2f2; /* Ursprüngliche Hintergrundfarbe */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px; /* Add some margin between elements */
}

.msg-read-background-color {
    background-color: #f8f9fa !important; /* Zartes Grau für gelesene Nachrichten */
}

    .msg-read-background-color:hover {
        background-color: #e0e0e0 !important; /* Etwas dunklere Hover-Farbe für gelesene Nachrichten */
    }

.msg-notread-background-color {
    background-color: #f8d7da !important; /* Hintergrundfarbe für ungelesene Nachrichten */
}

    .msg-notread-background-color:hover {
        background-color: #c4a9a9 !important; /* Hover-Farbe für ungelesene Nachrichten */
    }

h1.display-4 {
    font-size: 2rem; /* Verkleinere die Schriftgröße für display-4 */
}

/* Newsticker Styles */
#newsticker {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    /*background-color: #f8f9fa;*/ /* Background color for better visibility */
    padding: 0px 0; /* Reduced padding for less vertical space */
    width: 100%; /* Ensure it takes full width */
    font-size: 1.3rem;
}

    #newsticker span {
        display: inline-block;
        padding-right: 3%; /* Gap between each message */
        animation: ticker 20s linear infinite;
        color: #000;
    }

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.icon-black {
    color: black;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #ffffff;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}

.table-striped tbody tr:hover {
    background-color: #d6d6d6; /* Dunklere Farbe beim Hover-Effekt */
}

.img-icon {
    width: auto;
    height: 60px;
    object-fit: cover;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .table thead {
        display: none;
    }

    .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        margin-bottom: 15px;
    }

    .table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

        .table td::before {
            content: attr(data-label);
            position: absolute;
            left: 10px;
            width: calc(50% - 10px);
            text-align: left;
            font-weight: bold;
        }
}

/* Flexbox styling for buttons */
.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn-equal {
    flex: 1 1 45%; /* Ensure buttons are equally wide and shrink on small screens */
    max-width: 200px; /* Set a maximum width for the buttons */
}

/* Barcode modal specific styles */
#barcode-reader {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    overflow: hidden;
}

#barcodeModal .modal-dialog {
    max-width: 400px; /* Ensure the modal does not exceed 400px */
}

#barcodeModal .modal-content {
    padding: 10px;
}

#barcodeModal .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#barcodeModal video {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
