/**
 * Mobile Chat Interface Fixes
 * Additional styles to fix mobile display issues
 * Version: 1.0.0 (May 13, 2025)
 */

/* Fix for mobile chat display */
@media (max-width: 767px) {
    /* Ensure mobile panels are displayed properly */
    .mobile-panel {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 50px;
        z-index: 100;
        background-color: var(--bg-color);
        overflow-y: auto;
        display: none;
    }
    
    .mobile-panel.active {
        display: block !important;
    }
    
    /* Fix chat container in mobile view */
    #mobile-chat-panel .chat-container,
    #mobile-chat-panel .panel-content .chat-container {
        display: flex !important;
        flex-direction: column;
        height: calc(100vh - 110px);
        max-height: none;
        width: 100%;
        padding: 10px;
    }
    
    /* Fix chat messages area */
    #mobile-chat-panel .chat-messages {
        flex: 1;
        overflow-y: auto;
        display: block !important;
        height: auto;
        min-height: 200px;
    }
    
    /* Fix chat form */
    #mobile-chat-panel .chat-form {
        width: 100%;
        padding: 10px 0;
        display: flex !important;
        flex-direction: column;
    }
    
    /* Fix input container */
    #mobile-chat-panel .input-container {
        width: 100%;
        display: flex !important;
        position: relative;
    }
    
    /* Fix chat input */
    #mobile-chat-panel .chat-input {
        flex: 1;
        width: 100%;
        min-height: 60px;
        border-radius: 8px;
        resize: none;
        padding-right: 40px;
    }
    
    /* Fix send button positioning */
    #mobile-chat-panel .send-icon-button {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--accent-color);
        font-size: 20px;
    }
    
    /* Fix button container */
    #mobile-chat-panel .chat-buttons {
        display: flex !important;
        justify-content: space-between;
        margin-top: 10px;
        width: 100%;
    }
    
    /* Fix settings modal */
    #settings-modal .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Fix for tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .dashboard-main {
        flex: 1;
    }
    
    .dashboard-sidebar {
        width: 250px;
    }
    
    .chat-container {
        height: calc(100vh - 180px);
    }
}
