﻿/* Custom Scrollbar */
html.autologin #auth-screen {
    display: none !important;
}

body.direct-profile-open {
    overflow: hidden;
}

html.direct-profile-open {
    overflow: hidden;
    scrollbar-width: none !important;
}

html.direct-profile-open::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

html.direct-profile-open #main-screen,
html.direct-profile-open #chat-list,
html.direct-profile-open #sidebar-chat-search-results,
html.direct-profile-open #search-results,
html.direct-profile-open #messages-area {
    overflow: hidden !important;
    scrollbar-width: none !important;
}

html.direct-profile-open #chat-list::-webkit-scrollbar,
html.direct-profile-open #sidebar-chat-search-results::-webkit-scrollbar,
html.direct-profile-open #search-results::-webkit-scrollbar,
html.direct-profile-open #messages-area::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

:root {
    --safe-area-inset-top: 0px;
    --safe-area-inset-right: 0px;
    --safe-area-inset-bottom: 0px;
    --safe-area-inset-left: 0px;
    --app-safe-top: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
    --app-safe-right: max(env(safe-area-inset-right, 0px), var(--safe-area-inset-right, 0px));
    --app-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));
    --app-safe-left: max(env(safe-area-inset-left, 0px), var(--safe-area-inset-left, 0px));
}

html.app-loading #app {
    visibility: hidden;
}

html.app-loading #autologin-splash {
    display: flex !important;
}

html.autologin #autologin-splash {
    display: flex !important;
}

/* Reserve the messenger shell during autologin to avoid a full-viewport shift. */
html.autologin #main-screen.hidden {
    display: flex !important;
    visibility: hidden;
    pointer-events: none;
}

.auth-splash {
    opacity: 1;
    transition: opacity 220ms ease;
}

.auth-splash.splash-hiding {
    opacity: 0;
}

/* Keep the auth and messenger screens stacked so state switches do not relayout the page. */
#auth-screen,
#main-screen {
    position: absolute;
    inset: var(--app-safe-top) var(--app-safe-right) var(--app-safe-bottom) var(--app-safe-left);
    width: 100%;
    transition: opacity 240ms ease, transform 240ms ease;
}

#auth-screen.auth-screen-hiding {
    opacity: 0;
    transform: scale(0.985);
}

#main-screen.main-screen-entering {
    opacity: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

.toggle-btn {
    background: #cbd5e1; /* slate-300 */
}

.dark .toggle-btn {
    background: #475569; /* slate-600 */
}

.toggle-btn.toggle-on {
    background: #22c55e; /* green-500 */
}

.dark .toggle-btn.toggle-on {
    background: #16a34a; /* green-600 */
}

.theme-choice {
    opacity: 0.84;
    transition: transform 180ms ease, opacity 180ms ease;
}

.theme-choice:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.theme-choice[data-selected="true"] {
    opacity: 1;
}

.theme-choice-preview {
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.45);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.theme-choice-radio {
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.theme-choice-radio-dot {
    transition: background-color 180ms ease, transform 180ms ease;
    transform: scale(0.7);
}

.theme-choice[data-selected="true"] .theme-choice-preview {
    border-color: #3b82f6;
    box-shadow: 0 18px 30px -20px rgba(59, 130, 246, 0.55);
    transform: translateY(-1px);
}

.theme-choice[data-selected="true"] .theme-choice-radio {
    border-color: #2563eb;
    background-color: rgba(191, 219, 254, 0.75);
    box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.45);
}

.theme-choice[data-selected="true"] .theme-choice-radio-dot {
    background-color: #2563eb;
    transform: scale(1);
}

.dark .theme-choice[data-selected="true"] .theme-choice-radio {
    background-color: rgba(30, 64, 175, 0.25);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.22);
}

.settings-theme-preview {
    display: none;
}

.settings-theme-preview-shell {
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.settings-theme-preview-chatbar,
.settings-theme-preview-composer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
}

.settings-theme-preview-chatbar {
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.72);
}

.settings-theme-preview-chatmeta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.settings-theme-preview-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.settings-theme-preview-name {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.settings-theme-preview-status,
.settings-theme-preview-time {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
}

.settings-theme-preview-messages {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 0.95rem 0.95rem;
}

.settings-theme-preview-message {
    max-width: 72%;
    border-radius: 1.1rem;
    padding: 0.62rem 0.8rem;
    font-size: 0.78rem;
    line-height: 1.25;
    box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.45);
}

.settings-theme-preview-message-in {
    background: rgba(255, 255, 255, 0.96);
    color: #334155;
    border-top-left-radius: 0.45rem;
}

.settings-theme-preview-message-out {
    align-self: flex-end;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-top-right-radius: 0.45rem;
}

.settings-theme-preview-message-small {
    max-width: 64%;
}

.settings-theme-preview-composer {
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.76);
}

.settings-theme-preview-dot,
.settings-theme-preview-send {
    flex: 0 0 auto;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    background: #cbd5e1;
}

.settings-theme-preview-input {
    flex: 1;
    height: 0.85rem;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.95);
}

