/* style.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

header {
    background-color: #a6a6a6;
    color: #fff;
    padding: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left {
    display: flex;
    align-items: center;
}
.logo {
    height: 50px;
    margin-right: 10px;
}
.title {
    margin: 0;
}
.top-nav {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
}
.nav-links, .extra-links {
    list-style: none;
    padding: 0px;
    margin-left: 0px;
    display: flex;
}
.nav-links li, .extra-links li {
    margin: 0;
}
.top-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #fff;
    text-decoration: none;
    background-color: #a6a6a6;
    font-size: 24px; /* Größe der Icons */
    transition: background-color 0.3s ease;
}
.top-nav a:hover {
    background-color: #ff9900;
}
.tooltip {
    display: none;
    position: absolute;
    bottom: -40px; /* Position oberhalb des Icons */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 10;
}
.top-nav a:hover .tooltip {
    display: block;
}
.language-dropdown {
    display: flex;
    align-items: center;
}
.language-dropdown form {
    display: flex;
    align-items: center;
}
.language-dropdown select {
    padding: 5px;
    font-size: 14px;
    border: none;
    background-color: #a6a6a6;
    color: #fff;
    margin-left: 20px;
    transition: background-color 0.3s ease;
}
.language-dropdown select:focus {
    outline: none;
}
.container {
    display: flex;
    flex: 1;
}
.sidebar {
    flex: 0 0 250px; /* Anpassen der Breite nach Bedarf */
    font-family: Arial, sans-serif;
    width: 250px; /* Breite der Sidebar */
    background-color: #f0f0f0;
    padding: 0px;
   /* position: fixed; /* Fixiert die Sidebar */
    top: 82px; /* Oberkante */
    left: 0; /* Linke Seite */
    overflow-y: auto; /* Bei Überlauf scrollen */
    height: auto; /* Volle Höhe des Viewports */

}
.sidebar ul {
    padding-left: 10px; /* Abstand von der linken Seite */
}
.sidebar li {
    padding: 2px 0px;
    text-align: left;
    white-space: nowrap; /* Verhindert Zeilenumbruch in Dropdown-Menü */
    list-style-type: none; /* Verbergen der Punkte */
}

.sidebar li a {
    display: block; /* Stellt sicher, dass der Link den gesamten Listeneintrag einnimmt */
    width: 93%; /* Stellt sicher, dass der Link die volle Breite hat */
    color: #333;
    text-decoration: none;
    background-color: #fff;
    padding: 2px 4px; /* Gleiche Polsterung für Link wie Listeneintrag */
    line-height: 2.0; /* Vertikale Zentrierung des Textes */
    border-radius: 4px; /* Abgerundete Ecken beim Hover-Hintergrund */
    transition: background-color 0.3s ease;
}

.sidebar:hover {
    display: block;
}

.sidebar li a:hover {
    background-color: #ff9900;
    border-radius: 4px; /* Abgerundete Ecken beim Hover-Hintergrund */
    color: #fff;
}

/* Hover */
.sidebar ul li a:hover {
    background-color: #ff9900;
}

.sidebar ul li a:hover i {
    color: #fff;
}

/* Aktiver Menüpunkt */
.sidebar ul li a.active {
    background-color: #0297d4 !important;
    color: #fff !important;
}

.sidebar ul li a.active i {
    color: #fff !important;
}

.content {
    margin-left: 10;
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto; /* Nur vertikales Scrollen im Content-Bereich */
}
footer {
    background-color: #f8f8f8;
    padding: 8px;
    border-top: 1px solid #ccc;
    text-align: center;
    width: 100%;
    flex-shrink: 0; /* Verhindert, dass der Footer schrumpft */
}


.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: -40px; /* Ändert die Positionierung von links nach rechts */
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 270px; /* Erhöht die Breite des Dropdown-Menüs */
    border-radius: 4px;
    overflow: hidden;
    padding: 10px 0; /* Fügt Padding oben und unten hinzu, um Links zu zentrieren */
}

.dropdown-menu li {
    padding: 2px 4px;
    text-align: left;
    white-space: nowrap; /* Verhindert Zeilenumbruch in Dropdown-Menü */
}

