/* ==========================================================================
   AnonChat — World-Class Instagram Dark Theme
   Fully Responsive for Desktop, Tablet, and Mobile
   ========================================================================== */

:root {
    --bg-base: #000000;
    --bg-surface: #121212;
    --bg-elevated: #1e1e1e;
    --bg-input: #262626;
    --border-color: #262626;
    --border-subtle: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #a8a8a8;
    --text-muted: #737373;
    --accent-blue: #0095f6;
    --accent-blue-hover: #1877f2;
    --accent-green: #00ba7c;
    --error-red: #ed4956;
    --insta-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --sidebar-width: 245px;
    --sidebar-collapsed-width: 72px;
    --feed-width: 380px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea {
    font-family: inherit;
    border: none;
    background: none;
    color: inherit;
    outline: none;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   Single Page Application Shell
   ========================================================================== */
#app-root {
    width: 100vw;
    height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   Full Auth & Landing Page (Instagram Dual-Card & Showcase)
   ========================================================================== */
.auth-page-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 24px;
    background-color: var(--bg-base);
    overflow-y: auto;
}

.auth-showcase-phone {
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame {
    width: 290px;
    height: 560px;
    border: 9px solid #262626;
    border-radius: 42px;
    background: #0d0d0d;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 255, 255, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-notch {
    width: 90px;
    height: 18px;
    background: #262626;
    border-radius: 0 0 12px 12px;
    margin: 0 auto;
    z-index: 2;
}

.phone-screen {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.phone-chat-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.phone-chat-preview-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.phone-chat-preview-input {
    background: var(--bg-input);
    border-radius: 16px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-forms-stack {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-card {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px 32px 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.auth-switch-card {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.auth-link-btn {
    color: var(--accent-blue);
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}
.auth-link-btn:hover {
    text-decoration: underline;
}

.auth-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.45;
    margin-top: 14px;
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 10px 0;
    width: 100%;
}
.sep-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}
.sep-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.auth-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--accent-green);
    margin-top: 6px;
}

@media (max-width: 860px) {
    .auth-showcase-phone {
        display: none;
    }
}

.auth-logo {
    font-size: 2.4rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    background: var(--insta-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    text-align: center;
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-input-group {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    transition: border-color 0.2s;
}

.auth-input-group:focus-within {
    border-color: var(--text-secondary);
}

.auth-input-group input {
    width: 100%;
    font-size: 14px;
    color: var(--text-primary);
}

.auth-btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 13px;
    border-radius: 8px;
    margin-top: 6px;
    transition: background 0.2s;
}

.auth-btn-primary:hover {
    background-color: var(--accent-blue-hover);
}

.auth-btn-secondary {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: background 0.2s;
}

.auth-btn-secondary:hover {
    background-color: var(--bg-input);
}

.auth-error-msg {
    color: var(--error-red);
    font-size: 13px;
    text-align: center;
    margin-top: 4px;
    display: none;
}

/* ==========================================================================
   Main App Container (Authenticated)
   ========================================================================== */
.main-layout {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Desktop Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background-color: var(--bg-base);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 12px 20px 12px;
    flex-shrink: 0;
    transition: width 0.2s ease;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 28px 12px;
    cursor: pointer;
}

.sidebar-logo span {
    font-size: 1.45rem;
    font-weight: 800;
    font-style: italic;
    background: var(--insta-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
    position: relative;
    user-select: none;
}

.nav-item:hover {
    background-color: var(--bg-elevated);
}

.nav-item.active {
    font-weight: 700;
}

.nav-item.active svg {
    stroke-width: 2.6;
}

.nav-badge {
    position: absolute;
    right: 12px;
    background-color: var(--error-red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    display: none;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.user-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.user-mini-card:hover {
    background-color: var(--bg-elevated);
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-mini-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-mini-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-mini-handle {
    font-size: 11px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Center Stage: Master & Detail Pane
   -------------------------------------------------------------------------- */
.main-content-pane {
    flex: 1;
    height: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Left Sub-Column (Feed / Conversations List) */
.conversations-pane {
    width: var(--feed-width);
    height: 100%;
    background-color: var(--bg-base);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.conversations-header {
    padding: 20px 20px 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversations-header h2 {
    font-size: 19px;
    font-weight: 700;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background 0.15s;
}

.btn-icon:hover {
    background-color: var(--bg-elevated);
}

/* Stories Tray on Top of Chats */
.stories-section {
    padding: 10px 16px 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.stories-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.stories-carousel::-webkit-scrollbar {
    display: none;
}

.story-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    width: 64px;
}

.story-ring {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--insta-gradient);
    padding: 2.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-ring.own-story {
    background: none;
    border: 2px dashed var(--accent-blue);
    padding: 0;
}

.story-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 2px solid var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
}

.story-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-label {
    font-size: 11px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

/* Conversation Search */
.conversations-search {
    padding: 12px 18px;
}

.search-input-box {
    background-color: var(--bg-input);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: var(--text-muted);
}

.search-input-box input {
    width: 100%;
    font-size: 13px;
    color: var(--text-primary);
}

/* Conversation Items List */
.conversations-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.conversation-item:hover {
    background-color: var(--bg-surface);
}

.conversation-item.active {
    background-color: var(--bg-elevated);
}

.conv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.conv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conv-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: var(--accent-green);
    border: 2px solid var(--bg-base);
}

.conv-details {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.conv-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conv-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-time {
    font-size: 11px;
    color: var(--text-muted);
}

.conv-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conv-snippet {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-unread-pill {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Right Main Column: Active Chat Window
   -------------------------------------------------------------------------- */
.chat-window {
    flex: 1;
    height: 100%;
    background-color: var(--bg-surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.chat-header {
    height: 64px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-surface);
    flex-shrink: 0;
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.chat-back-btn {
    display: none;
    margin-right: 4px;
}

.chat-header-title {
    font-size: 15px;
    font-weight: 700;
}

.chat-header-status {
    font-size: 11px;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-header-actions button {
    color: var(--text-primary);
    transition: opacity 0.15s;
}

.chat-header-actions button:hover {
    opacity: 0.7;
}

/* Messages Area */
.chat-messages-scroll {
    flex: 1;
    padding: 24px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-date-separator {
    text-align: center;
    margin: 14px 0;
}

.chat-date-separator span {
    font-size: 11px;
    color: var(--text-muted);
    background-color: var(--bg-elevated);
    padding: 4px 12px;
    border-radius: 12px;
}

.message-row {
    display: flex;
    gap: 8px;
    max-width: 70%;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-row.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-row.received {
    align-self: flex-start;
}

.message-bubble {
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
    position: relative;
}

.message-row.sent .message-bubble {
    background-color: var(--accent-blue);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.message-row.received .message-bubble {
    background-color: var(--bg-input);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 10px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    opacity: 0.8;
}

/* Chat Input Bar */
.chat-input-bar {
    padding: 16px 24px;
    background-color: var(--bg-surface);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.chat-input-container {
    flex: 1;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 12px;
    transition: border-color 0.2s;
}

.chat-input-container:focus-within {
    border-color: var(--text-muted);
}

.chat-input-container input {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.chat-input-action {
    color: var(--text-secondary);
    transition: color 0.15s;
}
.chat-input-action:hover {
    color: var(--text-primary);
}

.chat-send-btn {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 14px;
    padding: 4px 8px;
    transition: opacity 0.15s;
}

.chat-send-btn:hover {
    opacity: 0.8;
}

/* Empty State Window (When no chat is selected) */
.empty-chat-state {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.empty-chat-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.empty-chat-title {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-chat-desc {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 320px;
    margin-bottom: 24px;
    line-height: 1.4;
}

.empty-chat-btn {
    background-color: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Sub-Views (Friends, Profile, Settings)
   -------------------------------------------------------------------------- */
.view-container {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 32px 40px;
    background-color: var(--bg-surface);
}

.view-header {
    margin-bottom: 28px;
}
.view-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}
.view-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Friends / Search View */
.search-users-box {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    margin-bottom: 24px;
}
.search-users-box input {
    flex: 1;
    font-size: 14px;
}

.tabs-nav {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}
.tab-btn {
    padding: 10px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
}
.tab-btn.active {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.user-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.user-card-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.user-card-actions {
    display: flex;
    gap: 10px;
}
.btn-sm-primary {
    background-color: var(--accent-blue);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 6px;
}
.btn-sm-secondary {
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 6px;
}

/* Profile View */
.profile-card-top {
    display: flex;
    align-items: center;
    gap: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}
.profile-avatar-large {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: var(--bg-input);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-handle {
    font-size: 22px;
    font-weight: 600;
}
.profile-name {
    font-size: 15px;
    font-weight: 600;
}
.profile-bio {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.4;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    max-width: 440px;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.form-group input, .form-group textarea {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
}

/* Settings View */
.settings-section-card {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    max-width: 600px;
}
.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.settings-row:last-child {
    border-bottom: none;
}
.toggle-switch {
    width: 44px;
    height: 24px;
    background-color: var(--bg-input);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}
.toggle-switch.active {
    background-color: var(--accent-blue);
}
.toggle-knob {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}
.toggle-switch.active .toggle-knob {
    transform: translateX(20px);
}

/* --------------------------------------------------------------------------
   Mobile Navigation Bars
   -------------------------------------------------------------------------- */
.mobile-top-bar {
    display: none;
    height: 52px;
    background-color: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.mobile-bottom-bar {
    display: none;
    height: 54px;
    background-color: var(--bg-base);
    border-top: 1px solid var(--border-color);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    justify-content: space-around;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Media Queries & Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    :root {
        --sidebar-width: var(--sidebar-collapsed-width);
    }
    .sidebar-logo span,
    .nav-item span,
    .user-mini-info,
    .sidebar-footer .nav-item span {
        display: none;
    }
    .sidebar {
        padding: 20px 8px;
        align-items: center;
    }
    .nav-item {
        padding: 12px;
        justify-content: center;
    }
    .sidebar-logo {
        padding: 0 0 24px 0;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .mobile-top-bar {
        display: flex;
    }
    .mobile-bottom-bar {
        display: flex;
    }
    .main-layout {
        padding-top: 52px;
        padding-bottom: 54px;
    }
    .conversations-pane {
        width: 100%;
        border-right: none;
    }
    .chat-window {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 60;
        display: none;
    }
    .chat-window.open-mobile {
        display: flex;
    }
    .chat-back-btn {
        display: flex;
    }
    .empty-chat-state {
        display: none;
    }
    .view-container {
        padding: 20px 16px;
    }
}