.settings-theme-preview[data-theme-mode="dark"] .settings-theme-preview-shell {
    border-color: rgba(51, 65, 85, 0.95);
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    box-shadow: 0 18px 36px -28px rgba(2, 6, 23, 0.85);
}

.settings-theme-preview[data-theme-mode="dark"] .settings-theme-preview-chatbar,
.settings-theme-preview[data-theme-mode="dark"] .settings-theme-preview-composer {
    border-color: rgba(51, 65, 85, 0.95);
    background: rgba(15, 23, 42, 0.82);
}

.settings-theme-preview[data-theme-mode="dark"] .settings-theme-preview-name {
    color: #e2e8f0;
}

.settings-theme-preview[data-theme-mode="dark"] .settings-theme-preview-status,
.settings-theme-preview[data-theme-mode="dark"] .settings-theme-preview-time {
    color: #94a3b8;
}

.settings-theme-preview[data-theme-mode="dark"] .settings-theme-preview-message-in {
    background: rgba(30, 41, 59, 0.96);
    color: #e2e8f0;
}

.settings-theme-preview[data-theme-mode="dark"] .settings-theme-preview-dot,
.settings-theme-preview[data-theme-mode="dark"] .settings-theme-preview-send {
    background: #475569;
}

.settings-theme-preview[data-theme-mode="dark"] .settings-theme-preview-input {
    background: rgba(71, 85, 105, 0.95);
}

.settings-theme-selector {
    gap: 0.9rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.settings-theme-selector .theme-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0;
    background: transparent;
    opacity: 1;
    transform: none;
}

.settings-theme-selector .theme-choice:hover {
    transform: translateY(-1px);
}

.settings-theme-selector .theme-choice-preview {
    position: relative;
    --theme-choice-accent: rgba(163, 230, 53, 0.85);
    width: 5.5rem;
    padding: 0.5rem 0.5rem 0.85rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #fffaf0;
    box-shadow: 0 16px 30px -24px rgba(15, 23, 42, 0.45);
}

.settings-theme-selector .theme-choice-preview::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.45rem;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid var(--theme-choice-accent);
    background: transparent;
    box-sizing: border-box;
    transform: translateX(-50%);
    z-index: 2;
}

.settings-theme-selector .theme-choice-preview::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.67rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--theme-choice-accent);
    transform: translateX(-50%) scale(0.4);
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 2;
}

.settings-theme-selector .theme-choice-preview > div {
    border: 0;
    background: transparent;
}

#settings-modal .settings-theme-selector .theme-choice-preview,
#settings-modal .settings-theme-selector .theme-choice-preview > div {
    color: inherit !important;
}

#settings-modal .settings-theme-selector .theme-choice[data-theme-option="light"] .theme-choice-preview,
#settings-modal .settings-theme-selector .theme-choice[data-theme-option="light"] .theme-choice-preview > div,
#settings-modal .settings-theme-selector .theme-choice[data-theme-option="light"] .theme-choice-preview .overflow-hidden {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%) !important;
    border-color: rgba(226, 232, 240, 0.95) !important;
}

#settings-modal .settings-theme-selector .theme-choice[data-theme-option="dark"] .theme-choice-preview,
#settings-modal .settings-theme-selector .theme-choice[data-theme-option="dark"] .theme-choice-preview > div,
#settings-modal .settings-theme-selector .theme-choice[data-theme-option="dark"] .theme-choice-preview .overflow-hidden {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    border-color: rgba(51, 65, 85, 0.95) !important;
}

.settings-theme-selector .theme-choice-preview > div > div:first-child:not(.theme-choice-bubble) {
    display: none;
}

.settings-theme-selector .theme-choice-surface {
    position: relative;
    min-height: 4.5rem;
    border-radius: 0.8rem;
}

.settings-theme-selector .theme-choice-bubble {
    position: absolute;
    min-height: 0.48rem;
    border-radius: 0.24rem;
    box-shadow: none !important;
}

.settings-theme-selector .theme-choice-bubble-out {
    top: 0.8rem;
    right: 0.18rem;
    width: 1.55rem;
}

.settings-theme-selector .theme-choice-bubble-in {
    left: 0.18rem;
    bottom: 1.72rem;
    width: 1.8rem;
}

.settings-theme-selector .theme-choice-preview .space-y-2 {
    position: relative;
    min-height: 4.5rem;
    padding: 0.15rem 0.2rem 0.85rem;
}

.settings-theme-selector .theme-choice-preview .space-y-2 > div {
    position: absolute;
    border-radius: 0.28rem;
    box-shadow: none;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-shadow: none !important;
    min-height: 0.48rem;
}

.settings-theme-selector .theme-choice-preview .space-y-2 > div:first-child {
    top: 0.8rem;
    right: 0.18rem;
}

.settings-theme-selector .theme-choice-preview .space-y-2 > div:last-child {
    left: 0.18rem;
    bottom: 1.72rem;
}

.settings-theme-selector .theme-choice[data-theme-option="light"] .theme-choice-preview {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%) !important;
    border-color: rgba(226, 232, 240, 0.95) !important;
}

