/* Mobile Bottom Navigation */
body {
    padding-bottom: 70px; /* Space for fixed bottom nav */
}

/* Base Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    height: 60px;
    z-index: 1030;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav .container {
    height: 100%;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.75rem;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.bottom-nav-link i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.bottom-nav-link.active {
    color: #0d6efd; /* Bootstrap primary blue */
    font-weight: 500;
}

/* Sell Button Highlight (Central Prominence) */
.bottom-nav-link.sell-action {
    color: #0d6efd;
}

.bottom-nav-link.sell-action i {
    font-size: 1.8rem;
    color: #0d6efd;
    filter: drop-shadow(0 2px 4px rgba(13, 110, 253, 0.2));
    margin-bottom: 0;
    margin-top: -5px;
}

.bottom-nav-link.sell-action span {
    font-weight: 600;
}

/* Badge styling for bottom nav - positioning it on the icon */
.bottom-nav-link .badge {
    position: absolute;
    top: 5px;
    right: 25%;
    font-size: 0.65rem;
    padding: 0.25em 0.4em;
    transform: translate(50%, -10%);
}

/* Hide on larger screens (using Bootstrap d-md-none, but enforcing here if needed) */
@media (min-width: 768px) {
    .bottom-nav {
        display: none !important;
    }
    body {
        padding-bottom: 0;
    }
}

/* --- Mobile Chat UX --- */
@media (max-width: 767.98px) {
    /* Make the chat area take mostly full height */
    .chat-container-mobile {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 120px); /* Approx height minus header/nav */
    }
    
    .chat-messages-area {
        flex-grow: 1;
        overflow-y: auto;
        /* Add padding at bottom so sticky input doesn't cover last message */
        padding-bottom: 80px; 
    }

    /* Sticky Input Bar */
    .chat-sticky-footer {
        position: fixed;
        bottom: 60px; /* Above bottom nav */
        left: 0;
        right: 0;
        background-color: white;
        border-top: 1px solid #dee2e6;
        padding: 0.5rem;
        z-index: 1020;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    }
    
    /* Hide the standard footer on mobile chat pages if desired, or just override body padding */
    
    /* Input field styling */
    .chat-sticky-footer textarea {
        resize: none;
        height: 48px; /* Fixed height for input */
        border-radius: 24px;
        padding-left: 1rem;
        padding-top: 0.7rem; /* Vertically center text approx */
    }
    
    /* Send button huge touch target */
    .chat-send-btn-mobile {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
}