.dropdown-menu li a {
    display: block;
    font-size: 20px;
    width: 93%;        /* exakt wie Sidebar */
    color: #333;
    text-decoration: none;
    background-color: #fff;
    padding: 2px 4px;  /* exakt wie Sidebar */
    line-height: 2.0;  /* vertikale Höhe wie Sidebar */
    border-radius: 4px;
    margin: 0 auto;    /* zentriert wie Sidebar */
    transition: background-color 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: #ff9900;
    color: #fff;
    border-radius: 4px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}




body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    color: #333333;
}

.login-container .logo {
    width: 300px;
    height: auto;
    margin-bottom: 40px;
}

.login-container {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 360px;          
    max-width: 90vw;      
}

.login-container h1 {
    margin-bottom: 40px;
}

.error-box {
    color: #ff9900;
    font-weight: bold;     /* 🔸 fett */
    padding: 10px 0 15px 0;
}

.message {
    color: #0297d4;
    font-weight: bold;
    padding: 10px 0 15px 0;
}

.login-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.login-container label {
    width: 100%;
    text-align: center;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 0px;
}

.login-container input {
    width: 280px;       
    max-width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.login-container button {
    width: 200px;         
    padding: 10px;
    font-size: 16px;
    color: #fff;
    background-color: #0297d4;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.login-container button:hover {
    background-color: #ff9900;
}

.login-footer {
    color: #333333;
    padding: 30px 40px;
    text-align: center;
    font-size: 10px;
}

.nav-links a.active,
.extra-links a.active{
    background-color: #0297d4;
    border-radius: 10px;
}
.nav-links a:hover,
.extra-links a:hover {
    background-color: #ff9900;
    border-radius: 10px;
}
.nav-links a.active:hover,
.extra-links a.active:hover {
    background-color: #0297d4 !important;
}

/* Stil für das Bearbeiten-Popup */
#editPopup,
#addPopup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* Über dem abgedunkelten Hintergrund */
}

#editPopup form,
#addPopup form {
    display: flex;
    flex-direction: column;
}

#editPopup label,
#addPopup label {
    margin-bottom: 5px;
    text-align: left;
}

#editPopup input,
#addPopup input,
#editPopup select,
#addPopup select {
    margin-bottom: 20px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#editPopup button,
#addPopup button,
.button-style {
    padding: 10px;
    font-size: 16px;
    color: #fff;
    background-color: #0297d4;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-right: 10px; /* Abstand zwischen den Buttons */
    transition: background-color 0.3s ease;
}

#editPopup button:hover,
#addPopup button:hover,
.button-style:hover {
    background-color: #ff9900;
}
/* Stil für das Details-Popup */
#detailsPopup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* Über dem abgedunkelten Hintergrund */
}

#detailsPopup .popup-content {
    display: flex;
    flex-direction: column;
}

#detailsPopup .popup-content label {
    margin-bottom: 5px;
    text-align: left;
}

#detailsPopup .popup-content input,
#detailsPopup .popup-content select {
    margin-bottom: 20px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#detailsPopup .popup-content button {
    padding: 10px;
    font-size: 16px;
    color: #fff;
    background-color: #0297d4;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#detailsPopup .popup-content button:hover {
    background-color: #ff9900;
}
.scrollable-popup {
    max-height: 600px; /* Setzen Sie die gewünschte maximale Höhe */
    overflow-y: auto;
}


/* Abgedunkelter Hintergrund */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Unter dem Popup */
}

/* Employee menü edit */
.employeemenu {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.employeemenu label {
    margin-bottom: 5px;
    font-weight: bold;
}

.employeemenu input,
.employeemenu select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}
@media (min-width: 768px) {
    .employeemenu {
        flex-direction: row;
        align-items: center;
    }

    .employeemenu label {
        flex: 1;
        text-align: right;
        margin-right: 10px;
    }

    .employeemenu input,
    .employeemenu select {
        flex: 2;
        margin-bottom: 0;
    }
}

