:root {
    --bg: #0b0f14;
    --bg-secondary: #05080c;
    --card: rgba(17, 24, 33, 0.9);
    --card-hover: rgba(20, 30, 41, 0.96);
    --accent: #00ffc8;
    --accent-soft: rgba(0, 255, 200, 0.18);
    --accent-strong: #7fffe6;
    --text: #e6edf3;
    --muted: #7f8c9a;
    --border: rgba(0, 255, 200, 0.12);
    --shadow: 0 0 40px rgba(0, 255, 200, 0.1);
    --shadow-lg: 0 20px 55px rgba(0, 0, 0, 0.45);
    --cl-accent: #00ffc8;
    --cl-accent2: #7fffe6;
    --cl-border: rgba(0, 255, 200, 0.14);
}

[data-bs-theme="dark"] {
    --accent: #00ffc8;
    --accent-soft: rgba(0, 255, 200, 0.18);
    --accent-strong: #7fffe6;
    --cl-accent: #00ffc8;
    --cl-accent2: #7fffe6;
    --bs-body-bg: #05080c;
    --bs-body-color: #e6edf3;
    --bs-link-color: #00ffc8;
    --bs-link-hover-color: #7fffe6;
    --bs-border-color: rgba(0, 255, 200, 0.16);
    --bs-secondary-bg: rgba(14, 20, 29, 0.95);
    --bs-primary: #00ffc8;
}

html {
    scroll-behavior: smooth;
}
/*
body {
    padding-top: 65px;
    font-family: "Orbitron", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #0f1722 0%, #081018 38%, #05080c 100%) fixed !important;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 255, 200, 0.08), transparent 25%),
        radial-gradient(circle at 85% 15%, rgba(0, 255, 200, 0.05), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(0, 255, 200, 0.04), transparent 30%);
    z-index: 0;
}
*/
body {
    padding-top: 65px;
    font-family: "Orbitron", sans-serif;
    color: var(--text);
    background-image: url("/images/page_bg.jpg") !important;
	background-attachment:fixed;
	background-size:cover;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 255, 200, 0.08), transparent 25%),
        radial-gradient(circle at 85% 15%, rgba(0, 255, 200, 0.05), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(0, 255, 200, 0.04), transparent 30%);
    z-index: 0;
}
body > * {
    position: relative;
    z-index: 1;
}

body.auth-page {
    padding-top: 0;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-strong);
}

.container,
.container-fluid {
    position: relative;
    z-index: 1;
}

.card,
.modal-content,
.dropdown-menu,
.list-group-item,
.accordion-item,
.offcanvas {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.modal-header,
.modal-footer {
    border-color: var(--border) !important;
    background: rgba(255, 255, 255, 0.02);
}

.table {
    --bs-table-bg: rgba(8, 14, 22, 0.88);
    --bs-table-striped-bg: rgba(12, 20, 31, 0.9);
    --bs-table-border-color: rgba(0, 255, 200, 0.12);
    --bs-table-color: var(--text);
}

.table > :not(caption) > * > * {
    border-color: rgba(0, 255, 200, 0.12);
}

.form-control,
.form-select,
textarea.form-control,
.input-group-text {
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 200, 0.2);
    background: rgba(4, 12, 18, 0.72);
    color: var(--text);
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: #8d9ca9;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(0, 255, 200, 0.35);
    box-shadow: 0 0 0 0.22rem rgba(0, 255, 200, 0.12);
    background: rgba(4, 12, 18, 0.9);
    color: var(--text);
}

.btn {
    border-radius: 14px;
    letter-spacing: 0.4px;
}

.btn-primary,
.btn-chatello,
.btn-evora {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #03100d !important;
    box-shadow: 0 0 24px rgba(0, 255, 200, 0.18);
}

.btn-primary:hover,
.btn-chatello:hover,
.btn-evora:hover {
    background: #59ffd9 !important;
    border-color: #59ffd9 !important;
    color: #03100d !important;
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.28);
    transform: translateY(-1px);
}

.btn-secondary,
.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
    border-color: rgba(0, 255, 200, 0.3);
    background: rgba(0, 255, 200, 0.08);
    color: var(--accent);
}

.btn-outline-chatello,
.btn-outline-primary {
    border-color: rgba(0, 255, 200, 0.34) !important;
    color: var(--accent-strong) !important;
}

