.chat-page {
    padding: 0;
    padding-top: 52px; /* Account for fixed navbar */
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height — excludes mobile browser chrome */
    background: var(--bg-secondary);
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.chat-page.no-navbar {
    padding-top: 0;
}

.chat-page .container {
    max-width: none;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.chat-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    flex: 1;
    background: var(--bg-primary);
    min-height: 0;
    overflow: hidden;
}

.conversations-sidebar {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.btn-new-chat {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-new-chat:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.search-conversations {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 10;
}

.search-conversations input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    background: var(--bg-secondary);
}

.search-conversations input:focus {
    border-color: var(--primary-color);
    background: white;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.conversation-item:hover {
    background: var(--bg-secondary);
}

.conversation-item.active {
    background: var(--bg-tertiary);
    border-left: 3px solid var(--primary-color);
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.product-msg-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 8px;
    display: flex;
    gap: 12px;
    max-width: 300px;
}

.product-msg-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.product-msg-info {
    flex: 1;
    min-width: 0;
}

.product-msg-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-msg-variant {
    font-size: 12px;
    color: var(--text-secondary);
}

.product-msg-price {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 4px;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.conversation-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.conversation-time {
    font-size: 12px;
    color: var(--text-light);
}

.conversation-preview {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.chat-main {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
    min-height: 0;
    max-height: 100%; /* Never exceed parent */
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 5;
    min-height: 56px;
    flex-shrink: 0;
}

.chat-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    max-height: 0;
    min-height: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border-bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.chat-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.btn-back {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
}

.btn-back:hover {
    background: var(--bg-tertiary);
}

.btn-options {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
    position: relative;
}

.btn-options:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.options-menu {
    position: absolute;
    top: 100%;
    right: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 100;
}

.options-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: background 0.2s;
}

.options-item:hover {
    background: var(--bg-secondary);
}

.options-item:first-child {
    border-radius: 8px 8px 0 0;
}

.options-item:last-child {
    border-radius: 0 0 8px 8px;
}

.options-item:only-child {
    border-radius: 8px;
}

.chat-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.chat-status {
    font-size: 13px;
    color: var(--text-secondary);
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.messages-container {
    flex: 1 1 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #E5DDD5;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

/* Date Divider */
.date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    gap: 16px;
}

.date-divider::before,
.date-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

.date-divider span {
    background: rgba(225, 245, 254, 0.9);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #546E7A;
    text-transform: capitalize;
}

/* Message Grouping */
.message-group {
    display: flex;
    gap: 0; /* No gap - remove avatar spacing */
    width: fit-content;
    max-width: 60%; /* Narrower bubbles for clearer left/right distinction */
    position: relative;
}

.message-group.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
    margin-left: auto;
    margin-right: 12px; /* More right spacing */
    display: flex;
    justify-content: flex-end;
}

.message-group.received {
    align-self: flex-start;
    margin-left: 12px; /* More left spacing */
    margin-right: auto;
    display: flex;
    justify-content: flex-start;
}

/* Avatar Handling - HIDDEN */
.message-avatar {
    display: none !important; /* Hide all avatars */
}

.message-avatar-spacer {
    display: none !important; /* Hide all spacers */
}

/* Message Content & Bubble */
.message-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 100%; /* Full width since no avatar */
}

.message-sender {
    font-size: 11px;
    font-weight: 600;
    color: #144A9C;
    margin-left: 8px;
    margin-bottom: 2px;
}

.message-bubble {
    padding: 10px 12px; /* Reduced padding */
    border-radius: 16px;
    position: relative;
    font-size: 17px; /* Good readable size */
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    word-wrap: break-word;
}

.message-group.sent .message-bubble {
    background: #2196F3; /* Blue for sender like Flutter */
    color: white;
    border-bottom-right-radius: 4px;
}

.message-group.received .message-bubble {
    background: #FFFFFF; /* White for received messages */
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
}

/* Same author grouping */
.message-group.same-author {
    margin-top: -2px;
}

.message-group.same-author .message-bubble {
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
}

/* Tails (simplified CSS tails) */
.message-bubble.has-tail::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.message-group.sent .message-bubble.has-tail::after {
    right: -8px;
    border-left-color: #2196F3;
    border-bottom-color: #2196F3;
    border-bottom-right-radius: 4px;
}

.message-group.received .message-bubble.has-tail::after {
    left: -8px;
    border-right-color: #DCF8C6;
    border-bottom-color: #DCF8C6;
    border-bottom-left-radius: 4px;
}

/* Message Info (Time + Status) */
.message-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 4px;
    font-size: 11px;
}

.message-time {
    opacity: 0.7;
}

.message-status {
    display: flex;
    align-items: center;
}

.message-status svg {
    width: 14px;
    height: 14px;
}

/* Product Card in Message */
.product-msg-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
    width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-msg-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.product-msg-info {
    padding: 8px;
    color: #333;
}

.product-msg-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.product-msg-variant {
    font-size: 11px;
    color: #666;
}

.product-msg-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 4px;
}

.empty-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.empty-chat-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-chat h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}


.message-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.message-card:hover {
    box-shadow: var(--shadow-sm);
}

.card-product {
    display: flex;
    gap: 12px;
}

.card-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.card-product-info {
    flex: 1;
}

.card-product-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.card-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.message-input-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    z-index: 20;
    max-height: 180px;
}

.message-input-actions {
    display: flex;
    gap: 4px;
}

#messageInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: none;
    max-height: 120px;
    min-height: 40px;
    line-height: 1.4;
    overflow-y: auto;
}

#messageInput::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

#messageInput:focus {
    border-color: var(--primary-color);
}

#messageInput:focus::placeholder {
    opacity: 0.4;
}