/* Filtermenü */
.filtermenu {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.filtermenu form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filtermenu label {
    font-weight: bold;
    margin-right: 10px;
}

.filtermenu input[type="number"],
.filtermenu input[type="date"],
.filtermenu input[type="text"],
.filtermenu input[type="time"],
.filtermenu input[type="password"],
.filtermenu select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 150px;
    flex-grow: 1;
}
.filtermenu input[type="datetime-local"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 180px;
    flex-grow: 1;
}

.filtermenu button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #0297d4;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filtermenu button:hover {
    background-color: #ff9900;
}

        .large-checkbox {
            transform: scale(1.5); /* Größe der Checkbox anpassen */
            -webkit-transform: scale(1.5); /* Für Safari */
            -moz-transform: scale(1.5); /* Für ältere Firefox-Versionen */
            -ms-transform: scale(1.5); /* Für Internet Explorer */
            -o-transform: scale(1.5); /* Für ältere Opera-Versionen */
            margin: 10px; /* Optional, um Platz um die Checkbox zu schaffen */

        }
        /* Stil der Checkbox, wenn sie nicht aktiviert ist */
        input[type="checkbox"]::before {
            content: "";
            display: block;
            width: 100%;
            height: 60%;
            background-color: white;
            transform: scale(1.5); /* Größe der Checkbox anpassen */
            -webkit-transform: scale(1.5); /* Für Safari */
            -moz-transform: scale(1.5); /* Für ältere Firefox-Versionen */
            -ms-transform: scale(1.5); /* Für Internet Explorer */
            -o-transform: scale(1.5); /* Für ältere Opera-Versionen */
        }

        /* Stil der Checkbox, wenn sie aktiviert ist */
        input[type="checkbox"]:checked::before {
            content: " ✓ ";
            display: block;
            width: 100%;
            height: 60%;
            color: white;
            background-color: #0297d4;
            text-align: center;
            line-height: 14px; /* Vertikale Zentrierung des Häkchens */
            transform: scale(1.5); /* Größe der Checkbox anpassen */
            -webkit-transform: scale(1.5); /* Für Safari */
            -moz-transform: scale(1.5); /* Für ältere Firefox-Versionen */
            -ms-transform: scale(1.5); /* Für Internet Explorer */
            -o-transform: scale(1.5); /* Für ältere Opera-Versionen */
        }

/* Tabellenmenü */
.tablemenu {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tablemenu table {
    width: 100%;
    border-collapse: collapse;
}
.tablemenu input[type="number"],
.tablemenu input[type="date"],
.tablemenu input[type="text"],
.tablemenu input[type="time"],
.tablemenu select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 200px;
    flex-grow: 1;
}
.tablemenu input[type="datetime-local"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 200px;
    flex-grow: 1;
}
.tablemenu input[type="email"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 250px;
    flex-grow: 1;
}


.tablemenu th,
.tablemenu td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.tablemenu th {
    background-color: #f8f8f8;
    font-weight: bold;
}

.tablemenu tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tablemenu tr:hover {
    background-color: #f1f1f1;
}

.tablemenu .edit-button {
    padding: 5px 10px;
    font-size: 14px;
    color: #fff;
    background-color: #0297d4;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tablemenu .edit-button:hover {
    background-color: #ff9900;
}

.tablemenu .delete-button {
    padding: 5px 10px;
    font-size: 14px;
    color: #fff;
    background-color: #ccc;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tablemenu .delete-button:hover {
    background-color: red;

}
.delete-button:hover {
    background-color: red;

}

/* Kalenderansicht */

#calendar {
    max-width: 900px;
    margin: 0 auto;
}
.form-group {
    display: flex;
    align-items: center;
}

.form-group label {
    flex: 1;
}

.form-group input[type="checkbox"] {
    margin-left: 5px; /* Abstand zwischen Label und Checkbox anpassen */
}