.settings-theme-selector .theme-choice[data-theme-option="light"] .theme-choice-surface {
    background: transparent !important;
    box-shadow: none !important;
}

.settings-theme-selector .theme-choice[data-theme-option="light"] .theme-choice-bubble-out {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.settings-theme-selector .theme-choice[data-theme-option="light"] .theme-choice-bubble-in {
    background: #ffffff !important;
    box-shadow: none !important;
}

.settings-theme-selector .theme-choice[data-theme-option="dark"] .theme-choice-preview {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    border-color: rgba(51, 65, 85, 0.95) !important;
}

.settings-theme-selector .theme-choice[data-theme-option="dark"] .theme-choice-preview {
    --theme-choice-accent: rgba(248, 180, 180, 0.85);
}

.settings-theme-selector .theme-choice[data-theme-option="dark"] .theme-choice-surface {
    background: transparent !important;
    box-shadow: none !important;
}

.settings-theme-selector .theme-choice[data-theme-option="dark"] .theme-choice-bubble-out {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.settings-theme-selector .theme-choice[data-theme-option="dark"] .theme-choice-bubble-in {
    background: #1e293b !important;
    box-shadow: none !important;
}

.settings-theme-selector .theme-choice-radio {
    display: none;
}

.settings-theme-selector .theme-choice > .mt-2.text-center {
    margin-top: 0;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 500;
}

.dark .settings-theme-selector .theme-choice > .mt-2.text-center {
    color: #e2e8f0;
}

.settings-theme-selector .theme-choice[data-selected="true"] > .mt-2.text-center {
    color: #60a5fa;
}

.settings-theme-selector .theme-choice[data-selected="true"] .theme-choice-preview {
    border-color: rgba(96, 165, 250, 0.95);
    box-shadow: 0 18px 32px -22px rgba(59, 130, 246, 0.4);
}

.settings-theme-selector .theme-choice[data-selected="true"] .theme-choice-preview::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

html.dark::-webkit-scrollbar-track,
html.dark body::-webkit-scrollbar-track,
html.dark *::-webkit-scrollbar-track {
    background: #0f172a;
}

html.dark::-webkit-scrollbar-thumb,
html.dark body::-webkit-scrollbar-thumb,
html.dark *::-webkit-scrollbar-thumb {
    background: #334155;
}

html.dark::-webkit-scrollbar-thumb:hover,
html.dark body::-webkit-scrollbar-thumb:hover,
html.dark *::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

html.dark {
    scrollbar-color: #334155 #0f172a;
}

.message-bubble {
    max-width: 70%;
    word-wrap: break-word;
}

#pinned-list,
#pinned-list > * {
    max-width: 100%;
}

.video-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
}

.recording-pulse {
    animation: pulse-red 1.5s infinite;
}

.recording-send-btn {
    opacity: 1;
    transform: scale(0.82);
    transform-origin: center;
    background: rgba(37, 99, 235, 0);
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
        background-color 300ms ease-out,
        box-shadow 320ms ease-out;
    will-change: transform, background-color, box-shadow;
}

.recording-send-btn i {
    color: #94a3b8;
    transform: scale(1);
    transition: color 260ms ease-out;
}

.dark .recording-send-btn i {
    color: #cbd5e1;
}

.recording-send-btn.recording-send-btn-visible {
    transform: scale(1);
    background: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

.recording-send-btn.recording-send-btn-visible i {
    color: #ffffff;
}

.recording-lock-target,
.recording-lock-handle {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.recording-lock-target {
    width: 42px;
    height: 42px;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.recording-lock-target.recording-lock-target-active {
    transform: scale(1.08);
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.5);
}

.recording-lock-handle {
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.call-pulse {
    animation: pulse-green 1.5s infinite;
}

@keyframes message-focus-pulse {
    0% {
        filter: brightness(1) saturate(1);
        transform: scale(1);
        box-shadow: 0 0 0 rgba(59, 130, 246, 0), inset 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        filter: brightness(1.12) saturate(1.08);
        transform: scale(1.015);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), 0 12px 28px rgba(59, 130, 246, 0.18), inset 0 0 0 999px rgba(255, 255, 255, 0.08);
    }

    100% {
        filter: brightness(1) saturate(1);
        transform: scale(1);
        box-shadow: 0 0 0 rgba(59, 130, 246, 0), inset 0 0 0 rgba(255, 255, 255, 0);
    }
}

.message-focus-pulse {
    animation: message-focus-pulse 0.7s ease-in-out 2;
    will-change: transform, filter, box-shadow;
}

.call-screen {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
/* Mini Call Widget */
.mini-call-widget {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#messages-area {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Disable red/green toast notifications */
#toast {
    display: none !important;
}

/* Dark theme helpers for injected chat items */
.dark #chat-list .text-slate-800 {
    color: #e2e8f0 !important;
}

.dark #chat-list .text-slate-500,
.dark #chat-list .text-slate-400 {
    color: #94a3b8 !important;
}

.dark #chat-list .border-slate-100 {
    border-color: #1f2937 !important;
}

