/* Responsive design */
@media (max-width: 768px) {
    .toolbar {
        padding: 0.5rem;
    }
    
    .toolbar-actions {
        gap: 0.125rem;
    }
    
    .format-toolbar {
        padding: 0.375rem 0.5rem;
        gap: 0.5rem;
    }
    
    .format-group {
        gap: 0.125rem;
    }
    
    .editor-container {
        flex-direction: column;
    }
    
    .editor-pane {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .pane-divider {
        display: none;
    }
    
    .editor-info {
        display: none;
    }
    
    #editor {
        padding: 0.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .preview-content {
        padding: 0.75rem;
    }
    
    .image-widget {
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .image-widget-content {
        padding: 0.375rem;
        gap: 0.5rem;
    }
    
    .image-widget-preview {
        width: 32px;
        height: 32px;
    }
    
    .image-widget-name {
        max-width: 120px;
        font-size: 0.8125rem;
    }
    
    .widget-btn {
        width: 20px;
        height: 20px;
    }
    
    .widget-btn svg {
        width: 10px;
        height: 10px;
    }
    
    .modal-dialog {
        min-width: 90vw;
        margin: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        min-width: auto;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 1rem;
    }
    
    .app-title span {
        display: none;
    }
    
    .format-toolbar {
        display: none;
    }
}

/* Print styles */
@media print {
    .toolbar,
    .format-toolbar,
    .status-bar {
        display: none;
    }
    
    .editor-pane {
        display: none;
    }
    
    .preview-pane {
        flex: none;
        width: 100%;
    }
    
    .preview-content {
        padding: 0;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background-color: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-secondary);
}
