@media (min-width: 700px) {
    .components-modal__frame.dpc-ai-modal {
        width: 800px;
        max-width: 90vw;
    }
}

.dpc-ai-modal .components-modal__content {
    padding: 0;
}

.dpc-ai-modal-content {
    padding: 24px;
}

.dpc-ai-modal-actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.dpc-ai-generated-section {
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.dpc-ai-generated-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dpc-ai-generated-text {
    background: #fff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    margin-bottom: 15px;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 13px;
    line-height: 1.5;
}

.dpc-ai-insert-actions {
    display: flex;
    justify-content: flex-end;
}

.dpc-ai-history {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.dpc-ai-history ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dpc-ai-history li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.dpc-ai-history li:last-child {
    border-bottom: none;
}

.dpc-ai-history small {
    color: #666;
    font-size: 11px;
}

.dpc-ai-history p {
    margin: 5px 0 0;
    font-size: 13px;
}

/* Gutenberg toolbar button */
.dpc-ai-toolbar-button .components-button {
    color: #2271b1 !important;
}

.dpc-ai-toolbar-button .components-button:hover {
    color: #135e96 !important;
}

.dpc-ai-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dpc-ai-history-actions {
    display: flex;
    gap: 5px;
}

.dpc-ai-history ul {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.dpc-ai-history li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    margin-bottom: 5px;
    border-radius: 4px;
}

.dpc-ai-history li:last-child {
    border-bottom: none;
}

.dpc-ai-history small {
    color: #666;
    font-size: 11px;
    display: block;
}

.dpc-ai-history p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.4;
}

.dpc-ai-history-item-actions {
    margin-top: 5px;
    text-align: right;
}