body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

.main-container {
    padding: 60px 20px;
    min-height: 100vh;
    margin-top: 30px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 10px;
}
.user-info {
    position: absolute;
    right: 10px;
    top: 10px;
    list-style: none; /* Entfernt die Listensymbole */
}

.user-info > li {
    display: none; /* Versteckt die Listenelemente */
    padding: 5px;
    background: #f1f1f1;
    margin-top: 2px;
}

.user-info > li:first-child {
    display: block; /* Zeigt nur das erste Listenelement an */
}

.user-info:hover > li {
    display: block; /* Zeigt alle Listenelemente beim Hover an */
}
.navigation, .sidebar {
    padding: 10px;
    border: 1px solid black;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
}
.subnav {
    display: grid;
}
.subnav button {
    font-size: 17px;
    border: none;
    outline: none;
    padding: 2px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    text-align: left;
    transition: 0.5s;
}
.subnav-content {
    display: none;
}
.subnav-content button {
    font-size: 17px;
    font-family: inherit;
    padding: 4px;
    border: none;
    text-align: center;
    background-color: white;
}

.main {
    padding: 10px;
    border: none /*1px solid black;*/
}
.sidebar {
    display: flex;
    flex-direction: column;
}
.sidebar button:not(.overview) {
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid blue;
    text-align: center;
}
.sidebar button:hover {
    background-color: #ccc;
}
.sidebar button:active {
    background-color: #ccc;
}
.overview {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    display: none;
}
form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
input[type=checkbox] {
    vertical-align: middle;
    position: relative;
    bottom: 1px;
}
input[type="datetime-local"] {
    padding: 5px;
    border: 2px solid #ccc;
    border-radius: 4px;
}
input[type="datetime-local"]:focus {
    border-color: #66afe9;
    outline: none;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
}
input[type="datetime-local"]:disabled {
    background-color: #f5f5f5;
    color: #999;
}
label {
    display: block;
    padding: 5px;
}

.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button:active {
    background-color: #ccc;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

.viewcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

.chartContainer {
    display: contents;
    border: 1px solid #ccc;
}

.table-container {
    display: inline-table;
}

table.live {
    border-collapse: collapse;
}

table.live th {
    background-color: #a1c517;
    font-size: small;
}

table.live tr:nth-child(odd){
    background-color: #f2f2f2;
}

table.live th, table.live td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

a.image_container {
    width: 200px;
    height: 200px;
    display: inline-block;
    overflow: hidden;
}

a.image_container img {
    width: auto;
    height: 100%;
}

.tileContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 5px;
}
.tile {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 250px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}
.tile h2 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333333;
}
.tile .tile-value {
    margin: 5px 0;
    font-size: 24px;
    font-weight: bold;
    color: #a1c517;
}
.tile .tile-label {
    margin: 0;
    font-size: 14px;
    color: #555555;
}
.status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    color: #ffffff;
}
.status.operational {
    background-color: #28a745;
}
.status.error {
    background-color: #dc3545;
}
.status.alert {
    background-color: #ffc107;
    color: #333333;
}
.status.maintenance {
    background-color: #17a2b8;
    color: #333333;
}

.user-info-btn {
    background-color: #A1C517;
    color: #656263;
    padding: 8px;
    font-size: 12px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    align-items: center;
}
.user-info-btn-img {
    height: 16px;
    width: auto;
    margin-right: 5px;
}
/* The container <div> - needed to position the dropdown content */
.user-info {
    position: inherit;
}

/* Dropdown Content (Hidden by Default) */
.user-info-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 100px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
    right: 1%;
}

/* Links inside the dropdown */
.user-info-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.user-info-content a:hover {
    background-color: white;
}

/* Show the dropdown menu on hover */
.user-info:hover .user-info-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.user-info-btn:hover {
    background-color: white;
    color: #656263;
}

.container-login {
    width: 800px;
    margin: 50px auto;
    background-color: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 70px;
}

.c-box {
    flex: 1;
}

.logo {

}

.topbar {
    background-color: #A1C517;
    color: #656263;
    height: 80px;
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    display: flex;
    z-index: 1000;
    align-items: center;
}

.topbar .left {
    text-align: left;
    font-size: 30px;
}
.topbar .right {
    text-align: right;
    display: flex;
    align-items: center;
}
.portal-text {
    position: relative;
    top: -9px;
    font-size: 27px;
}



.footer {
    background-color: #A1C517;
    color: white;
    padding: 10px 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    justify-content: space-between;
    display: flex;
}
.footer .left {
    text-align: left;
}
.footer .right {
    text-align: right;
}