.btn-outline-chatello:hover,
.btn-outline-primary:hover {
    background: rgba(0, 255, 200, 0.1) !important;
    border-color: rgba(0, 255, 200, 0.62) !important;
    color: var(--text) !important;
}

.alert-success {
    color: #b8ffe9;
    border: 1px solid rgba(0, 255, 200, 0.35);
    background: rgba(0, 255, 200, 0.14);
}

.alert-danger {
    color: #ffced9;
    border: 1px solid rgba(255, 102, 132, 0.45);
    background: rgba(255, 102, 132, 0.16);
}

.alert-warning {
    color: #ffe8b4;
    border: 1px solid rgba(255, 202, 90, 0.45);
    background: rgba(255, 202, 90, 0.16);
}

.navbar,
.transition-navbar,
.navbar.chatello-nav {
    background: rgba(5, 10, 16, 0.74) !important;
    border-bottom: 1px solid rgba(0, 255, 200, 0.14);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(6, 12, 19, 0.88) !important;
}

.navbar .nav-link {
    color: var(--text) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--accent) !important;
}

.navbar .dropdown-menu,
.chat-room-menu {
    background: rgba(10, 16, 25, 0.95) !important;
    border: 1px solid rgba(0, 255, 200, 0.16) !important;
    box-shadow: var(--shadow-lg) !important;
}

.navbar .dropdown-item,
.chat-room-menu .dropdown-item {
    color: var(--text) !important;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.chat-room-menu .dropdown-item:hover,
.chat-room-menu .dropdown-item:focus {
    background: rgba(0, 255, 200, 0.12) !important;
    color: var(--accent) !important;
}

.footer-link {
    color: var(--muted);
}

.footer-link:hover {
    color: var(--accent);
}

.cookie-banner {
    border-top: 2px solid var(--accent) !important;
    background: rgba(5, 9, 14, 0.96) !important;
    color: var(--text) !important;
}

.cookie-banner a {
    color: var(--accent) !important;
}

.gallery-lightbox-backdrop {
    background: rgba(2, 8, 12, 0.94);
}

#messages {
    border: 1px solid rgba(0, 255, 200, 0.12);
    background: rgba(0, 0, 0, .50);
    border-radius: 18px;
}

#sidebar {
    border-left: 1px solid rgba(0, 255, 200, 0.12);
    background: rgba(0, 0, 0, .50) !important;
}

.sidebar_user_container {
    border: 1px solid rgba(0, 255, 200, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar_user_container:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

.sidebar_user_container:hover {
    background: rgba(0, 255, 200, 0.1) !important;
    border-color: rgba(0, 255, 200, 0.24);
}

#input-group,
#input-group.chat-inputbar {
    border-top: 1px solid rgba(0, 255, 200, 0.16) !important;
    background: rgba(6, 11, 18, 0.88) !important;
}

.btn-room {
    border: 1px solid rgba(0, 255, 200, 0.24) !important;
    background: rgba(0, 255, 200, 0.08) !important;
    color: var(--text) !important;
}

.btn-room:hover {
    background: rgba(0, 255, 200, 0.13) !important;
    color: var(--accent) !important;
}

.menuBtn {
	color: var(--text) !important;
}

.menuBtn:hover {
    color: var(--accent) !important;
}
	
#messageInput,
.messageInput {
    border: 1px solid rgba(0, 255, 200, 0.2) !important;
    background: rgba(4, 12, 18, 0.72) !important;
    color: var(--text) !important;
}

#messageInput::placeholder,
.messageInput::placeholder {
    color: #8d9ca9 !important;
}

#messageInput:focus,
.messageInput:focus {
    border-color: rgba(0, 255, 200, 0.35) !important;
    box-shadow: 0 0 0 0.22rem rgba(0, 255, 200, 0.12) !important;
    background: rgba(4, 12, 18, 0.88) !important;
    color: var(--text) !important;
}

#userList,
#colorDiv,
#gifPicker.card,
#uploadProgressWrapper.card {
    border: 1px solid rgba(0, 255, 200, 0.16) !important;
    background: rgba(7, 13, 21, 0.94) !important;
    box-shadow: var(--shadow-lg);
}

#typingIndicator.typing-bottom::before {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 255, 200, 0.16);
}