.list-style {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.list-group {
    margin-bottom: 15px;
}

.list-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.list-group input[type="text"],
.list-group input[type="email"],
.list-group input[type="date"],
.list-group input[type="number"],
.list-group select,
.list-group textarea {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.list-group input[type="checkbox"] {
    display: inline-block;
    width: auto;
}

.list-group button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.list-group button:hover {
    background-color: #218838;
}
.success-message {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    color: #218838;
    font-weight: bold;
    border: 1px solid #218838;
    border-radius: 10px;
    background-color: #21883746;
}
.error-message {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    color: red;
    font-weight: bold;
    border: 1px solid red;
    border-radius: 10px;
    background-color: rgba(255, 0, 0, 0.322);
}

.filtermenu .form-row-inline {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.filtermenu .form-row-inline label {
    flex: 0 0 180px;      /* Breite der Beschriftung anpassen */
    margin-right: 10px;
    text-align: right;    /* oder left, wenn du es lieber linksbündig willst */
}

.filtermenu .form-row-inline input[type="password"] {
    flex: 1;
}

.filtermenu .form-actions {
    margin-top: 12px;
}

/* Dashboard / Home */
.dashboard-title {
    margin: 0 0 20px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.tenant-badge {
    color: #666;
    font-size: 12px;
}

.info-box {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 10px 14px;
    border-radius: 6px;
    max-width: 900px;
    margin: 0 auto 20px;
}

/* Dashboard / Home */
.dashboard-title {
    margin: 0 0 20px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.tenant-badge {
    color: #666;
    font-size: 12px;
}

.info-box {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 10px 14px;
    border-radius: 6px;
    max-width: 900px;
    margin: 0 auto 20px;
}

/* Kopfzeilen-Uhr rechts ausrichten */
.header-clock {
    font-size: 40px;
    font-weight: 600;
    font-family: Verdana, Arial, sans-serif;
    color: #555;
    display: flex;
    align-items: center;
    margin-right: 20px; /* Abstand zu rechten Buttons */
    margin-left: auto;  /* schiebt die Uhr ganz nach rechts */
}
.header-clock span {
    color: #7e7e7e;
}
.clock-colon.blink-off {
    visibility: hidden;
}

/* Flags / Toogles */
.flag-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.flag-label span {
    margin-left: 0.25rem;
    font-size: 0.9rem;
}

.dashboard-tile-header .dashboard-tile-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.flag-lock-btn.locked i {
    color: #555;
}
.flag-lock-btn.unlocked i {
    color: #0297d4; /* dein Blau */
}

/* Toggle-Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    border-radius: 999px;
    border: none;
    background-color: #ccc; /* inaktiv = grau */
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    outline: none;
}

.toggle-switch .toggle-slider {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    left: 2px;
    transition: transform 0.2s ease;
}

.toggle-switch.is-on {
    background-color: #0297d4; /* aktiv = blau */
}

.toggle-switch.is-on .toggle-slider {
    transform: translateX(24px);
}

.toggle-switch[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}


/* Grid 2x2, mittig */
.dashboard-grid {
    max-width: 1200px;
    margin: 20px auto 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 20px;
}

/* Kacheln */
.dashboard-tile-link {
    text-decoration: none;
    color: inherit;
}

.dashboard-tile {
    background: #e9e9e9;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 16px 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 170px;        /* gleiche Grundhöhe */
    display: flex;
    flex-direction: column;
}

.dashboard-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Kopf der Kachel */
.dashboard-tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dashboard-tile-title {
    font-weight: 600;
    font-size: 16px;
}

.dashboard-tile-badge {
    background-color: #0297d4;
    color: #ffffff;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    border: 0;
}
/* Kleine Badges in der Sidebar rechts vom Text */
ul li a .menu-badge {
    float: right;
    background-color: #ff9900;   /* deine Hauptfarbe */
    color: #fff;
    border-radius: 10px;
    padding: 2px 2px;
    font-size: 12px;
    line-height: 18px;
    min-width: 18px;
    text-align: center;
    margin-left: 6px;
}

/* Inhalt */
.dashboard-tile-body {
    flex: 1;                     /* füllt den restlichen Platz -> alle gleich hoch */
}

.dashboard-tile-body p {
    margin: 2px 0;
    font-size: 14px;
}

/* Responsiv: untereinander bei schmalen Displays */
@media (max-width: 700px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/*
.container-tab {
    margin-top: 30px;
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-item {
    margin-bottom: -1px;
}

.nav-tabs .nav-link {
    color: #007bff;
    border: 1px solid transparent;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
}

.form-group label {
    font-weight: bold;
}

.form-control {
    margin-bottom: 1rem;
}


.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.btn-primary:focus, .btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}
*/
