/* Container-Stile */
.container {
    flex: 1;
    width: 100%;
    margin: 20px 20px;
    background-color: white;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    bottom: 20px;
    min-height: calc(100vh - 370px);
    box-sizing: border-box;
}

/* Layout-Content verschiebt sich mit Sidebar */
.layout-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* volle Fensterhöhe */
    transition: margin-left 0.3s ease;
}

/* Alles darin (inkl. Header, Container, Footer) hat volle Breite */
.header-wrapper,
.container,
footer {
    width: 100%;
    margin: 0;
    max-width: none;
}

/* Dashboard */
.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}
.dashboard-item {
    background-color: white;
    border: 1px solid lightgrey;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    flex-basis: calc(33.333% - 10px); /* Drei Spalten */
    box-sizing: border-box;
}
.dashboard-grid .dashboard-item:nth-child(4),
.dashboard-grid .dashboard-item:nth-child(5) {
    flex-basis: calc(50% - 10px); /* Zwei Spalten in der zweiten Reihe */
}
.dashboard-grid .dashboard-item:nth-child(6),
.dashboard-grid .dashboard-item:nth-child(7) {
    flex-basis: calc(50% - 10px); /* Zwei Spalten in der dritten Reihe */
}

/* Ticket System */
.task {
    position: relative;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid lightgrey;
    border-radius: 5px;
    background-color: white;
    z-index: 1; /* Stellen Sie sicher, dass die Task-Elemente unter den Dropdown-Menüs liegen */
}

.status-bar {
    width: 10px;
}

.priority-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
}

.low { background-color: forestgreen; }
.mid { background-color: orange; }
.high { background-color: red; }
.critical { background-color: darkred; }

.task-content {
    padding-left: 20px;
}

.task-content {
    padding-left: 20px;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.task-name {
    flex-basis: 60%;
    font-weight: bold;
}

.task-details {
    flex-basis: 40%;
    text-align: right;
}

.task-dates {
    font-size: 0.9em;
    color: #888; 
}

.progress-icons-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.progress-bar {
    flex-grow: 1;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    height: 20px;
    margin-right: 10px; /* Abstand zwischen Progress-Bar und Icons */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Leichter Schatten für die Progress-Bar */
}

.progress {
    height: 100%;
    background-color: forestgreen;
    border-radius: 5px 0 0 5px;
}

.progress-text {
    padding: 2px; /* Optional: Fügt einen kleinen Abstand um den Text herum hinzu */
    color: black;
}

.task-icons {
    display: flex;
    gap: 10px; /* Platz zwischen den Icons */
    align-items: center;
    margin-left: 10px; /* Platz links von den Icons */
}

.task-icons a {
    display: inline-block;
}

.task-icons i {
    width: 20px;
    height: 20px;
    margin: 0 5px; /* Zusätzlicher Platz um die Icons herum */
    cursor: pointer;
    fill: #333; /* Standardfarbe der Icons */
}

.task-icons i:hover {
    fill: #555; /* Farbe beim Hover-Effekt */
}

.task-icons svg {
    width: 24px;
    height: 24px;
}

.task-description {
    margin-top: 10px;
    display: none;
}

.size-6 {
    width: 24px;
    height: 24px;
}

/* User Online Widget */
        .online-users-widget {
            border: 1px solid #ccc;
            padding: 20px;
            width: 300px;
            font-family: Arial, sans-serif;
        }
        .online-users-widget h2 {
            font-size: 18px;
            margin-top: 0;
        }
        .online-users-widget ul {
            list-style: none;
            padding-left: 0;
        }
        .online-users-widget li {
            padding: 5px 0;
            border-bottom: 1px solid #ddd;
        }

/* Upload-Formular */
.upload-form {
    text-align: center;
    margin-top: 20px;
}

.drop-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
    transition: border-color 0.3s;
}

.drop-area.highlight {
    border-color: #333;
}

#fileElem {
    display: none;
}

/* Unterweisungsstatus */
        .ampel-rot {
            background-color: #ff4d4d; /* Rot */
        }
        .ampel-gelb {
            background-color: #ffd633; /* Gelb */
        }
        .ampel-gruen {
            background-color: #4dff4d; /* Grün */
        }
        .ampel-balken {
            height: 100%; /* Volle Höhe */
            width: 10px; /* Breite des vertikalen Balkens */
            margin: 0 auto;
            border-radius: 5px;
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
        }
        .sortable {
            cursor: pointer;
        }
        .sort-arrow {
            display: inline-block;
            margin-left: 5px;
        }
    .unterweisung-index {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .unterweisung-item {
        border: 1px solid #ccc;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    }
/* Benutzerkonto */
        .show_user {
            display: flex;

        }
        .show-user {
            display: flex;
            flex-wrap: wrap;
            flex: 1;
            margin: 0px 10px auto; /* Adjusted margin for spacing */
            background-color: lightgrey;
            padding: 20px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
        }
        .show-user span {
            flex: 0 0 50%;
            padding: 5px;
        }
        .show-user label {
            font-weight: bold;
            margin-right: 5px;
        }

/* Progress */
        .progress-bar {
            height: 20px;
            background-color: lightgray;
            border-radius: 10px;
            overflow: hidden;
            width: 100%;
            cursor: pointer; /* Cursor ändern, um anzuzeigen, dass der Fortschritt bearbeitet werden kann */
        }
        .progress {
            height: 100%;
            text-align: center;
            color: white;
            line-height: 20px;
        }
        .progress.low {
            background-color: green;
        }
        .progress.medium {
            background-color: yellow;
            color: black;
        }
        .progress.high {
            background-color: red;
        }
        .progress-container {
            width: 200px; /* Adjust width as needed */
        }

        .progress-container-widget {
            width: 100px; /* Adjust width as needed */
        }

/* Unterweisung Drucken */
        @media print {
            body * {
                visibility: hidden;
            }
            #print, #print * {
                visibility: visible;
            }
            #print {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
            }
            th {
                background-color: #f2f2f2 !important;
            }
        }

@media (max-width: 768px) {
    .layout-content {
        margin-left: 60px; /* Sidebar bleibt bei 60px */
    }

    .container {
        margin: 10px;
        padding: 15px;
    }
}