#dropOverlay {
    background: rgba(2, 8, 12, 0.75) !important;
    border: 1px dashed rgba(0, 255, 200, 0.45) !important;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.auth-card {
    width: min(1180px, 100%);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.auth-left,
.auth-panel {
    padding: 50px;
}

.auth-left {
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 255, 200, 0.08), transparent 25%),
        radial-gradient(circle at 85% 15%, rgba(0, 255, 200, 0.05), transparent 22%),
        rgba(4, 10, 16, 0.62);
}

.auth-panel {
    background: rgba(5, 8, 12, 0.56);
    border-left: 1px solid var(--border);
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 200, 0.18);
    background: rgba(0, 255, 200, 0.05);
    color: var(--accent);
    font-size: 0.82rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.auth-logo {
    font-size: clamp(2.2rem, 5.6vw, 4.2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    color: var(--accent);
    text-shadow: 0 0 16px rgba(0, 255, 200, 0.25);
    margin-bottom: 14px;
}

.auth-subtitle {
    color: var(--muted);
    font-size: clamp(0.96rem, 2.1vw, 1.1rem);
    margin-bottom: 22px;
}

.auth-headline {
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    line-height: 1.35;
    margin-bottom: 16px;
}

.auth-description {
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-brand img {
    height: 36px;
    width: auto;
}

.form-hint {
    color: var(--muted);
}

.auth-form {
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    padding: 26px;
}

.account-title {
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    margin-bottom: 0;
    color: var(--text);
    letter-spacing: 0.8px;
}

.auth-link {
    color: var(--accent);
}

.auth-link:hover {
    color: var(--text);
}

.footer-note {
    color: var(--muted);
    letter-spacing: 0.4px;
}

@media (max-width: 992px) {
    .auth-left,
    .auth-panel {
        padding: 34px 24px;
    }

    .auth-panel {
        border-left: 0;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 560px) {
    .auth-shell {
        padding: 24px 8px;
    }
}
.mail-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

#mailUnreadBadge {
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.35);
}
	
	
#chatLayout {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

#chatMain {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-radius: 0 !important;
}

/* Divider hat echte Breite für den Button */
.chat-sidebar-divider {
    position: relative;
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 40;
}

/* Die echte Trennlinie */
.chat-sidebar-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.12);
    pointer-events: none;
}

/* Sidebar */
.sidebar-wrap {
    position: relative;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    flex: 0 0 320px;
    transition:
        width 0.28s ease,
        min-width 0.28s ease,
        max-width 0.28s ease,
        flex-basis 0.28s ease;
    overflow: hidden;
}

.sidebar-wrap.collapsed {
    width: 0;
    min-width: 0;
    max-width: 0;
    flex: 0 0 0;
}

#sidebar {
    height: 100%;
    width: 100%;
    border-radius: 0 !important;
    overflow: hidden auto;
    transition: opacity 0.22s ease, transform 0.28s ease;
    opacity: 1;
    transform: translateX(0);
}

.sidebar-wrap.collapsed #sidebar {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

/* Toggle-Button */
#sidebarToggle {
    position: relative;
    width: 30px;
    height: 56px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: rgba(17, 24, 33, 0.98);
    color: #00ffc8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    z-index: 50;
    box-shadow: 0 0 18px rgba(0,255,200,0.10);
    padding: 0;
}

#sidebarToggle:hover {
    background: rgba(20, 30, 41, 1);
    border-color: rgba(0,255,200,0.26);
    box-shadow: 0 0 22px rgba(0,255,200,0.18);
}

#sidebarToggleIcon {
    font-size: 0.95rem;
    pointer-events: none;
}

/* Keine Rundungen */
#chat,
#chatMain,
#messages,
.messages,
#sidebar,
.sidebar,
#messageDiv,
#input-group,
.chat-inputbar {
    border-radius: 0 !important;
}

@media (max-width: 900px) {
    .sidebar-wrap {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
        flex: 0 0 260px;
    }
}
/* =========================================
   CHAT LAYOUT OVERRIDE
   überschreibt das alte fixed-Layout
========================================= */

#chat {
    position: relative;
    height: calc(100vh - 65px);
    overflow: hidden !important;
}

#chatLayout {
    position: absolute;
    inset: 0 0 110px 0; /* unten Platz für Inputbar */
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* Hauptbereich links */
#chatMain {
    position: relative;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Alte fixed-Regeln für Messages neutralisieren */