.dark #chat-list .hover\:bg-slate-50:hover {
    background-color: #0f172a !important;
}

#settings-modal {
    --settings-section-slide-duration: 360ms;
    --settings-section-fade-duration: 320ms;
    pointer-events: none;
}

#settings-modal.settings-visible {
    pointer-events: auto;
}

#settings-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity var(--settings-section-slide-duration) ease;
}

#settings-modal.settings-visible #settings-backdrop {
    opacity: 1;
}

#settings-modal .settings-panel {
    position: relative;
    z-index: 1;
    transform: translateX(100%);
    transition: transform var(--settings-section-slide-duration) cubic-bezier(0.2, 0.9, 0.1, 1);
    will-change: transform;
}

#settings-modal.settings-visible .settings-panel {
    transform: translateX(0);
}

#settings-modal.settings-desktop-scale .settings-panel {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 220ms cubic-bezier(0.22, 0.9, 0.16, 1), opacity 220ms ease;
    will-change: transform, opacity;
}

#settings-modal.settings-desktop-scale.settings-visible .settings-panel {
    transform: scale(1);
    opacity: 1;
}

#settings-modal.settings-desktop-scale #settings-home,
#settings-modal.settings-desktop-scale #settings-home::after,
#settings-modal.settings-desktop-scale #settings-panels,
#settings-modal.settings-desktop-scale #settings-header .settings-header-home,
#settings-modal.settings-desktop-scale #settings-header .settings-header-detail {
    transition: none !important;
    animation: none !important;
}

#settings-modal.settings-desktop-scale #settings-body {
    overflow-y: auto;
}

#settings-modal.settings-desktop-scale #settings-panels {
    position: relative;
    inset: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
    flex: 1;
    min-height: 0;
}

#settings-modal.settings-desktop-scale #settings-panels.panels-open {
    display: flex;
    flex-direction: column;
}

#settings-modal.settings-desktop-scale.settings-detail-open #settings-home {
    display: none;
}

#settings-modal.settings-desktop-scale.settings-detail-open #settings-body {
    padding: 0 !important;
}

#settings-modal.settings-desktop-scale #settings-detail {
    height: auto;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#settings-modal.settings-desktop-scale #settings-detail .settings-panel-layer {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 24px 24px;
    box-sizing: border-box;
    flex: 1 1 auto;
}

#settings-modal.settings-desktop-scale #settings-detail .settings-section {
    min-height: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#settings-modal.settings-desktop-scale #settings-detail .settings-section > .flex,
#settings-modal.settings-desktop-scale #settings-detail .settings-section > .grid,
#settings-modal.settings-desktop-scale #settings-detail .settings-section > .w-full,
#settings-modal.settings-desktop-scale #settings-detail .settings-section > .language-option,
#settings-modal.settings-desktop-scale #settings-detail .settings-section > button,
#settings-modal.settings-desktop-scale #settings-detail .settings-section > a {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#settings-modal.settings-desktop-scale #settings-detail [data-settings-category="devices"],
#settings-modal.settings-desktop-scale #settings-detail [data-settings-category="limits"] {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

#settings-modal.settings-desktop-scale #settings-detail [data-settings-category="help"] .-mx-6 {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    background: transparent !important;
}

#settings-body::-webkit-scrollbar {
    width: 6px;
}

#settings-body::-webkit-scrollbar-track {
    background: transparent;
}

#settings-body::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 999px;
}

.dark #settings-body::-webkit-scrollbar-thumb {
    background: #374151;
}

#settings-body {
    scrollbar-width: thin;
    scrollbar-color: #4b5563 transparent;
}

.dark #settings-body {
    scrollbar-color: #374151 transparent;
}

#direct-profile-modal-scroll-clip {
    overflow: hidden;
}

#direct-profile-modal-panel {
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: calc(100% + 18px);
    padding-right: 18px;
    box-sizing: content-box;
}

#direct-profile-modal-panel::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

#settings-body {
    background: transparent;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#settings-modal.settings-detail-open #settings-body {
    padding: 0 !important;
}

#settings-home {
    position: relative;
    isolation: isolate;
    overflow-y: auto;
    height: 100%;
    filter: brightness(1);
    transition: transform var(--settings-section-slide-duration) cubic-bezier(0.2, 0.9, 0.1, 1), opacity var(--settings-section-fade-duration) ease, filter var(--settings-section-fade-duration) ease;
    will-change: transform, opacity, filter;
}

#settings-home::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--settings-section-fade-duration) ease;
}

#settings-modal.settings-opening #settings-home {
    transform: translateX(-16px);
    opacity: 0.68;
    filter: brightness(0.58);
}

#settings-modal.settings-opening #settings-home::after {
    opacity: 1;
}

#settings-modal.settings-closing #settings-home {
    animation: settingsHomeUndim var(--settings-section-slide-duration) cubic-bezier(0.2, 0.9, 0.1, 1) forwards;
}

#settings-modal.settings-closing #settings-home::after {
    animation: settingsHomeOverlayUndim var(--settings-section-slide-duration) ease forwards;
}