.btn-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .chat-container {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 768px) {
    .chat-page {
        padding-top: 44px;
    }
    
    .chat-container {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    
    .conversations-sidebar {
        display: none;
    }
    
    .conversations-sidebar.mobile-visible {
        display: flex;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 80%;
        z-index: 100;
        box-shadow: var(--shadow-lg);
    }
    
    .message-group {
        max-width: 80%;
    }
    
    .message-input-container {
        padding: 10px 12px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        max-height: 140px;
    }
}

/* ============================================
   AI MESSAGE STYLES
   ============================================ */

.message-group.ai-message .message-bubble.ai-bubble {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-left: 3px solid #4CAF50;
}

.message-avatar.ai-avatar {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    font-size: 16px;
}

.ai-label {
    color: #2E7D32;
    font-weight: 600;
}

/* ============================================
   SENDER NAME INSIDE MESSAGE BUBBLE (Same line as timestamp)
   ============================================ */

.message-sender-name {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    margin-right: 8px;
}

/* Message info container for proper alignment */
.message-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.message-group.received .message-info {
    justify-content: flex-start;
}

.message-group.received .message-sender-name {
    color: var(--text-light);
    font-weight: 500;
    opacity: 0.7;
}

/* ============================================
   SENDER ATTRIBUTION (Bottom line like Flutter) - DEPRECATED
   ============================================ */

.message-attribution {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    margin-left: 8px;
    font-style: italic;
}

.message-attribution.ai-attribution {
    color: #4CAF50;
    font-weight: 500;
}

/* Shop name label styling (shown at top of message group) */
.message-shop {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 4px;
    margin-left: 8px;
}

/* Sender label styling */
.message-sender .sender-name {
    color: #1565C0;
    font-weight: 600;
}

.message-sender .sender-position {
    color: #666;
    font-weight: 400;
}

/* ============================================
   MARKDOWN FORMATTING STYLES
   ============================================ */

/* Bold */
.message-bubble strong {
    font-weight: 700;
}

/* Italic */
.message-bubble em {
    font-style: italic;
}

/* Underline */
.message-bubble u {
    text-decoration: underline;
}

/* Strikethrough */
.message-bubble del {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Inline code */
.message-bubble .inline-code {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.message-group.sent .message-bubble .inline-code {
    background: rgba(255, 255, 255, 0.2);
}

/* Code blocks */
.message-bubble pre {
    background: rgba(0, 0, 0, 0.08);
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
    overflow-x: auto;
}

.message-group.sent .message-bubble pre {
    background: rgba(255, 255, 255, 0.15);
}

.message-bubble pre code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ============================================
   EMPTY STATE STYLES
   ============================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading-spinner::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   AI TYPING INDICATOR
   ============================================ */

.ai-typing-indicator {
    display: flex;
    margin-bottom: 16px;
    margin-top: auto; /* Push to bottom */
    animation: fadeIn 0.3s ease-in;
}

.typing-bubble {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%) !important;
    border-left: 3px solid #4CAF50 !important;
    padding: 12px 16px !important;
    min-width: 60px;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PHOTO PREVIEW STYLES
   ============================================ */

.photo-preview-container {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
}

.photo-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-remove-photos {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove-photos:hover {
    background: #dc2626;
}

.photo-preview-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.photo-preview-item {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image message styles */
.message-images {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
    max-width: 280px;
}

.message-image {
    border-radius: 8px;
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.message-images.single .message-image {
    max-width: 280px;
    max-height: 300px;
}

.message-images.multiple .message-image {
    width: calc(50% - 2px);
    max-height: 140px;
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 480px) {
    .chat-page {
        padding-top: 44px;
    }
    
    .message-group {
        max-width: 80%;
    }
    
    .message-bubble {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .messages-container {
        padding: 8px 10px;
    }
    
    .message-input-container {
        padding: 8px 10px;
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        gap: 8px;
        max-height: 120px;
    }
    
    #messageInput {
        padding: 10px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 40px;
        max-height: 80px;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
    }
    
    .photo-preview-container {
        padding: 8px 12px;
    }
    
    .photo-preview-item {
        width: 50px;
        height: 50px;
    }
    
    .message-images {
        max-width: 100%;
    }
    
    .message-images.single .message-image {
        max-width: 100%;
        max-height: 200px;
    }
    
    .message-images.multiple .message-image {
        width: calc(50% - 2px);
        max-height: 120px;
    }
    
    .chat-header {
        padding: 8px 12px;
        min-height: 48px;
    }
    
    .chat-avatar {
        width: 36px;
        height: 36px;
    }
    
    .conversations-sidebar.mobile-visible {
        width: 85%;
    }
    
    .navbar {
        padding: 6px 0;
        min-height: 44px;
    }
    
    .navbar .container {
        padding: 0 16px;
    }
    
    .nav-brand h1 {
        font-size: 22px;
    }
}

@media (max-width: 360px) {
    .chat-page {
        padding-top: 40px;
    }
    
    .message-group {
        max-width: 90%;
    }
    
    .message-bubble {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .message-input-container {
        padding: 6px 8px;
        padding-bottom: max(6px, env(safe-area-inset-bottom));
        max-height: 100px;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
    
    .btn-icon svg {
        width: 18px;
        height: 18px;
    }
    
    #messageInput {
        padding: 8px 10px;
        font-size: 16px;
        min-height: 36px;
        max-height: 70px;
    }
    
    .messages-container {
        padding: 6px 8px;
    }
    
    .photo-preview-item {
        width: 45px;
        height: 45px;
    }
    
    .chat-header {
        padding: 6px 10px;
        min-height: 44px;
    }
    
    .chat-avatar {
        width: 32px;
        height: 32px;
    }
    
    .navbar {
        min-height: 40px;
    }
}
