/* /* /* Mobile Responsive Styles */
@media screen and (max-width: 1420px) {

    #reset-filter {
        text-align: center!important;
    }
    
    .mobile-nav-buttons {
        display: block;
        border-bottom: 1px solid #e5e5e5;
        margin-bottom: 10px;
        overflow: hidden;
    }
    
    .back-to-conversations {
        float: left; 
        font-size: 13px!important;
        margin-bottom: 10px!important;
    }

    .view-details-button {
        float: right;
        font-size: 13px!important;
        margin-bottom: 10px!important;
    }
    
    .back-to-chat-button {
        font-size: 13px!important;
        margin-bottom: 10px;
        margin-left: 20px!important;
    }

    .mobile-nav-buttons .button {
        white-space: nowrap;
    }

    .conversations-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 600px;
    }

    .conversations-sidebar {
        display: block;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .conversation-transcript,
    .conversation-details {
        display: none;
    }

    .conversation-transcript.active,
    .conversation-details.active {
        display: block;
        padding-top: 10px;
    }
    
    .details-content {
        max-height: 500px;
    }

    .conversation-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .conversation-filter-form input[type="date"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .conversation-filter-form .button {
        width: 100%;
        margin: 5px 0;
    }

    /* Message styles adjustment */
    .message {
        max-width: 95%;
    }

    .message-content {
        padding: 8px 12px;
    }

    /* Modal adjustments */
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }

    .text-comparison {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Auto Delete Section adjustments for mobile */
    .auto-delete-section {
        max-width: 100% !important;
    }

    /* Download Emails Section adjustments for mobile */
    .download-emails-section {
        max-width: 100% !important;
    }
    
    /* Settings container stacks vertically on mobile */
    .settings-container {
        flex-direction: column;
    }

    /* Integrated Download Button Mobile Adjustments */
    .translation-dropdown {
        position: fixed;
        left: 5%;
        right: 5%;
        width: 90%;
        top: 50%;
        transform: translateY(-50%);
        animation: none;
    }

    .translation-dropdown::after,
    .translation-dropdown::before {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    /* Auto Delete Section styles */
    .auto-delete-section form {
        display: flex;
        flex-direction: column;
    }
    
    #download_emails {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }

    /* Integrated button adjustments for small mobile */
    .download-conversation {
        font-size: 13px !important;
    }

    .translation-icon-button {
        padding: 8px 10px;
    }
}

@media screen and (max-width: 480px) {
    .conversation-item {
        padding: 10px;
    }

    .user-avatar .avatar {
        width: 30px;
        height: 30px;
    }

    .user-info-section .user-avatar-large {
        width: 60px;
        height: 60px;
    }

    .message {
        max-width: 100%;
        margin-bottom: 15px;
    }

    .message-avatar img {
        width: 25px;
        height: 25px;
    }

    .form-actions {
        flex-direction: column;
    }

    .message-toolbar {
        position: relative;
        justify-content: center;
        margin-bottom: 10px;
    }

    .form-actions .button {
        width: 100%;
        margin: 5px 0;
        margin-left: 0;
    }

    .emoji-picker {
        width: 90%;
        left: 5% !important;
    }
}