#settings-modal.settings-detail-open #settings-home {
    padding: 24px;
}

#settings-panels {
    position: absolute;
    inset: 0;
    background: inherit;
    transform: translateX(100%);
    opacity: 0;
    transition: transform var(--settings-section-slide-duration) cubic-bezier(0.2, 0.9, 0.1, 1), opacity var(--settings-section-fade-duration) ease, background-color var(--settings-section-fade-duration) ease;
    pointer-events: none;
}

#settings-panels.panels-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

#settings-detail {
    background: inherit;
    position: relative;
    height: 100%;
}

#settings-panels.language-mode {
    background: #f1f5f9;
}

.dark #settings-panels.language-mode {
    background: #1f2937;
}

#settings-modal.settings-desktop-scale #settings-panels.language-mode,
.dark #settings-modal.settings-desktop-scale #settings-panels.language-mode {
    background: inherit;
}

#settings-detail.language-mode {
    height: 100%;
}

#settings-panels.language-mode #settings-detail {
    height: 100%;
}

#settings-detail .settings-panel-layer {
    position: absolute;
    inset: 0;
    height: 100%;
    overflow-y: auto;
    padding: 16px;
    background: inherit;
}

#settings-modal.settings-no-animation #settings-backdrop,
#settings-modal.settings-no-animation .settings-panel,
#settings-modal.settings-no-animation #settings-home,
#settings-modal.settings-no-animation #settings-home::after,
#settings-modal.settings-no-animation #settings-panels,
#settings-modal.settings-no-animation #settings-header .settings-header-home,
#settings-modal.settings-no-animation #settings-header .settings-header-detail {
    transition: none !important;
    animation: none !important;
}

#settings-modal.settings-no-animation .settings-panel {
    transform: none;
}

#settings-modal.settings-no-animation #settings-body {
    overflow-y: auto;
    padding: 12px !important;
}

#settings-modal.settings-no-animation #settings-panels {
    position: relative;
    inset: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
}

#settings-modal.settings-no-animation #settings-panels.panels-open {
    display: block;
}

#settings-modal.settings-no-animation #settings-detail {
    height: auto;
}

#settings-modal.settings-no-animation #settings-detail .settings-panel-layer {
    position: relative;
    inset: auto;
    height: auto;
    overflow-y: visible;
    padding: 12px;
}

#settings-modal.settings-no-animation #settings-home {
    height: auto;
    overflow-y: visible;
}

#settings-modal.settings-no-animation.settings-detail-open #settings-home {
    display: none;
}

#settings-modal.settings-no-animation.settings-detail-open #settings-body {
    padding: 0 !important;
}

#settings-modal.settings-no-animation #settings-profile-summary {
    display: none;
}

#settings-modal.settings-no-animation #settings-main-list {
    margin-top: 0;
}

#settings-header {
    position: relative;
    z-index: 20;
    background: inherit;
    padding-top: calc(var(--app-safe-top) + 0.35rem);
}

#settings-header .settings-header-viewport {
    position: relative;
    overflow: hidden;
}

#settings-header .settings-header-view {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: inherit;
}

#settings-header .settings-header-side {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

#settings-header .settings-header-home {
    position: relative;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 160ms ease;
}

#settings-header .settings-header-detail {
    position: absolute;
    inset: 0;
    transform: translateX(100%);
    pointer-events: none;
    opacity: 1;
    transition: transform var(--settings-section-slide-duration) cubic-bezier(0.2, 0.9, 0.1, 1);
    will-change: transform;
}

#settings-header.settings-detail-active .settings-header-home {
    pointer-events: none;
    opacity: 0;
}

#settings-header.settings-detail-active .settings-header-detail {
    pointer-events: auto;
    transform: translateX(0);
}

#settings-profile-menu {
    z-index: 40;
    opacity: 0;
    transform: scale(0.96);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 140ms ease, transform 180ms ease;
    max-width: min(12rem, calc(100vw - 1rem));
}

#settings-profile-menu {
    top: calc(var(--app-safe-top) + 1rem) !important;
}

#settings-profile-menu.menu-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#settings-profile-menu.menu-open .menu-item {
    opacity: 0;
    transform: translateY(-4px);
    animation: settingsMenuItemIn 160ms ease forwards;
}

#settings-profile-menu.menu-open .menu-item:nth-child(1) {
    animation-delay: 40ms;
}

#settings-profile-menu.menu-open .menu-item:nth-child(2) {
    animation-delay: 90ms;
}

#quick-menu {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 140ms ease, transform 180ms ease;
}

#quick-menu.menu-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#quick-menu.menu-open .menu-item {
    opacity: 0;
    transform: translateY(-4px);
    animation: settingsMenuItemIn 160ms ease forwards;
}

#quick-menu.menu-open .menu-item:nth-child(1) {
    animation-delay: 40ms;
}

#quick-menu.menu-open .menu-item:nth-child(2) {
    animation-delay: 90ms;
}

