﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.accordion-button:not(.collapsed) {
    color: #FFF !important;
    background-color: #F07D00 !important;
}

.accordion-button:link, .accordion-button:visited, .accordion-button:hover, .accordion-button:active {
    background-color: #D26E00 !important;
    color: #FFF !important;
    text-decoration: none !important;
    border: hidden !important;
    border-color: #FFF !important;
    box-shadow: 0px !important;
}

.accordion-button:focus {
    z-index: 3;
    border-color: #F07D00 !important;
    outline: 0;
    box-shadow: 0 0 0 .25rem #F07D00 !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c63e4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg)
}

/* Style the Autocomplete dropdown */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #fff;
    border: 1px solid #ced4da;
    position: absolute; /* Adjust position as needed */
}

/* Style the Autocomplete list items */
.ui-menu-item {
    padding: 8px 12px;
    cursor: pointer;
}

/* Style the Autocomplete input field */
.ui-widget-content .ui-autocomplete-input {
    border: 1px solid #ced4da;
    border-radius: 0;
    padding: 8px;
    width: 100%; /* Full-width input */
}

/* Highlight the matched text in autocomplete results */
.ui-state-highlight {
    background-color: #007bff; /* Highlight color */
    color: #fff;
}

.badge.ToDo {
    background-color: red;
}

.badge.Ignored,
.badge.Performed {
    background-color: grey;
}

.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

    .embed-responsive::before {
        display: block;
        content: "";
    }

.embed-responsive-16by9::before {
    padding-top: 40%;
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.connection-type {
    font-size: 1.3rem; /* Größe des Textes erhöhen */
    margin-top: 0.8rem; /* Leicht nach unten verschieben */
    margin-right: 0.7rem;
}

.offcanvas-large-bottom {
    height: 70vh !important; /* Adjust the height as needed */
}

.nav-pills .nav-link.active {
    background-color: #f07d00 !important;
    color: #ffffff !important;
}

/* Custom Card */
.custom-card {
    border: 1px solid #ececec;
    /*border-radius: 8px;*/
    margin: 10px;
    background: #fff;
    box-shadow: 0 1px 2px 1px #0000004d;
    position: relative;
}
    .custom-card-body {
        padding: 16px;
        background: #ececec;
    }

.custom-card:hover {
    border-color: #f07d00;
    box-shadow: 0 1px 2px 1px #f07d00;
}

    .custom-card.preselected {
        border-color: orange;
        position: relative;
    }

        .custom-card.preselected::after {
            content: "✔";
            position: absolute;
            top: 8px;
            right: 8px;
            color: orange;
            font-size: 24px;
        }

    .custom-card.disabled {
        background: #f8f9fa;
        color: #aaa;
        pointer-events: none;
        border-color: #e0e0e0;
    }

.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
}

.fullscreen-card {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1055;
    background: white;
    overflow: auto;
    padding: 20px;
}

.card-icon {
    margin-bottom: 12px;
}

    .card-icon img {
        max-width: 48px;
        height: auto;
    }

.card-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.75rem;
    font-weight: bold;
}

.card-subtitle {
    font-size: 1.25rem;
    /*color: #6c757d;*/
    margin-bottom: 16px;
}

.card-action {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

    .card-action:hover {
        text-decoration: underline;
    }

.custom-tooltip {
    --bs-tooltip-bg: var(--bd-violet-bg);
    --bs-tooltip-color: var(--bs-white);
}

.custom-popover {
    --bs-popover-max-width: 500px;
    --bs-popover-border-color: #f07d00;
    --bs-popover-border-width: 2px;
    --bs-popover-header-bg: #f07d00;
    --bs-popover-header-color: #ffffff;
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: .5rem;
}

.custom-popover img{
    max-width: 80px;
}

.active-membershiplevel {
    border: 2px solid #333; 
    border-radius: 8px; 
    padding: 5px; 
    background-color: #f0f0f0;
}

    .active-membershiplevel img {
        max-width: 100px;
    }

.membershiplevel img {
    max-width: 80px;
}

.table-notifications thead th {
    background: #f8f9fa;
    color: #343a40;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    border-bottom: 2px solid #dee2e6;
}

.table-notifications,
.table-notifications th,
.table-notifications td {
    border-color: #cfd3d7 !important;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* über Modal */
}

    .loading-overlay .loading-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

.grafana-frame {
    width: 100%;
    /* z.B. 65% der Viewport-Höhe, aber mindestens 420px */
    height: clamp(420px, 65vh, 900px);
}

    .grafana-frame > iframe.grafanaIframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }