/* Responsive Design and Utilities */

/* Diff Highlight Styles */
.text-added {
    background-color: #86efac;
    text-decoration: underline;
    text-decoration-color: #16a34a;
}

.text-removed {
    background-color: #fca5a5;
    text-decoration: line-through;
    text-decoration-color: #dc2626;
}

.text-modified {
    background-color: #fde047;
    border-bottom: 2px solid #facc15;
}

/* Responsive Design */
@media (max-width: 768px) {
    .editor-container {
        grid-template-areas:
            "main-editor"
            "bottom-controls";
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 60px;
    }

    /* Adjustments for A4 view on mobile */
    .main-editor.document-view {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 20px;
    }

    .formatting-toolbar {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

    .stop-action-btn {
        top: 125px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .left-sidebar, .right-sidebar {
        display: none;
    }

    .chat-sidebar {
        width: 100%;
        left: -100%; /* החבא מחוץ לעמוד במובייל */
        height: 40vh; /* גובה קטן יותר במובייל */
        min-height: 250px;
        max-width: 100%;
        resize: vertical; /* רק שינוי אנכי במובייל */
    }

    .chat-sidebar.open {
        left: 10px; /* רווח קטן מהקצה במובייל */
    }
}

/* Modal Responsive */
@media (max-width: 600px) {
    .changes-modal {
        width: 95%;
        max-height: 80vh;
    }

    .changes-modal-header, .changes-modal-footer {
        padding: 16px 20px;
    }

    .changes-summary, .change-item {
        padding: 16px 20px;
    }

    .changes-modal-footer {
        flex-direction: column;
    }

    .modal-btn {
        justify-content: center;
    }
}