@keyframes settingsHomeUndim {
    from {
        transform: translateX(-16px);
        opacity: 0.68;
        filter: brightness(0.58);
    }
    to {
        transform: translateX(0);
        opacity: 1;
        filter: brightness(1);
    }
}

@keyframes settingsHomeOverlayUndim {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes settingsMenuItemIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dark #search-results .border-slate-100 {
    border-color: #1f2937 !important;
}

.dark #search-results .hover\:bg-slate-50:hover {
    background-color: #1e293b !important;
}

.dark #search-results .text-slate-800 {
    color: #e2e8f0 !important;
}

.dark #search-results .text-slate-500 {
    color: #94a3b8 !important;
}

#search-results {
    position: relative;
}

#search-results [data-search-result-type] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#search-results.search-results-empty {
    padding: 0;
    overflow: hidden;
}

#search-results.search-results-empty .search-empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    transform: translateY(-6%);
}

#search-results.search-results-empty .search-empty-state__label {
    color: #0f172a;
    font-size: clamp(1.45rem, 3.6vw, 1.85rem);
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

.dark #search-results.search-results-empty .search-empty-state__label {
    color: #ffffff;
}

html.android-web .animate-pulse,
html.android-web .call-pulse,
html.android-web .recording-pulse {
    animation-duration: 2.4s !important;
}

html.android-web {
    --settings-section-slide-duration: 220ms;
    --settings-section-fade-duration: 180ms;
}

html.android-web .message-focus-pulse {
    animation: none !important;
}

html.android-web .auth-splash,
html.android-web #auth-screen,
html.android-web #main-screen,
html.android-web #quick-menu,
html.android-web #quick-menu-drawer,
html.android-web #sidebar-panel,
html.android-web #search-panel-backdrop,
html.android-web #chat-search-bar,
html.android-web #chat-search-bar > *,
html.android-web #message-context-menu,
html.android-web #message-context-menu button,
html.android-web #chat-options-menu,
html.android-web #chat-options-menu button {
    will-change: auto !important;
}

html.android-web #quick-menu,
html.android-web #quick-menu-drawer,
html.android-web #sidebar-panel {
    transition: transform 160ms ease-out !important;
}

html.android-web #message-context-menu,
html.android-web #chat-options-menu {
    transform: translateY(-4px) !important;
    transition: opacity 120ms ease, transform 120ms ease !important;
}

html.android-web #message-context-menu.menu-open,
html.android-web #chat-options-menu.menu-open {
    transform: translateY(0) !important;
}

html.android-web #message-context-menu button,
html.android-web #chat-options-menu button {
    transform: none !important;
    transition: opacity 100ms ease !important;
}

html.android-web #pinned-bar,
html.android-web #video-preview-container > div:last-child {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.dark #chat-list .bg-blue-50 {
    background-color: rgba(37, 99, 235, 0.15) !important;
}

.dark #chat-list .border-l-blue-600 {
    border-left-color: #60a5fa !important;
}

.dark #message-context-menu {
    background-color: #0f172a !important;
    border-color: #1f2937 !important;
}

.no-theme-transition *,
.no-theme-transition *::before,
.no-theme-transition *::after {
    transition: none !important;
}

.search-field {
    transform: translateX(18px) scaleX(0.08);
    opacity: 0.18;
    filter: blur(2px);
    transform-origin: right center !important;
    transition: transform 560ms cubic-bezier(0.16, 0.9, 0.1, 1), opacity 360ms ease-out, filter 380ms ease-out;
    will-change: transform, opacity, filter;
}

#search-panel-header {
    position: relative;
}

body.search-open .search-field {
    filter: blur(0);
    transform: scaleX(1);
    opacity: 1;
    transition: transform 240ms cubic-bezier(0.2, 0.9, 0.1, 1), opacity 180ms ease-out, filter 180ms ease-out;
}

#search-panel-brand {
    position: absolute;
    left: 52px;
    top: 50%;
    max-width: 160px;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-50%) translateX(-8px);
    transition: opacity 220ms ease, transform 220ms ease;
}

body.search-closing #search-panel-brand {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

body.search-closing .search-field {
    filter: blur(0);
    transform: translateX(8px) scaleX(0.82);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms cubic-bezier(0.22, 0.9, 0.16, 1), opacity 220ms ease;
}

.search-field input {
    transform-origin: right center;
}

html.android-web .search-field {
    filter: none;
    transform: none;
    opacity: 1;
    transition: opacity 120ms ease;
    will-change: auto;
}

html.android-web body.search-open .search-field {
    filter: none;
    transform: none;
    opacity: 1;
    transition: opacity 120ms ease;
}

html.android-web body.search-closing .search-field {
    filter: none;
    transform: none;
    transition: opacity 120ms ease;
}

#search-panel-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

body.search-open #search-panel-backdrop {
    opacity: 1;
    pointer-events: auto;
}

#search-panel {
    background-color: #f8fafc !important;
    overflow: hidden;
    isolation: isolate;
    inset: 0;
}

.dark #search-panel {
    background-color: #0f172a !important;
}