#messages,
.messages {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

/* Divider genau zwischen Chat und Sidebar */
.chat-sidebar-divider {
    position: relative !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    z-index: 50 !important;
}

.chat-sidebar-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: rgba(0, 255, 200, 0.14);
    pointer-events: none;
}

/* Toggle-Button mittig auf der Trennlinie */
#sidebarToggle {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 30px !important;
    height: 56px !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 999px !important;
    background: rgba(17, 24, 33, 0.98) !important;
    color: #00ffc8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 60 !important;
    box-shadow: 0 0 18px rgba(0,255,200,0.10) !important;
    padding: 0 !important;
}

#sidebarToggle:hover {
    background: rgba(20, 30, 41, 1) !important;
    border-color: rgba(0,255,200,0.26) !important;
    box-shadow: 0 0 22px rgba(0,255,200,0.18) !important;
}

#sidebarToggleIcon {
    font-size: 0.95rem;
    pointer-events: none;
}

/* Sidebar rechts */
.sidebar-wrap {
    position: relative !important;
    flex: 0 0 250px !important;
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 100% !important;
    overflow: hidden !important;
    transition:
        width 0.28s ease,
        min-width 0.28s ease,
        max-width 0.28s ease,
        flex-basis 0.28s ease !important;
}

/* Eingeklappte Sidebar */
.sidebar-wrap.collapsed {
    flex-basis: 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
}

/* Altes fixed-Sidebar-Layout neutralisieren */
#sidebar,
.sidebar {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    border-radius: 0 !important;
    border-left: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 8px !important;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.22s ease, transform 0.28s ease !important;
}

.sidebar-wrap.collapsed #sidebar {
    opacity: 0 !important;
    transform: translateX(20px) !important;
    pointer-events: none !important;
}

/* Chat soll beim Einklappen automatisch den Platz bekommen
   -> passiert durch flex:1 + sidebar flex-basis:0 */

/* Untere Leiste bleibt fixed */
#input-group,
#input-group.chat-inputbar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 110px !important;
    z-index: 1050 !important;
    border-radius: 0 !important;
}

/* Eingabefeld/Buttons bleiben unten wie bisher */
#messageDiv {
    position: fixed !important;
    left: 10px !important;
    right: 100px !important;
    bottom: 5px !important;
    height: 41px !important;
    z-index: 1051 !important;
    border-radius: 0 !important;
}

#btnDiv {
    position: fixed !important;
    right: 10px !important;
    bottom: 5px !important;
    width: 80px !important;
    height: 40px !important;
    z-index: 1051 !important;
}

#sendButton {
    position: fixed !important;
    right: 6px !important;
    bottom: 7px !important;
    width: 80px !important;
    height: 40px !important;
    z-index: 1052 !important;
}

/* Rundungen zwischen Chat + Sidebar entfernen */
#chat,
#chatMain,
#messages,
.messages,
#sidebar,
.sidebar,
#messageDiv,
#input-group,
.chat-inputbar {
    border-radius: 0 !important;
}

/* Mobile: Sidebar sowieso aus */
@media (max-width: 768px) {
    .chat-sidebar-divider,
    .sidebar-wrap {
        display: none !important;
    }

    #chatLayout {
        inset: 0 0 110px 0 !important;
    }

    #messages,
    .messages {
        right: 0 !important;
    }
}
/* =========================================
   FULLSCREEN CHAT OVERRIDE
========================================= */

/* Bootstrap-Container soll keinen Rand mehr erzeugen */
.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

/* Chat nimmt die ganze Fläche unter der Navbar ein */
#chat {
    position: fixed !important;
    top: 65px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 65px) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    z-index: 10;
}

/* Layout: Chatbereich + Divider + Sidebar */
#chatLayout {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 110px !important; /* Platz für Inputbar */
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* Hauptbereich */
#chatMain {
    position: relative !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Alte fixed-Regeln für Messages komplett neutralisieren */
#messages,
.messages {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    min-width: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 8px 8px 14px 8px !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

/* Divider genau zwischen Chat und Sidebar */
.chat-sidebar-divider {
    position: relative !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    z-index: 50 !important;
}

.chat-sidebar-line {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 1px !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 255, 200, 0.14) !important;
    pointer-events: none !important;
}

