/* Enhanced Editor Copilot Styles */

.ajentrix-copilot-floating-menu {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    min-width: 200px;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid #e0e0e0;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.ajentrix-copilot-floating-menu.ajentrix-copilot-menu-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ajentrix-copilot-menu-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.ajentrix-copilot-icon {
    font-size: 18px;
    margin-right: 8px;
}

.ajentrix-copilot-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.ajentrix-copilot-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.ajentrix-copilot-close:hover {
    background: #e0e0e0;
}

.ajentrix-copilot-menu-actions {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ajentrix-copilot-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.ajentrix-copilot-action:hover {
    background: #f0f7ff;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateX(2px);
}

.ajentrix-copilot-action .ajentrix-icon {
    font-size: 16px;
}

.ajentrix-copilot-menu-footer {
    padding: 8px 12px;
    border-top: 1px solid #e0e0e0;
}

.ajentrix-copilot-tone-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

/* Result Modal */
.ajentrix-copilot-result-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ajentrix-copilot-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ajentrix-copilot-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ajentrix-copilot-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ajentrix-copilot-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.ajentrix-copilot-modal-close:hover {
    background: #f0f0f0;
}

.ajentrix-copilot-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.ajentrix-copilot-result-text {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.ajentrix-copilot-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    justify-content: flex-end;
}

.ajentrix-copilot-copy-btn,
.ajentrix-copilot-close-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.ajentrix-copilot-copy-btn {
    background: #3b82f6;
    color: white;
}

.ajentrix-copilot-copy-btn:hover {
    background: #2563eb;
}

.ajentrix-copilot-close-btn {
    background: #f0f0f0;
    color: #333;
}

.ajentrix-copilot-close-btn:hover {
    background: #e0e0e0;
}

/* Notification */
.ajentrix-copilot-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ajentrix-copilot-notification-show {
    opacity: 1;
    transform: translateY(0);
}

.ajentrix-copilot-notification-success {
    background: #10b981;
}

.ajentrix-copilot-notification-error {
    background: #ef4444;
}

/* Enhanced block editor styles */
.ajentrix-editor-copilot-block {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
    margin: 20px 0;
}

.ajentrix-editor-copilot-block .ajentrix-block-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.ajentrix-block-preview {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.ajentrix-block-preview h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.ajentrix-block-output {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive */
@media (max-width: 768px) {
    .ajentrix-copilot-floating-menu {
        min-width: 180px;
    }
    
    .ajentrix-copilot-modal-content {
        max-width: 100%;
        margin: 10px;
    }
}