#search-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 72px;
    background: #f8fafc;
    opacity: 0;
    transform: translateX(48px);
    transition: transform 220ms cubic-bezier(0.2, 0.9, 0.1, 1), opacity 220ms ease;
    z-index: 0;
    pointer-events: none;
}

.dark #search-panel::before {
    background: #0f172a;
}

html.android-web #search-panel::before,
html.android-web #search-body::before,
html.android-web #open-search-btn i,
html.android-web #open-quick-menu i {
    filter: none !important;
    will-change: auto !important;
}

html.android-web #search-panel::before {
    transform: translateX(0);
    transition: opacity 120ms ease;
}

#search-panel > * {
    position: relative;
    z-index: 1;
}

#search-body {
    position: relative;
    overflow: hidden;
    background-color: #f8fafc;
    height: calc(100dvh - 72px - var(--app-safe-top) - var(--app-safe-bottom));
}

.dark #search-body {
    background-color: #0f172a;
}

#search-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #f8fafc;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: center center;
    transition: transform 220ms cubic-bezier(0.22, 0.9, 0.16, 1), opacity 220ms ease;
    z-index: 0;
    pointer-events: none;
}

.dark #search-body::before {
    background: #0f172a;
}

#search-body > * {
    position: relative;
    z-index: 1;
}

body.search-open #search-body::before {
    opacity: 1;
    transform: scaleY(1);
}

html.android-web #search-body::before {
    transform: none;
    transition: opacity 120ms ease;
}

#search-panel.search-results-closing #search-body::before {
    opacity: 0;
    transform: translateY(50%) scaleY(0.08);
    transition: transform 220ms cubic-bezier(0.22, 0.9, 0.16, 1), opacity 220ms ease;
}

html.android-web .shadow-2xl,
html.android-web .shadow-xl,
html.android-web .shadow-lg {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18) !important;
}

body.search-open #search-panel::before {
    opacity: 1;
    transform: translateX(0);
    transition: transform 220ms cubic-bezier(0.2, 0.9, 0.1, 1), opacity 220ms ease;
}

#quick-menu-drawer {
    top: var(--app-safe-top);
    bottom: var(--app-safe-bottom);
    left: 0;
    height: auto;
    padding-top: calc(1.25rem + var(--app-safe-top));
    padding-bottom: calc(1.25rem + var(--app-safe-bottom));
}

#mini-call-widget {
    top: var(--app-safe-top);
}

#toast {
    top: calc(var(--app-safe-top) + 1rem);
    right: calc(var(--app-safe-right) + 1rem);
}

#open-search-btn {
    transition: opacity 360ms ease, transform 560ms cubic-bezier(0.16, 0.9, 0.1, 1), filter 360ms ease;
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

#open-search-btn i {
    display: inline-block;
    transform: translateX(-2px) scale(1.12);
    transform-origin: center center;
}

body.search-open #open-search-btn {
    opacity: 0;
    filter: blur(2px);
    transform: translateX(8px) scale(0.22);
    pointer-events: none;
    transition: opacity 220ms ease, transform 240ms cubic-bezier(0.2, 0.9, 0.1, 1), filter 220ms ease;
}

body.search-closing #open-search-btn {
    opacity: 0;
    filter: blur(2px);
    transform: translateX(8px) scale(0.22);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms cubic-bezier(0.2, 0.9, 0.1, 1), filter 220ms ease;
}

html.android-web #open-search-btn {
    transition: opacity 120ms ease !important;
    will-change: auto !important;
}

html.android-web body.search-open #open-search-btn,
html.android-web body.search-closing #open-search-btn {
    filter: none !important;
    transform: none !important;
    opacity: 0 !important;
}

body.search-closing #close-search-btn {
    color: rgb(15 23 42);
}

.dark body.search-closing #close-search-btn,
.dark body.search-closing #close-search-btn:hover {
    color: #ffffff;
}

body.search-closing #close-search-btn:hover {
    color: rgb(15 23 42);
}

@media (min-width: 768px) {
    #search-panel {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    #search-body {
        height: 100%;
    }

    body.search-closing #close-search-btn {
        color: rgb(15 23 42);
    }

    .dark body.search-closing #close-search-btn {
        color: rgb(241 245 249);
    }
}

@media (max-width: 767px) {
    #search-panel-header {
        padding-top: 0.5rem !important;
        padding-bottom: 1rem !important;
    }

    #search-panel::before {
        height: 60px;
    }

    #search-body {
        height: calc(100dvh - 60px - var(--app-safe-bottom));
    }
}

#open-quick-menu i {
    transition: transform 180ms ease, opacity 180ms ease;
}

#open-quick-menu .fa-bars {
    display: inline-block;
    transform: translateX(-1px);
    transform-origin: center center;
}

    .dark #message-context-menu button {
        color: #e2e8f0 !important;
    }

        .dark #message-context-menu button:hover {
            background-color: #1e293b !important;
        }

.dark .message-bubble.bg-white {
    background-color: #0f172a !important;
    border-color: #1f2937 !important;
    color: #e2e8f0 !important;
}