/* Toggle sitzt exakt auf der Trennlinie */
#sidebarToggle {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 30px !important;
    height: 56px !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 999px !important;
    background: rgba(17, 24, 33, 0.98) !important;
    color: #00ffc8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 60 !important;
    box-shadow: 0 0 18px rgba(0,255,200,0.10) !important;
    padding: 0 !important;
}

#sidebarToggle:hover {
    background: rgba(20, 30, 41, 1) !important;
    border-color: rgba(0,255,200,0.26) !important;
    box-shadow: 0 0 22px rgba(0,255,200,0.18) !important;
}

#sidebarToggleIcon {
    font-size: 0.95rem !important;
    pointer-events: none !important;
}

/* Sidebar rechts */
.sidebar-wrap {
    position: relative !important;
    flex: 0 0 250px !important;
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 100% !important;
    overflow: hidden !important;
    transition:
        width 0.28s ease,
        min-width 0.28s ease,
        max-width 0.28s ease,
        flex-basis 0.28s ease !important;
}

/* Wenn Sidebar ausgeblendet wird, bekommt Chat den Platz */
.sidebar-wrap.collapsed {
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
}

/* Alte fixed-Regeln für Sidebar neutralisieren */
#sidebar,
.sidebar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 8px !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: opacity 0.22s ease, transform 0.28s ease !important;
}

.sidebar-wrap.collapsed #sidebar {
    opacity: 0 !important;
    transform: translateX(18px) !important;
    pointer-events: none !important;
}

/* Untere Inputbar bleibt fix unten */
#input-group,
#input-group.chat-inputbar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 110px !important;
    z-index: 1050 !important;
    border-radius: 0 !important;
}

/* Eingabefeld + Sendebereich */
#messageDiv {
    position: fixed !important;
    left: 10px !important;
    right: 100px !important;
    bottom: 5px !important;
    height: 41px !important;
    z-index: 1051 !important;
    border-radius: 0 !important;
}

#btnDiv {
    position: fixed !important;
    right: 10px !important;
    bottom: 5px !important;
    width: 80px !important;
    height: 40px !important;
    z-index: 1051 !important;
}

#sendButton {
    position: fixed !important;
    right: 6px !important;
    bottom: 7px !important;
    width: 80px !important;
    height: 40px !important;
    z-index: 1052 !important;
}

/* Rundungen entfernen */
#chat,
#chatMain,
#messages,
.messages,
#sidebar,
.sidebar,
#messageDiv,
#input-group,
.chat-inputbar {
    border-radius: 0 !important;
}

/* Typing / neue Nachrichten sauber über dem Input */
#typingIndicator.typing-bottom {
    left: 14px !important;
    bottom: 85px !important;
}

#newMessageAlert {
    bottom: 90px !important;
}

/* Mobile: Sidebar aus */
@media (max-width: 768px) {
    .chat-sidebar-divider,
    .sidebar-wrap {
        display: none !important;
    }

    #chatLayout {
        bottom: 110px !important;
    }

    #messages,
    .messages {
        right: 0 !important;
    }
}
/* Toolbar Hintergrund */
.tox .tox-toolbar,
.tox .tox-toolbar__primary {
    background-color: #0b1a14 !important;
    border-bottom: 1px solid #00ff9f33 !important;
}

/* Buttons */
.tox .tox-tbtn {
    color: #00ff9f !important;
}

.tox .tox-tbtn:hover {
    background: rgba(0,255,159,0.15) !important;
}

/* Aktiver Button */
.tox .tox-tbtn--enabled,
.tox .tox-tbtn--active {
    background: rgba(0,255,159,0.25) !important;
    box-shadow: 0 0 8px #00ff9f55;
}

/* Editor Hintergrund */
.tox .tox-edit-area__iframe {
    background-color: #020806 !important;
}

/* Statusbar */
.tox .tox-statusbar {
    background-color: #0b1a14 !important;
    border-top: 1px solid #00ff9f33 !important;
}

/* Dropdowns */
.tox .tox-menu {
    background: #0b1a14 !important;
    border: 1px solid #00ff9f33 !important;
}

/* Hover in Menüs */
.tox .tox-collection__item--active {
    background: rgba(0,255,159,0.2) !important;
}
.tox .tox-edit-area__iframe {
    filter: drop-shadow(0 0 6px rgba(0,255,159,0.2));
}