body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f4f6f8;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.menu-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    border-radius: 50%;
    padding: 10px;
}

.sidebar {
    background-color: #1e1e2f;
    color: #ffffff;
    width: 280px;
    position: fixed;
    top: 0;
    left: -280px;
    height: 100%;
    transition: left 0.3s ease;
    z-index: 900;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    background-color: #171724;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header i {
    margin-right: 10px;
}

.close-sidebar {
    color: #ffffff;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #d1d5db !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.nav-link i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.nav-link:hover, .nav-link.active {
    background-color: #3b3b5b;
    color: #ffffff !important;
}

.submenu {
    background-color: #252537;
    padding-left: 20px;
}

.submenu li a {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    display: flex;
    align-items: center;
}

.submenu li a:hover {
    background-color: #4b4b6b;
    color: #ffffff;
}

.content {
    padding: 20px;
    width: 100%;
}

@media (max-width: 767px) {
    .content {
        padding-left: 60px; /* Platz für den Menü-Button */
    }
}

.content-header {
    margin-bottom: 20px;
}

.content-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e1e2f;
}

.content-body {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.card {
    border: none;
    border-radius: 8px;
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.table {
    margin-bottom: 0;
}

.table th, .table td {
    vertical-align: middle;
}

.btn-sm {
    padding: 5px 10px;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    .sidebar {
        left: 0;
        position: relative;
    }
    .content {
        padding: 30px;
    }
    .content-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .table-responsive {
        font-size: 14px;
    }
    /* Regeln nur auf .table anwenden, die NICHT .calendar-table sind */
    .table:not(.calendar-table) th,
    .table:not(.calendar-table) td {
        display: block;
        width: 100%;
        text-align: left;
    }
    .table:not(.calendar-table) thead {
        display: none;
    }
    .table:not(.calendar-table) tr {
        margin-bottom: 15px;
        border-bottom: 1px solid #dee2e6;
    }
    .table:not(.calendar-table) td:before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 40%;
    }
}

/* CSS für das Modal, um lange Texte umzubrechen */
#detailsModal .modal-body p {
    margin-bottom: 10px;
}

#detailsModal .modal-body span {
    word-wrap: break-word;
    white-space: pre-wrap; /* Erlaubt Zeilenumbrüche und behält Whitespace bei */
}

/* Stile für den Chat */
.chat-container {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.chat-container .card {
    margin-bottom: 10px;
    border-radius: 10px;
}

.chat-container .card.bg-light {
    margin-right: 20%;
    background-color: #e0e0e0; /* Grau für eingehende Nachrichten */
}

.chat-container .card.bg-primary {
    margin-left: 20%;
    background-color: #2196F3; /* Blau für ausgehende Nachrichten */
}

.chat-container .card-body {
    font-size: 14px;
    padding: 10px;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .chat-container {
        padding: 8px;
    }

    .chat-container .card {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100%;
    }

    .chat-container .card-body {
        font-size: 12px;
        padding: 8px;
    }
}