/* Mobile-only adjustments */
@media (max-width: 767px) {
    #main-screen {
        max-width: 100% !important;
        border-left: none !important;
        border-right: none !important;
    }

    #chat-panel,
    #active-chat-container {
        width: 100% !important;
    }

    #messages-area {
        padding: 12px !important;
    }

    #message-composer,
    #channel-post-composer {
        padding-bottom: calc(1rem + max(var(--app-safe-bottom), 16px)) !important;
    }

    #channel-subscribe-bar {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    #scroll-bottom-btn {
        bottom: calc(5.5rem + max(var(--app-safe-bottom), 16px)) !important;
    }

    .message-bubble {
        max-width: 85% !important;
    }
}

/* Dark theme fixes */
.dark #main-screen {
    background-color: #0f172a !important;
    border-color: #1f2937 !important;
}

/* Mobile quick menu drawer */
@media (max-width: 768px) {
    #quick-menu {
        transform: translateX(-100%);
        transition: transform 260ms cubic-bezier(0.2, 0.9, 0.1, 1);
        will-change: transform;
    }

    body.menu-open #quick-menu-drawer {
        transform: translateX(0);
    }

    #quick-menu-drawer {
        transform: translateX(-100%);
        transition: transform 260ms cubic-bezier(0.2, 0.9, 0.1, 1);
        will-change: transform;
    }

    body.menu-open #sidebar-panel {
        transform: translateX(12vw);
        transition: transform 260ms cubic-bezier(0.2, 0.9, 0.1, 1);
    }

    #sidebar-panel {
        transition: transform 260ms cubic-bezier(0.2, 0.9, 0.1, 1);
        will-change: transform;
    }

    body.search-open #sidebar-panel {
        z-index: 64;
        transform: none;
    }

    body.search-open #search-panel {
        z-index: 65;
    }

    body.search-open #search-panel-backdrop {
        pointer-events: none;
    }

    body.menu-open {
        overflow: hidden;
    }
}

.dark #sidebar-panel {
    background-color: #0f172a !important;
    border-color: #1f2937 !important;
}

#quick-menu-profile-bar {
    background-color: #e5e7eb !important;
    min-height: 152px;
}

.dark #quick-menu-profile-bar {
    background-color: #0b1220 !important;
    border-color: #1e293b !important;
}

    .dark #sidebar-panel .bg-white {
        background-color: #0f172a !important;
    }

.dark #chat-list .border-slate-100,
.dark #chat-list .border-slate-200 {
    border-color: #1f2937 !important;
}

.dark #chat-list .hover\:bg-slate-50:hover {
    background-color: #0b1220 !important;
}

.dark #chat-list .bg-blue-50 {
    background-color: rgba(37, 99, 235, 0.2) !important;
}

.dark #chat-list .border-l-blue-600 {
    border-left-color: #60a5fa !important;
}

.dark #chat-panel {
    background-color: #0f172a !important;
}

.dark #chat-search-bar,
.dark #active-chat-container .bg-white {
    background-color: #0f172a !important;
}

#chat-search-bar {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    z-index: 25;
    overflow: hidden;
    transform-origin: top center;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    border-bottom-width: 0;
    border-bottom-style: solid;
    border-bottom-color: #e2e8f0;
    opacity: 0;
    transform: translateY(-18px);
    pointer-events: none;
    will-change: max-height, transform, opacity;
    box-shadow: 0 18px 34px -26px rgba(15, 23, 42, 0.45);
    transition: max-height 220ms ease, padding-top 220ms ease, padding-bottom 220ms ease, border-bottom-width 220ms ease, opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

#chat-search-bar > * {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 150ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.android-web #chat-search-bar {
    transform: none;
    box-shadow: none;
    transition: max-height 160ms ease, padding-top 160ms ease, padding-bottom 160ms ease, border-bottom-width 160ms ease, opacity 120ms ease !important;
}

html.android-web #chat-search-bar > * {
    transform: none;
    transition: opacity 100ms ease !important;
}

#chat-search-bar.chat-search-open {
    max-height: 5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom-width: 1px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#chat-search-bar.chat-search-open > * {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    #chat-search-bar,
    #chat-search-bar > * {
        transition: none;
    }
}

.dark #active-chat-container .border-slate-200,
.dark #active-chat-container .border-slate-800,
.dark #active-chat-container .border-slate-100 {
    border-color: #1f2937 !important;
}

.dark #chat-search-bar {
    border-bottom-color: #1f2937;
    box-shadow: 0 18px 34px -26px rgba(2, 6, 23, 0.85);
}

.dark #message-form .bg-slate-100 {
    background-color: #1e293b !important;
    border-color: #1f2937 !important;
}

.dark #message-input {
    color: #e2e8f0 !important;
}

.dark #message-context-menu {
    background-color: #0f172a !important;
    border-color: #1f2937 !important;
}

.dark .message-bubble.bg-white {
    background-color: #0f172a !important;
    border-color: #1f2937 !important;
    color: #e2e8f0 !important;
}

.dark #settings-modal .bg-white {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

.dark #settings-modal .border-slate-200 {
    border-color: #1f2937 !important;
}


